aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes deploying helloworld EJB in weblogic 8.1 error in weblogic.ejbc 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 "deploying helloworld EJB in weblogic 8.1 error in weblogic.ejbc" Watch "deploying helloworld EJB in weblogic 8.1 error in weblogic.ejbc" New topic
Author

deploying helloworld EJB in weblogic 8.1 error in weblogic.ejbc

AnujTroyGupta Gupta
Greenhorn

Joined: Nov 24, 2004
Posts: 2
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

Joined: Jan 06, 2001
Posts: 977
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
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
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.


I think, therefore I exist -- Rene Descartes
Makrand Pare
Greenhorn

Joined: Dec 07, 2005
Posts: 10
thanks Valentin
Valentin Tanase
Ranch Hand

Joined: Feb 17, 2005
Posts: 704
You're very welcome Makrand
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: deploying helloworld EJB in weblogic 8.1 error in weblogic.ejbc