IC5Notice: We have upgraded developerWorks Community to the latest version of IBM Connections. For more information, read our upgrade FAQ.
Topic
  • No replies
gutierrez.ge
gutierrez.ge
1 Post

Pinned topic antrun for WsEjbDeploy task fails

‏2013-03-15T16:37:15Z |
Hey guys, I'm facing this issue, I hope someone can help.

WAS VERSION: 7.0
ANT VERSION: 1.9 (tried with 1.8.2 and 1.8.4 same error)
ANTRUN PLUGIN VERSION: 1.7 (And tried with 1.6, 1.5, 1.4, 1.3. 1.1 and same error)
MAVEN VERSION: 3.0.5 (tried with maven 2.2.1)
JAVA_HOME env. property targets jdk1.6 but with a .bat script I'm changing its value to target was7.0/java directory and then I'm executing mvn clean install
PLUGIN CONFIG

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-antrun-plugin</artifactId>
<version>1.7</version>
<executions>
<execution>
<phase>verify</phase>
<configuration>
<tasks>
<--
main.basedir=${project.parent.basedir}
Injected with gmaven plugin
-->
<property name="was.home" location="${main.basedir}/was7.0"/>
<property name="user.install.root" location="${was.home}"/>
<property name="was.lib" location="${was.home}/lib"/>
<property name="was.plugins" location="${was.home}/plugins"/>
<property name="was.configuration.lib" location="${was.home}/lib"/>

<echo message="java.home: ${java.home}" />
<echo message="was.home: ${was.home}" />
<echo message="user.install.root: ${user.install.root}" />
<echo message="was.lib: ${was.lib}" />
<echo message="was.plugins: ${was.plugins}" />
<echo message="was.configuration.lib: ${was.configuration.lib}" />

<path id="appserver.build.classpath">
<fileset dir="${was.plugins}">
<include name="*.jar"/>
</fileset>
<fileset dir="${was.lib}">
<include name="*.jar"/>
</fileset>
<pathelement location="${was.home}/java/jre/lib/server.jar"/>
</path>

<taskdef name="wsejbdeploy"
classname="com.ibm.websphere.ant.tasks.WsEjbDeploy"
classpathref="appserver.build.classpath"/>

<wsejbdeploy inputJar="${project.build.directory}/CDS-1.0.ear"
wasHome="${was.home}"
workingDirectory="target"
outputJar="${project.build.directory}/CDS-1.0-final.ear"
classpath="${project.build.directory}/CDS-1.0/"
quiet="false"
compatible35="false"
failonerror="true"
trace="true"
jvmMaxMemory="512M"/>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>

STACKTRACE ERROR
INFO antrun:run {execution: default}
WARNING Parameter tasks is deprecated, use target instead
INFO Executing tasks

