This week's giveaways are in the MongoDB and Jobs Discussion forums.
We're giving away four copies of Mongo DB Applied Patterns and 4 resume reviews from Five Year Itch and have the authors/reps on-line!
See this thread and this one for details.
The moose likes Object Relational Mapping and the fly likes Java Security Exception Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Mongo DB Applied Patterns this week in the MongoDB forum
or a resume review from Five Year Itch in the Jobs Discussion forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Reply Bookmark "Java Security Exception" Watch "Java Security Exception" New topic
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
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Java Security Exception
 
Similar Threads
gwt upgrade to 2.4 problem
Error:java.lang.NoClassDefFoundError: javax/persistence/EntityList
hbm2ddl ant task + Oracle11g XE
problem connection hibernate eclipse oracle10g
Schema Export Unsuccesful