You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by "Mocek Miroslav (EXT)" <MM...@CSAS.CZ> on 2002/11/11 19:18:39 UTC
ejbc createprocess problem
Hi,
I have problems with following code snipet:
<echo message="Running WebLogic ejbc compiler..."/>
<java classname="weblogic.ejbc" fork="yes">
<classpath>
<path refid="common.project.class.path"/>
</classpath>
<arg value="-compiler"/>
<arg value="javac"/>
<arg value="${dir.build.ejb}/${param.jarname}"/>
<arg value="${dir.build.jar}/${param.jarname}"/>
</java>
<echo message="Running WebLogic ejbc compiler...Done"/>
It works well on my machine, but on the other machine, we get the error
bellow,
Could anyone point me with the right direction, where the problem lies?
(Actually, this is the all information, i have. Not too much, i know)
Thanks in advance
Mirek Mocek
error:
[echo] Running WebLogic ejbc compiler...
[java] <11.11.2002 16:06:52 CET> <Warning> <EJB> <EJB
Deployment: InetCoreS
ession has a class cz.csas.inet.core.ejb.InetCoreSessionBean
which is in the cla
sspath. This class should only be located in the ejb-jar
file.>
[java] <11.11.2002 16:06:52 CET> <Warning> <EJB> <EJB
Deployment: InetCoreS
ession has a class cz.csas.inet.core.ejb.InetCoreSessionHome
which is in the cla
sspath. This class should only be located in the ejb-jar
file.>
[java] <11.11.2002 16:06:52 CET> <Warning> <EJB> <EJB
Deployment: InetCoreS
ession has a class cz.csas.inet.core.ejb.InetCoreSession
which is in the classpa
th. This class should only be located in the ejb-jar file.>
[java] java.io.IOException: CreateProcess: javac
-nowarn -classpath C:\deve
lop\ejbcgen;C:\bea\jdk131\jre\lib\rt.jar;C:\bea\jdk131\
jre\lib\i18n.jar;C:\bea\jdk131\jre\lib\sunrsasign.jar;C:\bea\jdk131\jre\clas
ses;
C:\bea\jdk131\jre\lib\rt.jar;C:\bea\wlserver6.1\lib\weblogic.jar;C:\bea\wlpo
rtal
4.0\lib\p13n\ejb\document.jar;C:\bea\wlportal4.0\lib\p13n\ejb\p13n_util.jar;
C:\b
ea\wlportal4.0\lib\p13n\ejb\property.jar;C:\develop\temp
-d C:\develop\ejbcgen
C:\develop\ejbcgen\cz\csas\inet\core\ejb\*.java error=2
[java] at java.lang.Win32Process.create(Native
Method)
[java] at
java.lang.Win32Process.<init>(Win32Process.java:61)
[java] at java.lang.Runtime.execInternal(Native
Method)
[java] at java.lang.Runtime.exec(Runtime.java:546)
[java] at java.lang.Runtime.exec(Runtime.java:472)
[java] at java.lang.Runtime.exec(Runtime.java:438)
[java] at
weblogic.utils.Executable.exec(Executable.java:209)
[java] at
weblogic.utils.Executable.exec(Executable.java:134)
[java] at
weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(Comp
ilerInvoker.java:545)
[java] at
weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvok
er.java:372)
[java] at
weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvok
er.java:363)
[java] at
weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:2
46)
[java] at weblogic.ejbc20.runBody(ejbc20.java:360)
[java] at
weblogic.utils.compiler.Tool.run(Tool.java:79)
[java] at weblogic.ejbc.main(ejbc.java:21)
[java] Exec failed .. exiting
[java] Java Result: 1
[echo] Running WebLogic ejbc compiler...Done
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
RE: ejbc createprocess problem
Posted by Detlef Brendle <de...@canoo.com>.
we actually have the same issue.
We figured out that 'javac' is missing on the environment PATH.
Adding it to the PATH would be a workaround, but we also dont know
why this error occurs.
We would be glad to get a solution for this too.
detlef
-----Original Message-----
From: Mocek Miroslav (EXT) [mailto:MMocek@CSAS.CZ]
Sent: Monday, November 11, 2002 7:19 PM
To: ant-user@jakarta.apache.org
Subject: ejbc createprocess problem
Hi,
I have problems with following code snipet:
<echo message="Running WebLogic ejbc compiler..."/>
<java classname="weblogic.ejbc" fork="yes">
<classpath>
<path refid="common.project.class.path"/>
</classpath>
<arg value="-compiler"/>
<arg value="javac"/>
<arg value="${dir.build.ejb}/${param.jarname}"/>
<arg value="${dir.build.jar}/${param.jarname}"/>
</java>
<echo message="Running WebLogic ejbc compiler...Done"/>
It works well on my machine, but on the other machine, we get the error
bellow,
Could anyone point me with the right direction, where the problem lies?
(Actually, this is the all information, i have. Not too much, i know)
Thanks in advance
Mirek Mocek
error:
[echo] Running WebLogic ejbc compiler...
[java] <11.11.2002 16:06:52 CET> <Warning> <EJB> <EJB
Deployment: InetCoreS
ession has a class cz.csas.inet.core.ejb.InetCoreSessionBean
which is in the cla
sspath. This class should only be located in the ejb-jar
file.>
[java] <11.11.2002 16:06:52 CET> <Warning> <EJB> <EJB
Deployment: InetCoreS
ession has a class cz.csas.inet.core.ejb.InetCoreSessionHome
which is in the cla
sspath. This class should only be located in the ejb-jar
file.>
[java] <11.11.2002 16:06:52 CET> <Warning> <EJB> <EJB
Deployment: InetCoreS
ession has a class cz.csas.inet.core.ejb.InetCoreSession
which is in the classpa
th. This class should only be located in the ejb-jar file.>
[java] java.io.IOException: CreateProcess: javac
-nowarn -classpath C:\deve
lop\ejbcgen;C:\bea\jdk131\jre\lib\rt.jar;C:\bea\jdk131\
jre\lib\i18n.jar;C:\bea\jdk131\jre\lib\sunrsasign.jar;C:\bea\jdk131\jre\clas
ses;
C:\bea\jdk131\jre\lib\rt.jar;C:\bea\wlserver6.1\lib\weblogic.jar;C:\bea\wlpo
rtal
4.0\lib\p13n\ejb\document.jar;C:\bea\wlportal4.0\lib\p13n\ejb\p13n_util.jar;
C:\b
ea\wlportal4.0\lib\p13n\ejb\property.jar;C:\develop\temp
-d C:\develop\ejbcgen
C:\develop\ejbcgen\cz\csas\inet\core\ejb\*.java error=2
[java] at java.lang.Win32Process.create(Native
Method)
[java] at
java.lang.Win32Process.<init>(Win32Process.java:61)
[java] at java.lang.Runtime.execInternal(Native
Method)
[java] at java.lang.Runtime.exec(Runtime.java:546)
[java] at java.lang.Runtime.exec(Runtime.java:472)
[java] at java.lang.Runtime.exec(Runtime.java:438)
[java] at
weblogic.utils.Executable.exec(Executable.java:209)
[java] at
weblogic.utils.Executable.exec(Executable.java:134)
[java] at
weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(Comp
ilerInvoker.java:545)
[java] at
weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvok
er.java:372)
[java] at
weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvok
er.java:363)
[java] at
weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:2
46)
[java] at weblogic.ejbc20.runBody(ejbc20.java:360)
[java] at
weblogic.utils.compiler.Tool.run(Tool.java:79)
[java] at weblogic.ejbc.main(ejbc.java:21)
[java] Exec failed .. exiting
[java] Java Result: 1
[echo] Running WebLogic ejbc compiler...Done
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>