permaculture playing cards*
The moose likes Ant, Maven and Other Build Tools and the fly likes Error starting EJBDeploy environment: null. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Engineering » Ant, Maven and Other Build Tools
Bookmark "Error starting EJBDeploy environment: null." Watch "Error starting EJBDeploy environment: null." New topic
Author

Error starting EJBDeploy environment: null.

Dante OnEiRIC
Greenhorn

Joined: Jan 19, 2004
Posts: 1
Hi All,
I'm using ant 1.6.0 to deploy an EJB in Websphere Studio Application Developer 4.0.3. I get an error when it tries to start the EJBDeploy environment. I execute ant with the following parameters:
C:\EH\Java\ANT\apache-ant-1.6.0\bin>ant -verbose -lib C:\EH\Java\ANT\apache-ant-
1.6.0\lib -buildfile C:\EH\PruebasAnt\pruebaAnt2.xml echo ejbjar
The output is as follows:
Apache Ant version 1.6.0 compiled on December 18 2003
Buildfile: C:\EH\PruebasAnt\pruebaAnt2.xml
Detected Java version: 1.4 in: C:\j2sdk1.4.1_03\jre
Detected OS: Windows XP
parsing buildfile C:\EH\PruebasAnt\pruebaAnt2.xml with URI = file:///C:/EH/Prueb
asAnt/pruebaAnt2.xml
Project base dir set to: C:\EH\PruebasAnt
Build sequence for target `echo' is [echo]
Complete build sequence is [echo, ejbjar, echo2, ]
echo:
[echo] Deploying EJBs
Build sequence for target `ejbjar' is [ejbjar]
Complete build sequence is [ejbjar, echo, echo2, ]
ejbjar:
[ejbjar] 1 deployment descriptors located.
[ejbjar] Unable to locate the websphere Map: C:\Archiv~1\IBM\Applic~1\workspa
ce\PruebasGeneradorSimad\bin\sima\comun\dao\interviniente\Map.mapxmi
[ejbjar] Unable to locate the websphere Schema: C:\Archiv~1\IBM\Applic~1\work
space\PruebasGeneradorSimad\bin\sima\comun\dao\interviniente\Schema.dbxmi
[ejbjar] dependent class: SimaEJBrsIntervinienteDAOBean - C:\Archiv~1\IBM\App
lic~1\workspace\PruebasGeneradorSimad\bin\sima\comun\dao\interviniente\SimaEJBrs
IntervinienteDAOBean.class
[ejbjar] dependent class: SimaEJBrsIntervinienteDAO - C:\Archiv~1\IBM\Applic~
1\workspace\PruebasGeneradorSimad\bin\sima\comun\dao\interviniente\SimaEJBrsInte
rvinienteDAO.class
[ejbjar] dependent class: SimaEJBrsIntervinienteDAOHome - C:\Archiv~1\IBM\App
lic~1\workspace\PruebasGeneradorSimad\bin\sima\comun\dao\interviniente\SimaEJBrs
IntervinienteDAOHome.class
[ejbjar] building intervinienteEJB.jar.jar with 6 files
[ejbjar] adding file 'META-INF/ejb-jar.xml'
[ejbjar] adding file 'SimaEJBrsIntervinienteDAO.class'
[ejbjar] adding file 'SimaEJBrsIntervinienteDAOHome.class'
[ejbjar] adding file 'META-INF/ibm-ejb-jar-ext.xmi'
[ejbjar] adding file 'META-INF/ibm-ejb-jar-bnd.xmi'
[ejbjar] adding file 'SimaEJBrsIntervinienteDAOBean.class'
[ejbjar] Calling websphere.ejbdeploy for C:\Archiv~1\IBM\Applic~1\workspace\P
ruebasGeneradorSimad\bin\sima\comun\dao\interviniente\intervinienteEJB.jar-gener
ic.jar
[ejbdeploy] Executing 'C:\j2sdk1.4.1_03\jre\bin\java.exe' with arguments:
[ejbdeploy] '-Xms64m'
[ejbdeploy] '-Xmx128m'
[ejbdeploy] '-Dwebsphere.lib.dir=C:\Archiv~1\IBM\Applic~1\lib'
[ejbdeploy] '-classpath'
[ejbdeploy] 'C:\Archiv~1\IBM\Applic~1\plugins\org.eclipse.core.boot\boot.jar;C:\
Archiv~1\IBM\Applic~1\plugins\com.ibm.etools.ejbdeploy\runtime\batch.jar;C:\Arch
iv~1\IBM\Applic~1\plugins\com.ibm.etools.xalanrt\xerces.jar;C:\Archiv~1\IBM\Appl
ic~1\plugins\com.ibm.etools.websphere.runtime\lib\ivjejb35.jar;C:\Archiv~1\IBM\A
pplic~1\plugins\com.ibm.etools.websphere.runtime\lib\j2ee.jar;C:\Archiv~1\IBM\Ap
plic~1\plugins\com.ibm.etools.websphere.runtime\lib\vaprt.jar;C:\Archiv~1\IBM\Ap
plic~1\plugins\org.eclipse.core.runtime\runtime.jar'
[ejbdeploy] 'com.ibm.etools.ejbdeploy.EJBDeploy'
[ejbdeploy] 'C:\Archiv~1\IBM\Applic~1\workspace\PruebasGeneradorSimad\bin\sima\c
omun\dao\interviniente\intervinienteEJB.jar-generic.jar'
[ejbdeploy] 'C:\Temp'
[ejbdeploy] 'C:\Archiv~1\IBM\Applic~1\workspace\PruebasGeneradorSimad\bin\sima\c
omun\dao\interviniente\intervinienteEJB.jar.jar'
[ejbdeploy] '-quiet'
[ejbdeploy]
[ejbdeploy] The ' characters around the executable and arguments are
[ejbdeploy] not part of the command.
[ejbdeploy] *Could not delete C:\Temp\_.intervinienteEJB.jar.jar._\.metadata\.lo
ck
[ejbdeploy] Error starting EJBDeploy environment: null.
[ejbdeploy] java.lang.reflect.InvocationTargetException
[ejbdeploy] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[ejbdeploy] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces
sorImpl.java:39)
[ejbdeploy] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMet
hodAccessorImpl.java:25)
[ejbdeploy] at java.lang.reflect.Method.invoke(Method.java:324)
[ejbdeploy] at org.eclipse.core.internal.boot.InternalBootLoader.startup(Int
ernalBootLoader.java:912)
[ejbdeploy] at org.eclipse.core.boot.BootLoader.startup(BootLoader.java:340)
[ejbdeploy] at com.ibm.etools.ejbdeploy.batch.impl.BatchDeploy.startup(Batch
Deploy.java:169)
[ejbdeploy] at com.ibm.etools.ejbdeploy.EJBDeploy.startup(EJBDeploy.java:309
)
[ejbdeploy] at com.ibm.etools.ejbdeploy.EJBDeploy.execute(EJBDeploy.java:65)
[ejbdeploy] at com.ibm.etools.ejbdeploy.EJBDeploy.main(EJBDeploy.java:248)
[ejbdeploy] Caused by: java.lang.NullPointerException
[ejbdeploy] at org.eclipse.core.internal.runtime.InternalPlatform.activateDe
faultPlugins(InternalPlatform.java:104)
[ejbdeploy] at org.eclipse.core.internal.runtime.InternalPlatform.loaderStar
tup(InternalPlatform.java:580)
[ejbdeploy] ... 10 more

[ejbdeploy] Java Result: 1
[ejbjar] deleting generic jar C:\Archiv~1\IBM\Applic~1\workspace\PruebasGener
adorSimad\bin\sima\comun\dao\interviniente\intervinienteEJB.jar-generic.jar
BUILD SUCCESSFUL
Total time: 5 seconds
Anyone know why I might be getting this error?
Thanx in advance,
OnEiRIC
I. Jelyazkov
Greenhorn

Joined: Feb 11, 2004
Posts: 1
I've experienced the same error. Could you share some details of your <ejbjar> Ant task?
Thanks
Brian Willy
Greenhorn

Joined: Jan 13, 2004
Posts: 2
I have spent a fair amount of time learing why my weblogic deployment failed using ejbjar. Turns out that the only way for ejbjar to find the server-dependent deployment descriptors by name (if prefixing with the bean name or something similar) is to use the attribute "naming=descriptor".
i.e., IPAddress-weblogic-ejb-jar.xml, to be found will require:
<ejbjar ... naming="descriptor">
-Brian
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Error starting EJBDeploy environment: null.