• Post Reply Bookmark Topic Watch Topic
  • New Topic

java runtime  RSS feed

 
JULIA MORRISON
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does anybody know, how to fix the problem ?

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.

Advanced thanks
 
Mark Wuest
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by JULIA MORRISON:
Does anybody know, how to fix the problem ?

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.

Whoa, Nelly! Ya posted the same stinking question FOUR times!

I'll guess that you're packaging jaxb's jar into a jar of your own making, but you haven't said that. (If so, it's like the patient who said "Doctor, doctor, it hurts when I poke this pin in my eye!" Don't do that.)

So - maybe more details as to how you got to this point? And just ask once (or, it gets like my kids who have finally figured out that the one sure-fire way to make sure that they do not get something they have asked for is to ask for it again. )

Mark
 
JULIA MORRISON
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mark,

so do u have solution for this stinking question ?
 
JULIA MORRISON
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok here is the detail.
I am using Eclipse IDE. in one (Java) project I have the JAXB code. I have an another project (WEB proj.) in which I am using java project as dependent project. in both of my projects I have included all the JAXB jars. When I was tring to create a instance of a class, I got that error. the class used in the following line

private final static org.relaxng.datatype.Datatype ___dt0
= com.sun.xml.bind.unmarshaller.DatatypeDeserializer.deserialize
[inserted line beaks for readability - Jim]

[ July 28, 2005: Message edited by: Jim Yingst ]
[ July 28, 2005: Message edited by: JULIA MORRISON ]
 
Mark Wuest
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by JULIA MORRISON:
so do u have solution for this stinking question?


So - maybe more details as to how you got to this point?

Ummm - I'm not sure how else to word that... What did you do to get here?

Mark
 
JULIA MORRISON
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I guess we have posted at the same time. So, my answer to your question is I have posted already. do u need more info. ?
 
Mark Wuest
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by JULIA MORRISON:
Ok here is the detail.
I am using Eclipse IDE. in one (Java) project I have the JAXB code. I have an another project (WEB proj.) in which I am using java project as dependent project. in both of my projects I have included all the JAXB jars. When I was tring to create a instance of a class, I got that error.

Instead of including the jaxb jar in your jar/ear/war files, try putting it in, say, the extensions folder or whereever your application server's classloader wants such things (e.g.: jboss' server/default/lib) instead.

Mark
 
JULIA MORRISON
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

[ July 28, 2005: Message edited by: JULIA MORRISON ]
 
Mark Wuest
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by JULIA MORRISON:
that problem is gone but I have another problem

Exception in thread "main" java.lang.InternalError: com.sun.msv.datatype.xsd.IntegerDerivedType; local class incompatible: stream classdesc serialVersionUID = -7353993842821534786, local class serialVersionUID = -1684273578404765563

This is because you compiled against a different version of the jar that has that package than the one your loader is finding. I.e.: that package is somewhere in your classpath when you compile (with eclipse or just javac). you should make sure it is a copy of the same jar file getting used when you run.

I know - this is the reason you wish you could bundle that jar in with your other stuff.

Mark
 
Mark Wuest
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by JULIA MORRISON:
Ok here is the detail.
...
private final static org.relaxng.datatype.Datatype ___dt0 =

If you'll go edit this post and delete the stuff after the last line above, our other posts won't get their formatting all bolluxed up...

Mark
 
Jim Yingst
Wanderer
Sheriff
Posts: 18671
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Julia - I just edited one of the posts to have shorter lines, but some lines are still a bit long. So please be aware that if you post really lines with no spaces or line breaks, you may force the entire page to be excessinvely wide, making all the other posts much harder to read than necessary. You can edit your own posts after posting by using the little pencil-and-paper icon at the top of the post.
 
JULIA MORRISON
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mark,

I have checked all the libraries and all are the same version. Moreover, as far as JAXB lib. concern I have only one version.

I am sorry to bother u.
 
Mark Wuest
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by JULIA MORRISON:
I have checked all the libraries and all are the same version. Moreover, as far as JAXB lib. concern I have only one version.

I am sorry to bother u.

No bother - but that's what this problem really is - your program is looking for a different copy of a library than it is finding... And it's a pain to find it...

You may need to do a clean on your build, to make sure no .class files are around, then verify all needed jar dependencies (and verify which ones the runtime loader is actually loading), then rebuild...

Mark
 
JULIA MORRISON
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Mark,

Thank you so much. Yes, you right I had 3 different versions of xsdlib.jar file. I have searched the whole machine and I have removed the old ones. now it is working.

LOVE U
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!