GeeCON Prague 2014*
The moose likes EJB and other Java EE Technologies and the fly likes problem with JAR 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
Reply locked New topic
Author

problem with JAR

JULIA MORRISON
Greenhorn

Joined: Jul 28, 2005
Posts: 10
I am using JAXB with my application and I getting the following error at run time

Caused by: java.lang.SecurityException: class "com.sun.msv.datatype.xsd.WhiteSpaceProcessor$Collapse"'s signer information does not match signer information of other classes in the same package

If someone can give some solution, that would be great !!!
Valentin Tanase
Ranch Hand

Joined: Feb 17, 2005
Posts: 704
Hi Julia,

Hi Julia,

I�m no JAXB expert, but this error might happen in different scenarios when jar files are not properly signed. An example could be when a class is located in two jars (and both are presented into the classpath), but only the second jar is signed. Now I don�t exactly remember but if switching the order in which the jars are loaded and having the signed jars loaded first might overcome the problem. Also is worth trying deploying those signed jars into the endorsed folder of the server runtime environment. Finally if nothing works, there is a very simple (although not always recommended) trick: usually the jars are signed using a special tool like jarsigner. In a nutshell this tool inserts two special files xxx.SF and xxx.RSA inside the jar in order to sign it. The trick is to remove those files from the jar and �unsigned� the jar. If you think this won�t bring any security concerns to your environment you might try it, but please don�t tell your manger I was the one that told you about it :-)
I hope other people will advice you better.
Regards.


I think, therefore I exist -- Rene Descartes
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24187
    
  34

Extensive discussion here.


[Jess in Action][AskingGoodQuestions]
 
GeeCON Prague 2014
 
subject: problem with JAR