File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes EJB and other Java EE Technologies and the fly likes Error generating client jar using weblogic 8.1 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Error generating client jar using weblogic 8.1" Watch "Error generating client jar using weblogic 8.1" New topic
Author

Error generating client jar using weblogic 8.1

Anita JM
Greenhorn

Joined: Apr 24, 2006
Posts: 1
With weblogic 8.1 and jdk 1.4, I'm trying to generate the client jar using

java weblogic.ejbc -basicClientJar application_ejbs.jar application_ejbsClient.jar

The following error is thrown:
Exception in thread "main" java.lang.SecurityException: Prohibited package name:
java.util.logging
at java.lang.ClassLoader.defineClass(ClassLoader.java:474)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:106)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:243)
at java.net.URLClassLoader.access$100(URLClassLoader.java:51)
at java.net.URLClassLoader$1.run(URLClassLoader.java:190)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:183)
at java.lang.ClassLoader.loadClass(ClassLoader.java:294)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:281)
at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:310)
at weblogic.ejbc20.<init>(ejbc20.java:82)
at weblogic.ejbc.main(ejbc.java:29)

One forum mentioned removing rt.jar from the classpath.
But if rt.jar is removed from the classpath then the following error is thrown:

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)


Is there any other way of including rt.jar or of resolving the first error?
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Error generating client jar using weblogic 8.1