RE: java.lang.SecurityException with NSBundle
RE: java.lang.SecurityException with NSBundle
- Subject: RE: java.lang.SecurityException with NSBundle
- From: "Erlandsson Martin" <email@hidden>
- Date: Wed, 15 Oct 2003 11:58:24 +0200
- Thread-topic: java.lang.SecurityException with NSBundle
Thanks for replying.
Well, I don't have a version or subclass of NSBundle.
Right after I posted I discovered that two classpath entries referred to jars that depend on WO4.5 classes. I removed these entries and the error changed a bit, but still the same root cause (full stack trace below)
This is really strange...
Thanks in advance for any help!
/Martin
--------------------------
java.lang.reflect.InvocationTargetException
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:324)
at com.webobjects.jspservlet.WOServletAdaptor._applicationInit(WOServletAdaptor.java:254)
at com.webobjects.jspservlet.WOServletAdaptor.initStatics(WOServletAdaptor.java:68)
at com.webobjects.jspservlet.WOServletAdaptor.init(WOServletAdaptor.java:468)
at javax.servlet.GenericServlet.init(GenericServlet.java:258)
at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:918)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:810)
at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3279)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:3421)
at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:478)
at org.apache.catalina.core.StandardHost.install(StandardHost.java:738)
at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:324)
at org.apache.catalina.startup.HostConfig.start(HostConfig.java:389)
at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:232)
at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:155)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:638)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
at org.apache.catalina.core.StandardService.start(StandardService.java:388)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
at org.apache.catalina.startup.Catalina.start(Catalina.java:781)
at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
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:324)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)
Caused by: java.lang.SecurityException: class "com.webobjects.foundation.NSBundle"'s signer information does not match signer information of other classes in the same package
at java.lang.ClassLoader.checkCerts(ClassLoader.java:599)
at java.lang.ClassLoader.defineClass(ClassLoader.java:532)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:251)
at java.net.URLClassLoader.access$100(URLClassLoader.java:55)
at java.net.URLClassLoader$1.run(URLClassLoader.java:194)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:187)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:302)
at com.webobjects.appserver.WOApplication.primeApplication(WOApplication.java:357)
... 33 more
Starting service Tomcat-Apache
Apache Tomcat/4.0.4
--------------------------
> -----Original Message-----
> From: Pierre Bernard [mailto:email@hidden]
> Sent: den 15 oktober 2003 10:40
> To: Erlandsson Martin; email@hidden
> Subject: RE: java.lang.SecurityException with NSBundle
>
> Could it be that you have your own version of NSBundle somewhere within your code?
>
> Pierre
>
>
> --
> Got a hang for movies?
> http://homepage.mac.com/I_love_my/movies.html
>
> -----Original Message-----
> From: Erlandsson Martin [mailto:email@hidden]
> Sent: Wednesday, October 15, 2003 9:56 AM
> To: email@hidden
> Subject: java.lang.SecurityException with NSBundle
>
>
> Hi list,
>
> I am converting an old WO4.5 app to WO5.2. When I try to run my
> converted application under Tomcat I get the following error:
>
> --------------------------------
> java.lang.reflect.InvocationTargetException:
> java.lang.SecurityException: class
> "com.webobjects.foundation.NSBundle"'s signer information does not match
> signer
> information of other classes in the same package
> at java.langSecurityException(ClassLoader.java:554)
> at java.lang.ClassLoader.defineClass(ClassLoader.java:482)
> at
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:106)
> at java.net.URLClassLoader.defineClass(URLClassLoader.java:243)
> at java.net.URLClassLoader.access$100(URLClassLoader.java:51)
> at java.net.URLClassLoader$1.run(URLClassLoader.java:190)
> at java.security.AccessController.doPrivileged(Native Method)
> at java.net.URLClassLoader.findClass(URLClassLoader.java:183)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:294)
> at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
> at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:310)
> at
> com.webobjects.appserver.WOApplication.primeApplication(WOApplication.ja
> va:357)
>
> and more...
>
> --------------------------------
>
> My WO installation can run other converted woa projects, so I think
> there is some problem with my code, but I don't know...
> Does anyone know what causes this, or what I can do to get more
> information?
>
> Thanks,
>
> /Martin
> _______________________________________________
> webobjects-dev mailing list | email@hidden
> Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
> Do not post admin requests to the list. They will be ignored.
>
>
> **********************************************************************
> This email and any files transmitted with it are intended solely for
> the use of the individual or entity to whom they are addressed.
> If you have received this email in error please notify the sender
> of this message. (email@hidden)
> This email message has been checked for the presence of computer
> viruses; however this protection does not ensure this message is
> virus free.
> Banque centrale du Luxembourg; Tel ++352-4774-1; http://www.bcl.lu
> **********************************************************************
> _______________________________________________
> webobjects-dev mailing list | email@hidden
> Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
> Do not post admin requests to the list. They will be ignored.A
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.