facebook

Signed Jars Problem with MyEclipse 5.5

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 15 posts - 1 through 15 (of 53 total)
  • Author
    Posts
  • #273503 Reply

    ajibarra
    Member

    Hi 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

    #273552 Reply

    Riyad Kalla
    Member

    Alejandro,
    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.

    #273991 Reply

    harryajh
    Member

    Hi, 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

    #273992 Reply

    harryajh
    Member

    in 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?

    #274008 Reply

    Riyad Kalla
    Member

    Harry,
    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.

    #274039 Reply

    harryajh
    Member

    can 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!

    #274045 Reply

    Loyal Water
    Member

    It 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.

    #274137 Reply

    harryajh
    Member

    still no sign – any idea when?

    #274146 Reply

    Riyad Kalla
    Member

    Final testing on GA occurring right now. Making sure we didn’t miss anything silly.

    #274207 Reply

    lchuenya
    Member

    I just downloaded and installed 6.0.0GA. Still getting the same error.

    #274215 Reply

    denmills
    Member

    I am also getting this error with a new install of 6.0 GA

    #274217 Reply

    lchuenya
    Member

    As 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.

    #274247 Reply

    Riyad Kalla
    Member

    For 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.

    #274298 Reply

    denmills
    Member

    I 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?

    #274314 Reply

    Riyad Kalla
    Member

    denmills… so you weren’t having the signed JAR issue that this thread describes, but instead a library conflict?

Viewing 15 posts - 1 through 15 (of 53 total)
Reply To: Signed Jars Problem with MyEclipse 5.5

You must be logged in to post in the forum log in