Skip to Main Content

Java Security

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

SecurityException - Class signer ?

843811Oct 28 2003 — edited Feb 25 2008
I'm trying to learn to use JAXB..

Well.. the XML schema binding and stuff seems to go well, but when i try to use the classes (only trying to instantiate the "main" object of my XML structure), i get the following exception :

java.lang.SecurityException: class "javax.xml.namespace.NamespaceContext"'s signer information does not match signer information of other classes in the same package

I read some posts on the forums and some people (with a 'signer-problem') said that there's probably two different versions of the class that's causing the exception on the classpath..

One NamespaceContext -class seems to be in the namespaces.jar that comes with the Java Web Services Development Pack, but where is the other ?

And even if i knew where both of them are (if that's even the problem), what could i do about it ? I probably can't change the system libraries ? :)

This has been driving me nuts all day long, but i'd like to get JAXB to work, so maybe you could help me out here?

Maybe i messed something up while clicking on "next" during the installation process ? :)

And no one else seemed to have had any trouble with the NamespaceContext class !

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 24 2008
Added on Oct 28 2003
16 comments
2,473 views