0 Replies Latest reply on Sep 1, 2010 5:27 AM by sk mishra

    java.lang.SecurityException: Prohibited package name:

    sk mishra Newbie

      Hi,

           I am getting the following error, while deploying one application in Jboss. The versions are as follows: JDK1.6.0_14, JBoss 4.3.0. I have put ojdbc6 in prod --> lib folder.

       

      ERROR [org.apache.catalina.core.ContainerBase] Servlet.service() for servlet action threw exception
      java.lang.SecurityException: Prohibited package name: java.lang
      at java.lang.ClassLoader.defineClass1(Native Method)
      at java.lang.ClassLoader.defineClass(ClassLoader.java:621)
      at java.lang.ClassLoader.defineClass(ClassLoader.java:401)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.logicalcobwebs.cglib.core.ReflectUtils.defineClass(ReflectUtils.java:373)
      at org.logicalcobwebs.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:193)
      at org.logicalcobwebs.cglib.reflect.FastClass$Generator.create(FastClass.java:92)
      at org.logicalcobwebs.cglib.proxy.MethodProxy.helper(MethodProxy.java:118)
      at org.logicalcobwebs.cglib.proxy.MethodProxy.create(MethodProxy.java:89)
      at oracle.sql.BfileDBAccess$$EnhancerByCGLIB$$eb0dd858.<clinit>(<generated>)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.logicalcobwebs.cglib.proxy.EnhancerEmitter.setThreadCallbacks(EnhancerEmitter.java:194)
      at org.logicalcobwebs.cglib.proxy.Enhancer.createUsingReflection(Enhancer.java:372)
      at org.logicalcobwebs.cglib.proxy.Enhancer.firstInstance(Enhancer.java:352)
      at org.logicalcobwebs.cglib.core.AbstractClassGenerator.create(AbstractClassGenerator.java:193)
      at org.logicalcobwebs.cglib.proxy.Enhancer.createHelper(Enhancer.java:331)
      at org.logicalcobwebs.cglib.proxy.Enhancer.create(Enhancer.java:247)
      at org.logicalcobwebs.proxool.ProxyFactory.getProxy(ProxyFactory.java:78)
      at org.logicalcobwebs.proxool.ProxyFactory.getWrappedConnection(ProxyFactory.java:48)
      at org.logicalcobwebs.proxool.ConnectionPool.getConnection(ConnectionPool.java:265)
      at org.logicalcobwebs.proxool.ProxoolDriver.connect(ProxoolDriver.java:89)
      at java.sql.DriverManager.getConnection(DriverManager.java:582)
      at java.sql.DriverManager.getConnection(DriverManager.java:207)
      at org.hibernate.connection.ProxoolConnectionProvider.getConnection(ProxoolConnectionProvider.java:53)
      at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:72)
      at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1463)
      at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1004)
      at com.eaton.electrical.rtc.util.HibernateSessionWrapper.<clinit>(HibernateSessionWrapper.java:36)
      at com.eaton.electrical.rtc.SessionFilter.doFilter(SessionFilter.java:26)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
      at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:241)
      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:580)
      at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
      at java.lang.Thread.run(Thread.java:619)