| Author |
Java Security Exception
|
Kevin Florish
Ranch Hand
Joined: Jan 06, 2009
Posts: 155
|
|
Hi
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
hibernate.cfg.xml
Classpath
Stacktrace
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
|
HTML/CSS Tutorials | JavaScript and jQuery Tutorials
|
 |
Kevin Florish
Ranch Hand
Joined: Jan 06, 2009
Posts: 155
|
|
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: 155
|
|
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
Greenhorn
Joined: Nov 17, 2012
Posts: 1
|
|
I came across this problem while converting Hibernate xml code to annotation based.
Visit here for the solution
http://www.smashplus.info/2012/11/javalangsecurityexception-class.html
|
 |
 |
|
|
subject: Java Security Exception
|
|
|