Problem in EJB
Hello
I am new in EJB.I am i am trying to make app with Weblogic.
i have run following command
1. javac *.java
2. jar cvf a.jar *.*
3. java weblogic.ejbc a.jar e.jar
but after this command its return error
error is " Exception in thread "main" java.lang.NoClassDefFoundError:java/util/logging/Handler
at weblogic.ejbc20.<init>(ejbc20.java:82)
at weblogic.ejbc.main(ejbc.java:29)"
can anybody help me ,how can i solve this error. i am using weblogic 8.1
Regard
Anupam...
I have added rt.jar file in classpath,but now this exception is coming..
Exception in thread "main" java.lang.SecurityException: Prohibited package name:
java.util.logging
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.defineClass(Unknown Source)
at java.net.URLClassLoader.access$100(Unknown Source)
at java.net.URLClassLoader$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClassInternal(Unknown Source)
at weblogic.ejbc20.<init>(ejbc20.java:82)
at weblogic.ejbc.main(ejbc.java:29)
Hi Anupam,I'm also facing the same issue. Please let me know if you 've found the solution.I'm also using weblogic8.1.Thanks and regards,Makrand
Maka at 2007-7-16 2:06:09 >

when you jar make sure that you jarring it from the right directory.
i mean the packages should match. for eg. if your class is in the package my.package , then you should jar it from the directory where you my directory resides. i think that is why you are having the problem.
This should solve the problem
cheers