ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Keith Hatton" <khat...@axiomsystems.com>
Subject RE: Weblogic Compile error on the ejbjar command
Date Thu, 24 Jul 2003 15:45:01 GMT
The "CreateProcess: javac ... error=2" would suggest that javac cannot be found on the system
path.

That would certainly explain your "strange thing". Your machine's PATH is set fine!

Hope this helps
Keith


-----Original Message-----
From: mark.russel@pncbank.com [mailto:mark.russel@pncbank.com]
Sent: 24 July 2003 16:42
To: user@ant.apache.org
Subject: Weblogic Compile error on the ejbjar command


I have a co-worker who is running an ant command to create an EJB and he is
getting an error creating the process.
version 1,5,3 of ant on win2000
jdk's both 1.4.1 and 1.3.1

here is the strange thing.

Copy the source code to my machine and it works fine



Here is the -v output:  Sorry for the length but I did not want to cut out
anything that was important.
build-ejb:
     [echo] c:/dtds
   [ejbjar] 1 deployment descriptors located.
   [ejbjar] Mapped publicId -//Sun Microsystems, Inc.//DTD Enterprise
JavaBeans 2.0//EN to file C:\Program Files\IBM\WebSphere
Studio\wstools\eclipse\plugins\com.ibm.etools.j2ee_5.0.1\dtds\ejb-jar_2_0.dtd

   [ejbjar] Mapped publicId -//BEA Systems, Inc.//DTD WebLogic 5.1.0
EJB//EN to file C:\Program Files\IBM\WebSphere
Studio\wstools\eclipse\plugins\com.ibm.etools.j2ee_5.0.1\dtds\weblogic-ejb-jar.dtd

   [ejbjar] Resolved -//Sun Microsystems, Inc.//DTD Enterprise JavaBeans
2.0//EN to local file C:\Program Files\IBM\WebSphere
Studio\wstools\eclipse\plugins\com.ibm.etools.j2ee_5.0.1\dtds\ejb-jar_2_0.dtd

   [ejbjar] Unable to locate weblogic deployment descriptor. It was
expected to be in C:
\ant\md2\MidwareEJB\ejbModule\META-INF\weblogic-ejb-jar.xml
   [ejbjar] dependent class:
com.advisors.mainframeaccess.request.RequestServiceBean - C:
\ant\md2\MidwareEJB\classes\com\advisors\mainframeaccess\request\RequestServiceBean.class

   [ejbjar] dependent class:
com.advisors.mainframeaccess.response.ResponseServiceBean - C:
\ant\md2\MidwareEJB\classes\com\advisors\mainframeaccess\response\ResponseServiceBean.class

   [ejbjar] dependent class: com.advisors.midware.filehandler.LoggingHome -
C:
\ant\md2\MidwareEJB\classes\com\advisors\midware\filehandler\LoggingHome.class

   [ejbjar] dependent class:
com.advisors.mainframeaccess.status.StatusService - C:
\ant\md2\MidwareEJB\classes\com\advisors\mainframeaccess\status\StatusService.class

   [ejbjar] dependent class:
com.advisors.mainframeaccess.parsing.VerifyXmlServiceBean - C:
\ant\md2\MidwareEJB\classes\com\advisors\mainframeaccess\parsing\VerifyXmlServiceBean.class

   [ejbjar] dependent class:
com.advisors.mainframeaccess.response.ResponseService - C:
\ant\md2\MidwareEJB\classes\com\advisors\mainframeaccess\response\ResponseService.class

   [ejbjar] dependent class:
com.advisors.mainframeaccess.parsing.VerifyXmlService - C:
\ant\md2\MidwareEJB\classes\com\advisors\mainframeaccess\parsing\VerifyXmlService.class

   [ejbjar] dependent class: com.advisors.midware.filehandler.Logging - C:
\ant\md2\MidwareEJB\classes\com\advisors\midware\filehandler\Logging.class
   [ejbjar] dependent class:
com.advisors.mainframeaccess.status.StatusServiceHome - C:
\ant\md2\MidwareEJB\classes\com\advisors\mainframeaccess\status\StatusServiceHome.class

   [ejbjar] dependent class:
com.advisors.mainframeaccess.request.RequestService - C:
\ant\md2\MidwareEJB\classes\com\advisors\mainframeaccess\request\RequestService.class

   [ejbjar] dependent class:
com.advisors.mainframeaccess.parsing.RequiredValuesBean - C:
\ant\md2\MidwareEJB\classes\com\advisors\mainframeaccess\parsing\RequiredValuesBean.class

   [ejbjar] dependent class:
com.advisors.mainframeaccess.request.RequestServiceHome - C:
\ant\md2\MidwareEJB\classes\com\advisors\mainframeaccess\request\RequestServiceHome.class

   [ejbjar] dependent class:
com.advisors.mainframeaccess.response.ResponseServiceHome - C:
\ant\md2\MidwareEJB\classes\com\advisors\mainframeaccess\response\ResponseServiceHome.class

   [ejbjar] dependent class: com.advisors.midware.filehandler.LoggingBean -
C:
\ant\md2\MidwareEJB\classes\com\advisors\midware\filehandler\LoggingBean.class

   [ejbjar] dependent class:
com.advisors.mainframeaccess.parsing.VerifyXmlServiceHome - C:
\ant\md2\MidwareEJB\classes\com\advisors\mainframeaccess\parsing\VerifyXmlServiceHome.class

   [ejbjar] dependent class:
com.advisors.mainframeaccess.status.StatusServiceBean - C:
\ant\md2\MidwareEJB\classes\com\advisors\mainframeaccess\status\StatusServiceBean.class

   [ejbjar] building ejb_midware.jar with 18 files
   [ejbjar] adding file
