• Post Reply Bookmark Topic Watch Topic
  • New Topic

Error generating client jar using weblogic 8.1  RSS feed

Anita JM
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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:
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?
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!