用Welogic Builder打包EJB的问题

03-08-30 lyojbuilder
我用Weblogic Builder打包的时候,weblogic builder总报错:“ERROR: Error from ejbc: Compiler class: 'com.sun.tools.javac.Main', not found”

可是我的classpath中是有JAVA_HOME的,lib也设置了,classpath没有问题,还有哪里需要设置吗?

有时候它还说:“can't find ejbc”,但我在option中指定了G:\bea,(bea home,我开始是想指定ejbc,在option中只显示.exe的文件,但是ejbc是在weblogic.jar中,weblogic builder好像不认)又报错说:“Compiling EJB sources

java.io.IOException: CreateProcess: G:\bea\weblogic81\server\lib\weblogic.jar -nowarn -classpath G:\bea\jdk141_03\jre\lib\rt.jar;G:\bea\jdk141_03\jre\lib\i18n.jar;G:\bea\jdk141_03\jre\lib\sunrsasign.jar;G:\bea\jdk141_03\jre\lib\jsse.jar;G:\bea\jdk141_03\jre\lib\jce.jar;G:\bea\jdk141_03\jre\lib\charsets.jar;G:\bea\jdk141_03\jre\classes;G:\bea\weblogic81\server\lib\weblogic.jar;G:\bea\weblogic81\server\lib\wlcipher.jar;G:\bea\weblogic81\server\lib\webservices.jar;G:\bea\weblogic81\server\lib\xmlx.jar;G:\bea\weblogic81\server\lib\ojdbc14.jar;G:\bea\weblogic81\server\lib\EccpressoAsn1.jar;G:\bea\weblogic81\server\lib\EccpressoCore.jar;G:\bea\weblogic81\server\lib\EccpressoJcae.jar;G:\bea\weblogic81\server\lib\ant\ant.jar;G:\bea\weblogic81\server\lib\ant\optional.jar;G:\bea\weblogic81\server\lib\ant\xml-apis.jar;G:\bea\weblogic81\server\lib\ant\xercesImpl.jar;G:\bea\weblogic81\server\lib\ant\xalan.jar;G:\bea\weblogic81\server\lib\ant\jakarta-oro-2.0.4.jar;G:\bea\weblogic81\common\perf\java\dirig.jar;G:\bea\weblogic81\common\perf\java\?

at java.lang.Win32Process.create(Native Method)

at java.lang.Win32Process.<init>(Win32Process.java:67)

at java.lang.Runtime.execInternal(Native Method)

at java.lang.Runtime.exec(Runtime.java:566)

at java.lang.Runtime.exec(Runtime.java:491)

at java.lang.Runtime.exec(Runtime.java:457)

at weblogic.utils.Executable.exec(Executable.java:227)

at weblogic.utils.Executable.exec(Executable.java:156)

at weblogic.utils.Executable.exec(Executable.java:142)

at weblogic.utils.compiler.CompilerInvoker.execCompiler(CompilerInvoker.java:249)

at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvoker.java:428)

at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:329)

at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:337)

at weblogic.ejb20.ejbc.EJBCompiler.doCompile(EJBCompiler.java:270)

at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:476)

at weblogic.ejb20.ejbc.EJBCompiler.compileEJB(EJBCompiler.java:397)

at weblogic.ejbc20.runBody(ejbc20.java:519)

at weblogic.utils.compiler.Tool.run(Tool.java:146)

at weblogic.utils.compiler.Tool.run(Tool.java:103)

at weblogic.marathon.tasks.EJBCTask.runBackground(EJBCTask.java:140)

at weblogic.tools.jellybeans.core.task.TaskThread.execute(TaskThread.java:127)

at weblogic.tools.jellybeans.core.task.TaskThread.run(TaskThread.java:64)

ERROR: Error compiling EJB sources

ERROR: Error from ejbc: Compiler failed executable.exec”

executable.exec是什麽?

猜你喜欢