'com\advisors\mainframeaccess\request\RequestServiceHome.class'
   [ejbjar] adding file
'com\advisors\mainframeaccess\response\ResponseServiceHome.class'
   [ejbjar] adding file
'com\advisors\mainframeaccess\status\StatusService.class'
   [ejbjar] adding file
'com\advisors\mainframeaccess\status\StatusServiceHome.class'
   [ejbjar] adding file
'com\advisors\mainframeaccess\parsing\VerifyXmlService.class'
   [ejbjar] adding file
'com\advisors\mainframeaccess\response\ResponseService.class'
   [ejbjar] adding file
'com\advisors\mainframeaccess\request\RequestService.class'
   [ejbjar] adding file
'com\advisors\mainframeaccess\parsing\VerifyXmlServiceBean.class'
   [ejbjar] adding file
'com\advisors\midware\filehandler\LoggingBean.class'
   [ejbjar] adding file
'com\advisors\mainframeaccess\parsing\RequiredValuesBean.class'
   [ejbjar] adding file 'com\advisors\midware\filehandler\Logging.class'
   [ejbjar] adding file
'com\advisors\mainframeaccess\request\RequestServiceBean.class'
   [ejbjar] adding file
'com\advisors\mainframeaccess\response\ResponseServiceBean.class'
   [ejbjar] adding file
'com\advisors\mainframeaccess\parsing\VerifyXmlServiceHome.class'
   [ejbjar] adding file 'META-INF/ejb-jar.xml'
   [ejbjar] adding file
'com\advisors\midware\filehandler\LoggingHome.class'
   [ejbjar] adding file
'com\advisors\mainframeaccess\status\StatusServiceBean.class'
   [ejbjar] Calling weblogic.ejbc20 for C:
\ant\md2\MidwareEJB\deploy\ejb_midware-generic.jar
     [ejbc] Executing 'C:\jdk1.3.1\jre\bin\java.exe' with arguments:
     [ejbc] '-classpath'
     [ejbc] 'C:\bea\weblogic700\ebcc\lib\ext\weblogic.jar;C:\Program
Files\IBM\WebSphere
Studio\wstools\eclipse\plugins\com.ibm.etools.j2ee.core_5.0.1\runtime\j2ee.jar;C:


ant\md2\MidwareEJB\lib\ctgclient.jar;C:
\ant\md2\MidwareEJB\lib\ejb_JavaXMLD.jar;C:
\ant\md2\MidwareEJB\lib\util.jar'
     [ejbc] 'weblogic.ejbc20'
     [ejbc] 'C:\ant\md2\MidwareEJB\deploy\ejb_midware-generic.jar'
     [ejbc] 'C:\ant\md2\MidwareEJB\deploy\ejb_midware.jar'
     [ejbc]
     [ejbc] The ' characters around the executable and arguments are
     [ejbc] not part of the command.

     [ejbc] DEPRECATED: The weblogic.ejbc20 compiler is deprecated and will
be removed in a future version of WebLogic Server.  Please use
weblogic.ejbc instead.

     [ejbc] java.io.IOException: CreateProcess: javac -nowarn -classpath
"C:\ant\md2\MidwareEJB\ejbcgen;;C:\jdk1.3.1\jre\lib\rt.jar;C:
\jdk1.3.1\jre\lib\i18n.jar;C:\jdk1.3.1\jre\lib\sunrsasign.jar;C:
\jdk1.3.1\jre\classes;C:\bea\weblogic700\ebcc\lib\ext\weblogic.jar;C:
\Program Files\IBM\WebSphere
Studio\wstools\eclipse\plugins\com.ibm.etools.j2ee.core_5.0.1\runtime\j2ee.jar;C:


ant\md2\MidwareEJB\lib\ctgclient.jar;C:
\ant\md2\MidwareEJB\lib\ejb_JavaXMLD.jar;C:
\ant\md2\MidwareEJB\lib\util.jar" -d ejbcgen
ejbcgen\com\advisors\mainframeaccess\parsing\*.java
ejbcgen\com\advisors\mainframeaccess\request\*.java
ejbcgen\com\advisors\mainframeaccess\response\*.java
ejbcgen\com\advisors\mainframeaccess\status\*.java
ejbcgen\com\advisors\midware\filehandler\*.java error=2
     [ejbc]    at java.lang.Win32Process.create(Native Method)
     [ejbc]    at java.lang.Win32Process.<init>(Win32Process.java:66)
     [ejbc]    at java.lang.Runtime.execInternal(Native Method)
     [ejbc]    at java.lang.Runtime.exec(Runtime.java:551)
     [ejbc]    at java.lang.Runtime.exec(Runtime.java:477)
     [ejbc]    at java.lang.Runtime.exec(Runtime.java:443)
     [ejbc]    at weblogic.utils.Executable.exec(Executable.java:208)
     [ejbc]    at weblogic.utils.Executable.exec(Executable.java:133)
     [ejbc]    at
weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.java:545)

     [ejbc]    at
weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:372)
     [ejbc]    at
weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:363)
     [ejbc]    at
weblogic.ejb20.ejbc.EJBCompiler.doCompile(EJBCompiler.java:294)
     [ejbc]    at
weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:396)
     [ejbc]    at weblogic.ejbc20.runBody(ejbc20.java:464)
     [ejbc]    at weblogic.utils.compiler.Tool.run(Tool.java:126)
     [ejbc]    at weblogic.ejbc20.main(ejbc20.java:705)
     [ejbc] Exec failed .. exiting

any help would be greatly appreciated,

Mark Russell
PNC
412-768-9603

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


Mime
View raw message