ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mocek Miroslav (EXT)" <MMo...@CSAS.CZ>
Subject RE: ejbc createprocess problem
Date Tue, 12 Nov 2002 09:36:33 GMT
Hi,
thanks a lot to you and detlef,

it was really because missing 'javac' on the environment variable PATH.

the examining of classpath will be my next task after getting other things
to work properly.
it will be painy, because there is some .jar
(bea/wlportal4.0/lib/p13n/ejb/document.jar), which cause these warnings. but
if i remove it from classpath, it doesn't compile.
so you can choose - compile with warnings or nothing..

thank you one more time
mm


-----Original Message-----
From: Kees Snijders [mailto:KeesS@discoverylife.co.za]
Sent: Tuesday, November 12, 2002 7:26 AM
To: 'Ant Users List'
Subject: RE: ejbc createprocess problem


Hi Mocek,
Those warning are most likely the cause of the error, examine your classpath
carefully, it's finding another version of classes contained in the jar file
you're ejbc compiling.

Also try setting debug and verbose on, something like:
		<java classname="weblogic.ejbc" fork="yes"
failonerror="yes">
 			<classpath refid="project.classpath"/>
			<arg line="-compiler
${weblogic.ejbc.compiler.option} ${weblogic.ejbc.debug.option}
${weblogic.ejbc.extra.options} -keepgenerated ${dist.dir}/${ejbjar}"/>
		</java>

With the properties set thus:
#  the compiler that weblogic.ejbc utilizes
weblogic.ejbc.compiler.option=javac
# weblogic.ejbc.debug.option=-g will add debugging to ejb apps
weblogic.ejbc.debug.option=-g
# available for extra weblogic.ejbc options
weblogic.ejbc.extra.options=-verbose

Cheers,
Kees

-----Original Message-----
From: Mocek Miroslav (EXT) [mailto:MMocek@CSAS.CZ] 
Sent: 11 November 2002 08:19
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:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>

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

--
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