ejbc couldnot invoke compiler
843830Jan 20 2006 — edited Jan 20 2006When i am trying to deploy any ejb application into server i am getting common error as "ejbc couldnot invoke compiler"
I am using weblogic 8.1.Actually this example worked well before.
Recently i installed and unstalled weblogic 9.1.Then onwards i am having problem in deploying not only this example but any.
I have set my classpath correctly to weblogic.jar
This is the error i am getting when i tried to check if any jar file is sucessfull.
There is nothing wrong in application code and deployment descriptors since these wroked before.
C:\j2ee_11\ejb\StatefulBean>java weblogic.ejbc state.jar
<Jan 20, 2006 4:26:45 PM GMT+05:30> <Warning> <EJB> <BEA-010054> <EJB Deployment
: CartBean has a class statedemo.CartBean that is in the classpath. This class should only be located in the ejb-jar file.>
<Jan 20, 2006 4:26:46 PM GMT+05:30> <Warning> <EJB> <BEA-010054> <EJB Deployment
: CartBean has a class statedemo.CartHome that is in the classpath. This class should only be located in the ejb-jar file.>
<Jan 20, 2006 4:26:46 PM GMT+05:30> <Warning> <EJB> <BEA-010054> <EJB Deployment
: CartBean has a class statedemo.Cart that is in the classpath. This class should only be located in the ejb-jar file.>
<Jan 20, 2006 4:26:46 PM GMT+05:30> <Warning> <EJB> <BEA-010212> <The EJB 'CartBean(Jar: state.jar)' contains at least one method without an explicit transaction attribute setting. The default transaction attribute of Supports will be used for the following methods: remote[addTitle(java.lang.String), getName(), getContents(),removeTitle(java.lang.String)] >
Compiler class: 'com.sun.tools.javac.Main', not found
java.lang.ClassNotFoundException: com.sun.tools.javac.Main
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvo
ker.java:406)
at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:
328)
at weblogic.utils.compiler.CompilerInvoker.compile(CompilerInvoker.java:
336)
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:517)
at weblogic.utils.compiler.Tool.run(Tool.java:192)
at weblogic.utils.compiler.Tool.run(Tool.java:147)
at weblogic.ejbc.main(ejbc.java:29)
ERROR: Error from ejbc: Compiler class: 'com.sun.tools.javac.Main', not found
ERROR: ejbc couldn't invoke compiler
C:\j2ee_11\ejb\StatefulBean>