5 Replies Latest reply on Sep 6, 2011 10:24 AM by Jean-Frederic Clere

    Getting [org.apache.catalina.loader.WebappClassLoader] Failed to open JAR

    Srinivasa Rao Ammina Newbie

      Hi

       

      We are using the hibernate and we are getting the below error some  times

       

      during this code execution.

       

      HibernateTemplate hibernateTemplate = (HibernateTemplate) PPMSpringInitializer.appContext
        .getBean(PPMConfigurationConstants.PPM_HIBERNATE_TEMPLATE);

      System.out.println("EmpowerDBAccess.updatePPMTableTwoFields() - hibernateTemplate : " + hibernateTemplate);
      session= hibernateTemplate.getSessionFactory()
        .openSession();

      System.out.println("EmpowerDBAccess.updatePPMTableTwoFields() - session : " + session);

      int rows = session.createQuery(
        "update " + tableName + " set " + fieldName1 + "='"
          + fieldValue1+"' , " + fieldName2 + "='"
          + fieldValue2+"' where " + fieldName3+ "='"
          + fieldValue3+ "'").executeUpdate();

       

       

      ----------------------------------------------------------------------------------

       

       

       

      2011-08-31 16:07:30,410 DEBUG [org.springframework.beans.factory.support.DefaultListableBeanFactory] Returning cached instance of singleton bean 'ppmHibernateTemplate'

      2011-08-31 16:07:30,420 WARN  [org.apache.catalina.loader.WebappClassLoader] Failed to open JAR

      java.util.zip.ZipException: error in opening zip file

      at java.util.zip.ZipFile.open(Native Method)

      at java.util.zip.ZipFile.<init>(ZipFile.java:203)

      at java.util.jar.JarFile.<init>(JarFile.java:132)

      at java.util.jar.JarFile.<init>(JarFile.java:97)

      at org.apache.catalina.loader.WebappClassLoader.openJARs(WebappClassLoader.java:1544)

      at org.apache.catalina.loader.WebappClassLoader.findResourceInternal(WebappClassLoader.java:1763)

      at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1570)

      at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:850)

      at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1299)

      at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1181)

      at org.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:102)

      at org.hibernate.impl.SessionFactoryImpl.getImportedClassName(SessionFactoryImpl.java:745)

      at org.hibernate.hql.QuerySplitter.getImportedClass(QuerySplitter.java:130)

      at org.hibernate.hql.QuerySplitter.concreteQueries(QuerySplitter.java:96)

      at org.hibernate.impl.SessionFactoryImpl.getQuery(SessionFactoryImpl.java:422)

      at org.hibernate.impl.SessionImpl.getQueries(SessionImpl.java:884)

      at org.hibernate.impl.SessionImpl.executeUpdate(SessionImpl.java:865)

      at org.hibernate.impl.QueryImpl.executeUpdate(QueryImpl.java:89)

      at com.tcs.telecom.ppm.util.DBAccess.updatePPMTableTwoFields(DBAccess.java:35702)

      at com.tcs.telecom.ppm.actions.ExcelAction.getFeasible(ExcelAction.java:2152)

      at sun.reflect.GeneratedMethodAccessor3435.invoke(Unknown Source)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

      at java.lang.reflect.Method.invoke(Method.java:585)

      at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:274)

      at org.apache.struts.actions.LookupDispatchAction.execute(LookupDispatchAction.java:160)

      at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)

      at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)

      at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)

      at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)

      at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

      at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)

      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)

      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)

      at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)

      at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)

      at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)

      at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)

      at com.tcs.telecom.ppm.filter.LoginFilter.doFilter(LoginFilter.java:83)

      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)

      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)

      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)

      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)

      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)

      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)

      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)

      at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)

      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)

      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)

      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)

      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)

      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)

      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)

      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)

      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)

      at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)

      at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)

      at java.lang.Thread.run(Thread.java:595)

      2011-08-31 16:07:30,424 WARN  [org.apache.catalina.loader.WebappClassLoader] Failed to open JAR

      java.util.zip.ZipException: error in opening zip file

      at java.util.zip.ZipFile.open(Native Method)

      at java.util.zip.ZipFile.<init>(ZipFile.java:203)

      at java.util.jar.JarFile.<init>(JarFile.java:132)

      at java.util.jar.JarFile.<init>(JarFile.java:97)

      at org.apache.catalina.loader.WebappClassLoader.openJARs(WebappClassLoader.java:1544)

      at org.apache.catalina.loader.WebappClassLoader.findResourceInternal(WebappClassLoader.java:1763)

      at org.apache.catalina.loader.WebappClassLoader.findClassInternal(WebappClassLoader.java:1570)

      at org.apache.catalina.loader.WebappClassLoader.findClass(WebappClassLoader.java:850)

      at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1299)

      at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1181)

      at org.hibernate.util.ReflectHelper.classForName(ReflectHelper.java:102)

      at org.hibernate.impl.SessionFactoryImpl.getImportedClassName(SessionFactoryImpl.java:745)

      at org.hibernate.hql.QuerySplitter.getImportedClass(QuerySplitter.java:130)

      at org.hibernate.hql.QuerySplitter.concreteQueries(QuerySplitter.java:96)

      at org.hibernate.impl.SessionFactoryImpl.getQuery(SessionFactoryImpl.java:422)

      at org.hibernate.impl.SessionImpl.getQueries(SessionImpl.java:884)

      at org.hibernate.impl.SessionImpl.executeUpdate(SessionImpl.java:865)

      at org.hibernate.impl.QueryImpl.executeUpdate(QueryImpl.java:89)

      at com.tcs.telecom.ppm.util.DBAccess.updatePPMTableTwoFields(DBAccess.java:35702)

      at com.tcs.telecom.ppm.actions.ExcelAction.getFeasible(ExcelAction.java:2152)

      at sun.reflect.GeneratedMethodAccessor3435.invoke(Unknown Source)

      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

      at java.lang.reflect.Method.invoke(Method.java:585)

      at org.apache.struts.actions.DispatchAction.dispatchMethod(DispatchAction.java:274)

      at org.apache.struts.actions.LookupDispatchAction.execute(LookupDispatchAction.java:160)

      at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:419)

      at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)

      at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1194)

      at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)

      at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

      at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)

      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)

      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)

      at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:672)

      at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:463)

      at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:398)

      at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:301)

      at com.tcs.telecom.ppm.filter.LoginFilter.doFilter(LoginFilter.java:83)

      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)

      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)

      at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)

      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)

      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)

      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)

      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)

      at org.jboss.web.tomcat.security.CustomPrincipalValve.invoke(CustomPrincipalValve.java:39)

      at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:159)

      at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:59)

      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)

      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)

      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)

      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)

      at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:856)

      at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:744)

      at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)

      at org.apache.tomcat.util.net.MasterSlaveWorkerThread.run(MasterSlaveWorkerThread.java:112)

      at java.lang.Thread.run(Thread.java:595)