ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From George Spalding <georgespald...@yahoo.com>
Subject <ejbjar> with <wepsphere> element gives npe with spaces in websphere.home
Date Mon, 07 Oct 2002 15:32:30 GMT
If your ${websphere.home} property contains spaces you get a NullPointerException:

   [ejbjar] EJB Deploy Options:  C:\tmp\integration\lib\integration-generic.jar
\tmp\_ejb_generation C:\tmp\integration\lib\integr
ation.jar  -trace
   [ejbjar] Calling websphere.ejbdeploy for C:\tmp\integration\lib\integration-generic.jar
[ejbdeploy] Executing 'C:\java\WSDK\sdk\jre\bin\java.exe' with arguments:
[ejbdeploy] '-Xms64m'
[ejbdeploy] '-Xmx128m'
[ejbdeploy] '-Dwebsphere.lib.dir=C:\Program Files\IBM\Application
Developer\plugins\com.ibm.etools.websphere.runtime\lib'
[ejbdeploy] '-classpath'
[ejbdeploy] 'C:\Program Files\IBM\Application
Developer\plugins\com.ibm.etools.websphere.runtime\deploytool\itp\plugins\com.ibm.et
ools.ejbdeploy\runtime\batch.jar;C:\Program Files\IBM\Application
Developer\plugins\com.ibm.etools.websphere.runtime\deploytool\it
p\plugins\org.eclipse.core.boot\boot.jar;C:\Program Files\IBM\Application
Developer\plugins\com.ibm.etools.websphere.runtime\lib\i
vjejb35.jar;C:\Program Files\IBM\Application
Developer\plugins\com.ibm.etools.websphere.runtime\lib\j2ee.jar;C:\Program Files\IBM\
Application Developer\plugins\com.ibm.etools.websphere.runtime\lib\vaprt.jar;C:\Program
Files\IBM\Application Developer\plugins\co
m.ibm.etools.websphere.runtime\lib\xerces.jar'
[ejbdeploy] 'com.ibm.etools.ejbdeploy.EJBDeploy'
[ejbdeploy] 'C:\tmp\integration\lib\integration-generic.jar'
[ejbdeploy] '\tmp\_ejb_generation'
[ejbdeploy] 'C:\tmp\integration\lib\integration.jar'
[ejbdeploy] '-trace'
[ejbdeploy]
[ejbdeploy] The ' characters around the executable and arguments are
[ejbdeploy] not part of the command.
[ejbdeploy] Starting workbench.
[ejbdeploy] Shutting down workbench.

[ejbdeploy] Error starting EJBDeploy environment: null.
[ejbdeploy] java.lang.reflect.InvocationTargetException: java.lang.NullPointerException
[ejbdeploy]     at
org.eclipse.core.internal.runtime.InternalPlatform.activateDefaultPlugins(InternalPlatform.java:100)
[ejbdeploy]     at
org.eclipse.core.internal.runtime.InternalPlatform.loaderStartup(InternalPlatform.java:530)
[ejbdeploy]     at java.lang.reflect.Method.invoke(Native Method)
[ejbdeploy]     at
org.eclipse.core.internal.boot.InternalBootLoader.startup(InternalBootLoader.java:912)
[ejbdeploy]     at org.eclipse.core.boot.BootLoader.startup(BootLoader.java:340)
[ejbdeploy]     at com.ibm.etools.ejbdeploy.batch.impl.BatchDeploy.startup(BatchDeploy.java:162)
[ejbdeploy]     at com.ibm.etools.ejbdeploy.EJBDeploy.startup(EJBDeploy.java:301)
[ejbdeploy]     at com.ibm.etools.ejbdeploy.EJBDeploy.execute(EJBDeploy.java:57)
[ejbdeploy]     at com.ibm.etools.ejbdeploy.EJBDeploy.main(EJBDeploy.java:240)
[ejbdeploy] Java Result: 1

Possibly it's the wasclasspath that can't handle the cp with spaces in?!
The obvious workaround is not to use directories with spaces.
Still, it's not exactly a stable behaviour.   :-)

/George


=====
-\|/-/|\-\|/-/|\-\|/-/|\-\|/-/|\-\|/-/|\-\|/-
George Spalding
Private:      georgespalding@yahoo.com
Phone:
Mobile: +46 701 849 507
Home:   +46 8 21 36 59
-/|\-\|/-/|\-\|/-/|\-\|/-/|\-\|/-/|\-/|\-\|/-

__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message