hudson - java.lang.NoClassDefFoundError: org.eclipse.core.launcher.Main error while installing an EAR on Webshpere 8.0 -



hudson - java.lang.NoClassDefFoundError: org.eclipse.core.launcher.Main error while installing an EAR on Webshpere 8.0 -

i trying auto deploy ear using hudson on websphere 8.0. have written script , while executing script shows next error. using hudson , have configured job executes next build.xml. tried install ear generated admin console of websphere , works fine when installed manually fails when trying install hudson throws above error.

[wsinstallapp] installing application [c:\users\.hudson\jobs\websphere deploy\workspace\esrear-1.0-snapshot.ear]... [wsadmin] exception in thread "main" java.lang.noclassdeffounderror: org.eclipse.core.launcher.main [wsadmin] @ com.ibm.wsspi.bootstrap.wsprelauncher.launcheclipse(wsprelauncher.java:371) [wsadmin] @ com.ibm.wsspi.bootstrap.wsprelauncher.main(wsprelauncher.java:142) [wsadmin] caused by: java.lang.classnotfoundexception: org.eclipse.core.launcher.main [wsadmin] @ java.net.urlclassloader.findclass(urlclassloader.java:434) [wsadmin] @ java.lang.classloader.loadclasshelper(classloader.java:665) [wsadmin] @ java.lang.classloader.loadclass(classloader.java:644) [wsadmin] @ sun.misc.launcher$appclassloader.loadclass(launcher.java:358) [wsadmin] @ java.lang.classloader.loadclass(classloader.java:627) [wsadmin] ... 2 more build.xml follows <?xml version="1.0" encoding="iso-8859-1" ?> <project name="auto deployer jenkins" default="deploy" basedir="."> <!-- ant-contrib (if, foreach, etc.) --> <taskdef resource="net/sf/antcontrib/antcontrib.properties"> <classpath> <pathelement location="c:/autobuild/websphere/builder/ant-contrib-1.0b3.jar"/> </classpath> </taskdef> <!-- websphere admin task --> <taskdef name="wsadmin" classname="com.ibm.websphere.ant.tasks.wsadmin" /> <!-- convert workspace path forwards slashes --> <path id="toconvert1"> <pathelement location="${workspace}"/> </path> <pathconvert dirsep="/" property="workspaceconvert" refid="toconvert1"/> <property name="wasroot" value="c:/opt/ibm/websphere/profiles/base" /> <property name="user" value="iapawas01" /> <property name="password" value="iapawas01" /> <target name="install"> <propertyregex property="appname" input="${earfile}" regexp="([a-za-z_]*)-(.*)" select="\1" defaultvalue="" override="true"/> <echo message="application file ${earfile}"/> <echo message="application name ${appname}"/> <echo message="uninstalling application" /> <wsadmin washome="${wasroot}" conntype="soap" host="${was_soaphost}" port="${was_soapport}" user="${user}" password="${password}" lang="jacl" script="deploy.jacl" failonerror="false"> <arg value="uninstall"/> <arg value="${workspaceconvert}"/> <arg value="${appname}"/> <arg value="${earfile}"/> <arg value="${was_cell}"/> <arg value="${was_node}"/> <arg value="${was_server}"/> <arg value="${was_vhost}"/> </wsadmin> <echo message="installing application" /> <wsadmin washome="${wasroot}" conntype="soap" host="${was_soaphost}" port="${was_soapport}" user="${user}" password="${password}" lang="jacl" script="deploy.jacl" failonerror="true"> <arg value="install"/> <arg value="${workspaceconvert}"/> <arg value="${appname}"/> <arg value="${earfile}"/> <arg value="${was_cell}"/> <arg value="${was_node}"/> <arg value="${was_server}"/> <arg value="${was_vhost}"/> </wsadmin> </target> <target name="deploy"> <fileset dir="${workspace}" id="earfiles.list"> <include name="**/*.ear"/> </fileset> <pathconvert property="earfiles" refid="earfiles.list" pathsep=","> <map from="${workspace}\" to=""/> </pathconvert> <foreach list="${earfiles}" target="install" param="earfile"/> </target> </project>

what prepare pack on?

there similar defect fixed in v8.0.0.3: http://www-01.ibm.com/support/docview.wss?uid=swg1pm50904

if you're below 8.0.0.3 may want seek , apply prepare pack 3 or latest release (fix pack 9) see if helps.

hudson auto-build

Comments

Popular posts from this blog

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -