• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

deploying helloworld EJB in weblogic 8.1 error in weblogic.ejbc

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 977
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 704
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
thanks Valentin
 
Valentin Tanase
Ranch Hand
Posts: 704
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You're very welcome Makrand
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic