Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

deploying helloworld EJB in weblogic 8.1 error in weblogic.ejbc

 
AnujTroyGupta Gupta
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hii i am trying to deploy my first EJB in weblogic8.1

i am getting following exception in weblogic.ejbc

C:\bea\weblogic81\samples\domains\workshop\applications>java weblogic.ejbc HelloWorld.jar a.jar

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)

can someone please help me with this PLEASe
thanks a lot
regards
anuj
 
Marcos Maia
Ranch Hand
Posts: 977
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

it looks like you're trying to use the java.util.logging as a package name or maybe to do some log's, wich involves IO. That's not allowed by ejb containers and the ejbc is catching it.
 
Makrand Pare
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Marcos,

Even I'm getting the same problem while using ejbc with weblogic 8.1. However I'm sure that I'm not using ne package name as java.util.logging and also no I/O operations are there in my Code.
Plz suggest.

Thanks and regards,
Makrand
 
Valentin Tanase
Ranch Hand
Posts: 704
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Anuj,


hii i am trying to deploy my first EJB in weblogic8.1

i am getting following exception in weblogic.ejbc

C:\bea\weblogic81\samples\domains\workshop\applications>java weblogic.ejbc HelloWorld.jar a.jar

If you only intend to deploy your application then you don�t need to run the ejbc compiler (which by the way was replaced by the appc). This is a useful test to check if your ejbs artifacts are properly packed, but it is not mandatory. You can deploy your ejbs without pre-compiling them. Simple java compilation should be enough for now. At this time you probably need to open the wl admin console and deploy your application from there.


Exception in thread "main" java.lang.SecurityException: Prohibited package name: java.util.logging

This looks like a java security issue. Somehow your security policies restrict that package from running. Check the java.home/lib/security/java.policy and the user.home/.java.policy files maybe it gives you some clue.
Regards.
 
Makrand Pare
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks Valentin
 
Valentin Tanase
Ranch Hand
Posts: 704
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're very welcome Makrand
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic