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

Weblogic. ejbc error

2 views
Skip to first unread message

DhirenThakur

unread,
Sep 13, 2004, 1:34:02 AM9/13/04
to
Hi All,

I am learning EJB and trying to deploy first stateless session bean on
weblogic 8.1 server. I have created the different files in required
directory structure format. I have compiled all the java files and
created a test.jar file with all the contents.

I have included the weblogic.jar file in classpath. Now when I am
executing the command java weblogic.ejbc test.jar final.jar following
errors are shown:

<Warning> <EJB> <BEA-010054> <EJB Deployment: sta
telessSession has a class TraderBean that is in the classpath. This
class should
only be located in the ejb-jar file.>
<Warning> <EJB> <BEA-010054> <EJB Deployment: sta
telessSession has a class TraderHome that is in the classpath. This
class should
only be located in the ejb-jar file.>
<Warning> <EJB> <BEA-010054> <EJB Deployment: sta
telessSession has a class Trader that is in the classpath. This class
should onl
y be located in the ejb-jar file.>
<Warning> <EJB> <BEA-010202> <Call-by-reference i
s not enabled for the EJB 'statelessSession'. The server will have
better perfor
mance if it is enabled. To enable call-by-reference, set the
enable-call-by-refe
rence element to True in the weblogic-ejb-jar.xml deployment
descriptor for this
EJB.>
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:199)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:274)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:141)
at weblogic.utils.compiler.CompilerInvoker.compileMaybeExit(CompilerInvo
ker.java:407)
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.ejbc.main(ejbc.java:29)

ERROR: Error from ejbc: Compiler class: 'com.sun.tools.javac.Main',
not found


ERROR: ejbc couldn't invoke compiler

What should be done to rectify these errors.

Thanks in advance.

0 new messages