- This topic has 52 replies, 12 voices, and was last updated 17 years, 9 months ago by
Riyad Kalla.
-
AuthorPosts
-
ajibarraMemberHi all, i am using MyEclipse 5.5 and i create a Struts,Hibernate project, when i tried to access db with Session Factory i get the follow error:
%%%% Error Creating SessionFactory %%%% java.lang.SecurityException: class "org.apache.commons.collections.SequencedHashMap"'s signer information does not match signer information of other classes in the same package at java.lang.ClassLoader.checkCerts(ClassLoader.java:775) at java.lang.ClassLoader.preDefineClass(ClassLoader.java:487) at java.lang.ClassLoader.defineClass(ClassLoader.java:614) at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:124) at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1817) at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:872) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1325) at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)
I read in other post that MyEclipse Installer Team signed the jars on 6.0 but i use 5.5..
Need HELP!!
Thank you,
Alejandro Ibarra
August 6, 2007 at 11:17 am #273552
Riyad KallaMemberAlejandro,
This is a known issue and we no longer sign those JARs in our upcoming 6.0 release. In the mean time,what you can do (and might need to do) is download the version of Hibernate you were using from the Hibernate site, and create a User Library with all those JARs in it, and add that to your build path of your project and remove the MyEclipse Hibernate libraries for the time being.We are really sorry for the trouble.
August 16, 2007 at 10:28 am #273991
harryajhMemberHi, I have exactly the same problem – when you say to down load hibernate and create a user with “all those JARs in it” – is that every single jar in the hibernate-3.1.1.zip file, just the hibernate3.jar file? – if all do I have to remove any jars of the same name already in my project?
thanks
harry
August 16, 2007 at 10:38 am #273992
harryajhMemberin fact, reading the post again I’m using ME 6 M1 & Eclipse 3.2.2 BUT still get exactly the same error – stopped me completely in my tracks!
any ideas?
August 16, 2007 at 12:20 pm #274008
Riyad KallaMemberHarry,
This issue is fixed in 6.0 GA (due out any day now) it wasn’t fixed in 6.0M1, sorry about that.Also the only JARs you need to replace are hibernate3.jar and the cglib JAR.
August 17, 2007 at 7:43 am #274039
harryajhMembercan you please tell me which day? – had to go back to 5.5 which keeps crashing Eclipse under the biggest virus ever release aka Vista!
August 17, 2007 at 8:20 am #274045
Loyal WaterMemberIt was due to be released this weekend. It should be out today or latest by Monday provided we dont run into any last minute issues.
August 21, 2007 at 4:20 am #274137
harryajhMemberstill no sign – any idea when?
August 21, 2007 at 8:07 am #274146
Riyad KallaMemberFinal testing on GA occurring right now. Making sure we didn’t miss anything silly.
August 22, 2007 at 7:27 am #274207
lchuenyaMemberI just downloaded and installed 6.0.0GA. Still getting the same error.
August 22, 2007 at 8:10 am #274215
denmillsMemberI am also getting this error with a new install of 6.0 GA
August 22, 2007 at 8:25 am #274217
lchuenyaMemberAs a workaround, I created my own Hibernate Library as suggested. This didn’t solve the problem until I replace the apache-commons.jar that came with MyEclipse’s Spring Core libraries. Replacing the jar with Hibernate’s copy solved the problem.
August 22, 2007 at 11:12 am #274247
Riyad KallaMemberFor the folks still having problems even after 6.0 GA was installed, go to Window > Prefs > Project Caps > Hibernate, and on each Tab, hit “Restore Defaults”
The paths are likely still pointing at the 6.0M1 libraries and not the 6.0 GA ones. Sometimes the project caps do that.
August 22, 2007 at 2:54 pm #274298
denmillsMemberI tried the suggestion to restore the defaults on all of the hibernate libraries with no luck.
The only thing that worked for my project so far (myfaces 1.1 with hibernate 3.1 on Tomcat 6) was to remove the common-collections.jar (version 2.1.1) from the core hibernate 3.1 libraries. There is another more recent version (3.1) of the common-collections.jar file that comes with the myfaces 1.1 libraries. and this seems to work.
Any more ideas on how to resolve this issue or is it just a bug?
August 22, 2007 at 7:07 pm #274314
Riyad KallaMemberdenmills… so you weren’t having the signed JAR issue that this thread describes, but instead a library conflict?
-
AuthorPosts