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
Joined: Jan 06, 2001
Posts: 977
posted
0
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
Joined: Dec 07, 2005
Posts: 10
posted
0
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
Joined: Feb 17, 2005
Posts: 704
posted
0
Hi Anuj,
hii i am trying to deploy my first EJB in weblogic8.1
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.
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.
I think, therefore I exist -- Rene Descartes
Makrand Pare
Greenhorn
Joined: Dec 07, 2005
Posts: 10
posted
0
thanks Valentin
Valentin Tanase
Ranch Hand
Joined: Feb 17, 2005
Posts: 704
posted
0
You're very welcome Makrand
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to
run our stuff on 16 servers instead of 3.
subject: deploying helloworld EJB in weblogic 8.1 error in weblogic.ejbc