File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Object Relational Mapping and the fly likes Java Security Exception Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Java Security Exception" Watch "Java Security Exception" New topic

Java Security Exception

Kevin Florish
Ranch Hand

Joined: Jan 06, 2009
Posts: 181

Am trying to recreate the first tutorial from Cameron McKenzie's book 'Hibernate Made Easy' but have run into this security problem and am totally baffled

User Class




Have reinstalled MySQL with a password of root to ensure but still the same error and think I may be barking up the wrong tree.

Any help greatly appreciated.

Thanks Kevin

Java5 Tutorials | Java6 Tutorials | HTML/CSS Tutorials | JavaScript and jQuery Tutorials
Kevin Florish
Ranch Hand

Joined: Jan 06, 2009
Posts: 181
It seems I was barking up the wrong tree although I haven't resolved the problem.

signer information does not match signer information of other classes in the same package
seems to occur when digital signatures are involved it seems.

I have run jarsigner -verify on all jars within the classpath and none seemed to be signed so this doesnt appear to be the problem.

I have also moved the User class into a seperate package from the rest of the project and still get the same security exception, so am still kinda stuck on Chapter 1 of the book, very frustrating.

If anyone has had this problem could you please post a resolution.

Many Thanks Kevin.
Kevin Florish
Ranch Hand

Joined: Jan 06, 2009
Posts: 181
In the end I used Maven 2 to solve the project dependencies and this has gottem me further along with the test example although I still have issues connecting to MySQL 5.1 at the moment.

For anyone else who comes across this problem here is the pom.xml file I used. The artifacts are all from my local drive and are from the latest versions of hibernate and MySql at the time of writing..

Hope this may help someone else from spending a week trying to rectify this problem when trying to do the first book example.

shamsudeen saithalavi

Joined: Nov 17, 2012
Posts: 1
I came across this problem while converting Hibernate xml code to annotation based.
Visit here for the solution
I agree. Here's the link:
subject: Java Security Exception
It's not a secret anymore!