main:
echo java.home: C:\Users\abc\git\ls\was7.0\java\jre
echo was.home: C:\Users\abc\git\ls\was7.0
echo user.install.root: C:\Users\abc\git\ls\was7.0
echo was.lib: C:\Users\abc\git\ls\was7.0\lib
echo was.plugins: C:\Users\abc\git\ls\was7.0\plugins
echo was.configuration.lib: C:\Users\abc\git\ls\was7.0\lib
wsejbdeploy Starting workbench.
wsejbdeploy @build@
wsejbdeploy EJB Deploy installation location: c:\Users\abc\git\ls\was7.0\deploytool\itp
wsejbdeploy Using the EJB Deploy installation location.
wsejbdeploy EJB Deploy configuration directory: c:\Users\abc\git\ls\was7.0\deploytool\itp\configuration/
wsejbdeploy framework search path: c:\Users\abc\git\ls\was7.0\deploytool\itp\plugins
wsejbdeploy build: RAD755-I20091202_2257
wsejbdeploy Debug options:
wsejbdeploy file:/C:/Users/abc/git/ls/CDS/target/.options not found
wsejbdeploy Shutting down workbench.
wsejbdeploy
wsejbdeploy Failure invoking BootLoader.startup method
wsejbdeploy java.lang.reflect.InvocationTargetException
wsejbdeploy at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
wsejbdeploy at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
wsejbdeploy at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
wsejbdeploy at java.lang.reflect.Method.invoke(Method.java:600)
wsejbdeploy at com.ibm.etools.ejbdeploy.batch.impl.BootLoaderLoader.startup(BootLoaderLoader.java:607)
wsejbdeploy at com.ibm.etools.ejbdeploy.batch.impl.BatchDeploy.startup(BatchDeploy.java:189)
wsejbdeploy at com.ibm.etools.ejbdeploy.EJBDeploy.startup(EJBDeploy.java:426)
wsejbdeploy at com.ibm.etools.ejbdeploy.EJBDeploy.execute(EJBDeploy.java:103)
wsejbdeploy at com.ibm.etools.ejbdeploy.EJBDeploy.deploy(EJBDeploy.java:349)
wsejbdeploy at com.ibm.etools.ejbdeploy.EJBDeploy.main(EJBDeploy.java:311)
wsejbdeploy Caused by: java.lang.NumberFormatException: For input string: ""
wsejbdeploy at java.lang.NumberFormatException.forInputString(NumberFormatException.java:60)
wsejbdeploy at java.lang.Integer.parseInt(Integer.java:482)
wsejbdeploy at java.lang.Integer.parseInt(Integer.java:511)
wsejbdeploy at org.eclipse.osgi.storagemanager.StorageManager.updateTable(StorageManager.java:512)
wsejbdeploy at org.eclipse.osgi.storagemanager.StorageManager.open(StorageManager.java:694)
wsejbdeploy at org.eclipse.osgi.internal.baseadaptor.BaseStorage.initFileManager(BaseStorage.java:208)
wsejbdeploy at org.eclipse.osgi.internal.baseadaptor.BaseStorage.initialize(BaseStorage.java:142)
wsejbdeploy at org.eclipse.osgi.baseadaptor.BaseAdaptor.initializeStorage(BaseAdaptor.java:124)
wsejbdeploy at org.eclipse.osgi.framework.internal.core.Framework.initialize(Framework.java:180)
wsejbdeploy at org.eclipse.osgi.framework.internal.core.Framework.<init>(Framework.java:152)
wsejbdeploy at org.eclipse.osgi.framework.internal.core.OSGi.createFramework(OSGi.java:90)
wsejbdeploy at org.eclipse.osgi.framework.internal.core.OSGi.<init>(OSGi.java:31)
wsejbdeploy at org.eclipse.core.runtime.adaptor.EclipseStarter.startup(EclipseStarter.java:286)
wsejbdeploy ... 10 more
wsejbdeploy EJBDeploy level: @build@
INFO
ERROR BUILD ERROR
INFO
INFO An Ant BuildException has occured: Java returned: 1

INFO
INFO Trace
org.apache.maven.lifecycle.LifecycleExecutionException: An Ant BuildException has occured: Java returned: 1
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:719)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:556)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:535)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:387)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:348)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:180)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:328)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:138)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:362)
at org.apache.maven.cli.compat.CompatibleMain.main(CompatibleMain.java:60)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:600)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: An Ant BuildException has occured: Java returned: 1
at org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:283)
at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:490)
at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:694)
... 17 more
Caused by: C:\Users\abc\git\ls\CDS\target\antrun\build-main.xml:26: Java returned: 1
at org.apache.tools.ant.taskdefs.Java.execute(Java.java:111)
at com.ibm.websphere.ant.tasks.WsEjbDeploy.execute(WsEjbDeploy.java:720)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:291)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:48)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:37)
at java.lang.reflect.Method.invoke(Method.java:600)
at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:106)
at org.apache.tools.ant.Task.perform(Task.java:348)
at org.apache.tools.ant.Target.execute(Target.java:390)
at org.apache.tools.ant.Target.performTasks(Target.java:411)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1397)
at org.apache.tools.ant.Project.executeTarget(Project.java:1366)
at org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:270)
... 19 more
INFO
INFO Total time: 42 seconds
INFO Finished at: Fri Mar 15 10:07:10 EDT 2013
INFO Final Memory: 48M/108M
INFO

Thanks on advance your comments.