facebook

Error with struts and hibernate integration in deployment

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

    javaariel
    Member

    Hi every body:

    I’m using myeclipse version 6.0.0 to build may java applications, I was using myeclipse 5.5 so far and everything worked fine, now I upgrade to version 6.0.0 I’m getting some errors before didn’t happen:

    When I create an application with struts 1.2 and hibernate 3.1 capabilities to make a simple insertion in a database table using a form after deploy it I get this 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:1815)
        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)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
        at org.hibernate.mapping.Table.<init>(Table.java:33)
        at org.hibernate.cfg.Mappings.addTable(Mappings.java:165)
        at org.hibernate.cfg.HbmBinder.bindRootPersistentClassCommonValues(HbmBinder.java:299)
        at org.hibernate.cfg.HbmBinder.bindRootClass(HbmBinder.java:282)
        at org.hibernate.cfg.HbmBinder.bindRoot(HbmBinder.java:153)
        at org.hibernate.cfg.Configuration.add(Configuration.java:386)
        at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:427)
        at org.hibernate.cfg.Configuration.addResource(Configuration.java:482)
        at org.hibernate.cfg.Configuration.parseMappingElement(Configuration.java:1465)
        at org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1433)
        at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1414)
        at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1390)
        at org.hibernate.cfg.Configuration.configure(Configuration.java:1310)
        at cu.co.cenatav.hibernate.HibernateSessionFactory.<clinit>(HibernateSessionFactory.java:30)
        at cu.co.cenatav.hibernate.model.BaseHibernateDAO.getSession(BaseHibernateDAO.java:14)
        at cu.co.cenatav.services.ServiceUserImpl.insertUser(ServiceUserImpl.java:61)
        at cu.co.cenatav.struts.action.AddUserAction.execute(AddUserAction.java:47)
        at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
        at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
        at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
        at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:228)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:216)
        at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
        at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:634)
        at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:445)
        at java.lang.Thread.run(Thread.java:619)
    

    However when I test if the insert work with a main method using the Dao Classes that myeclipse generates I not get any error and the insert in the database is made succesfully.

    I supposed this is a bug of myeclipse, is there any way to solve this problem, could you help me please to fix that.
    Thanks in advanced.
    Ariel

    #277491 Reply

    Loyal Water
    Member

    Can you go to MyEclipse > Installation Summary > Installation Details and paste the information here for me.

    #277519 Reply

    javaariel
    Member

    I think I don’t need that, I’m working on windows XP, I get the all in one installer of MyEclipse 6.0 GA for windows, you said here: http://myeclipseide.com/PNphpBB2-viewtopic-t-18409-sid-fc06aa296e982cd9266c83ee95e633f1.html that anyone who took that path doesn’t need to read it.

    Could you help me please??? To fix that problem is very important.
    Greetings

    #277520 Reply

    Loyal Water
    Member

    I guess you haven’t applied the update patches to MyEclipse 6.0. There was a hot fix released to fix this issue some time back. You can update it through our update site by selecting ‘Help > Software Updates > Find and Install… > Search for updates of currently installed features’ and following the prompts. That should resolve this issue.

    #277526 Reply

    javaariel
    Member

    I’m going to try that. I hope it works.
    I’ll tell you later.

    #277533 Reply

    javaariel
    Member
    #277553 Reply

    javaariel
    Member

    The hot fix for version 6.0.0 GA is in a zip file http://downloads.myeclipseide.com/downloads/products/eworkbench/6.0GA/MyEclipse_6.0GA_HotFix_600.1_DiscoverySite.zip Could you tell me How do I nstall That in my MyEclipse ???

    thanks in advanced.
    Greetings

    #277562 Reply

    Loyal Water
    Member

    Instead of downloading this hotfix, I would suggest you go to Help > Software Update > Find and install and apply the MyEclipse 6.0.1 patch. This patch includes the hotfix that you are trying to download.

    Incase you want to only apply the hotfix, you can download this zip file, go to Help > Software Update > Find and Install > Search for new feature to install > New local site and point it to this zip file.

Viewing 8 posts - 1 through 8 (of 8 total)
Reply To: Error with struts and hibernate integration in deployment

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