• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Java Security Exception

 
Ranch Hand
Posts: 192
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Kevin Florish
Ranch Hand
Posts: 192
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 192
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic