facebook

Problem with struts and hibernate integration

  1. MyEclipse Archived
  2.  > 
  3. Documentation
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #277477 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

    #277577 Reply

    Loyal Water
    Member

    Apply the 6.0.1 update to your installation. That should fix this issue.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Problem with struts and hibernate integration

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