Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

EJBC issues

1 view
Skip to first unread message

Thomas A. Valletta

unread,
Jun 25, 2003, 2:06:54 PM6/25/03
to
Hi all,

I have been running the following ant script target:

<target name="ejbc" depends="jar-no-ejbc" description="Run Weblogic.ejbc
on the jar">
<java classname="weblogic.ejbc" fork="yes">
<sysproperty key="weblogic.home" value="${WL_HOME}/server" />
<arg line="-compiler ${weblogic.ejbc.compiler.option}"/>
<arg value="${dist}/no-ejbc/${project.title}-${project.version}.jar"/>
<arg value="${dist}/${project.title}-${project.version}.jar"/>
<classpath>
<pathelement path="${weblogic.jar}"/>
</classpath>
</java>
</target>

but yesterday I started getting the folling error that I have been unable to
resolve:

java.io.IOException: CreateProcess: javac -nowarn -classpath
C:\code\StrutsTest\ejbcgen;C:\jdk1.3.1_07\jre\lib\rt.jar;C:\jdk1.3.1_07\jre\
lib\i18n.jar;C:\jdk1.3.1_07\jre\lib\sunrsasign.jar;C:\jdk1.3.1_07\jre\classe
s;C:\bea\weblogic700\server\lib\weblogic.jar;C:\jdk1.3.1_07\bin -d ejbcgen
@C:\DOCUME~1\lptvalle\LOCALS~1\Temp\compileList48437.tmp error=2
at java.lang.Win32Process.create(Native Method)
at java.lang.Win32Process.<init>(Win32Process.java:61)
at java.lang.Runtime.execInternal(Native Method)
at java.lang.Runtime.exec(Runtime.java:546)
at java.lang.Runtime.exec(Runtime.java:472)
at java.lang.Runtime.exec(Runtime.java:438)
at weblogic.utils.Executable.exec(Executable.java:208)
at weblogic.utils.Executable.exec(Executable.java:133)
at
weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.jav
a:572)
at
weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:373)
at weblogic.ejb20.ejbc.EJBCompiler.doCompile(EJBCompiler.java:245)
at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:344)
at weblogic.ejbc20.runBody(ejbc20.java:470)
at weblogic.utils.compiler.Tool.run(Tool.java:126)
at weblogic.ejbc.main(ejbc.java:29)

I have been reading posts where this was fixed by specifying -compiler javac
or by shortening the classpath, but those things have not worked for me.
Please advise.

Thank you,
Thomas A. Valletta


Mihir Kulkarni

unread,
Jun 28, 2003, 12:08:59 AM6/28/03
to
does this happen when you run the weblogic.ejbc on command line or when it
runs when you auto-deploy the ejb to the server ?
does the ejb jar you are compiling have more than 1 ejb ?
does the ejb jar have a large number of ejbs in it ? in that case, maybe you
need to provide the forked javac process more heap with the -J options.

cheers,
mihir

"Thomas A. Valletta" <lptv...@ihc.com> wrote in message
news:3ef9...@newsgroups.bea.com...

0 new messages