1 Reply Latest reply on Sep 21, 2011 2:38 AM by Sridevi Lakshminarayanan

    org.apache.jasper.JasperException: Unable to initialize TldLocationsCache: java.util.zip.ZipException: invalid entry CRC

    Sridevi Lakshminarayanan Newbie

      Hi,

       

      I am using jboss-5.1.0.GA with j2sdk1.4.2_06.

       

      My application is deployed successfully, but I get the error when I browse my app.

       

      Gives the following error,

       

      org.apache.jasper.JasperException: Unable to initialize TldLocationsCache: java.util.zip.ZipException: invalid entry CRC (expected 0x47d80677 but got 0x7815789e)
          org
      .jboss.web.tomcat.service.jasper.TagLibCache.init(TagLibCache.java:106)
          org
      .jboss.web.tomcat.service.jasper.TagLibCache.getLocation(TagLibCache.java:83)
          org
      .apache.jasper.JspCompilationContext.getTldLocation(JspCompilationContext.java:549)
          org
      .apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:428)
          org
      .apache.jasper.compiler.Parser.parseDirective(Parser.java:491)
          org
      .apache.jasper.compiler.Parser.parseElements(Parser.java:1438)
          org
      .apache.jasper.compiler.Parser.parse(Parser.java:137)
          org
      .apache.jasper.compiler.ParserController.doParse(ParserController.java:255)
          org
      .apache.jasper.compiler.ParserController.parse(ParserController.java:103)
          org
      .apache.jasper.compiler.Compiler.generateJava(Compiler.java:171)
          org
      .apache.jasper.compiler.Compiler.compile(Compiler.java:333)
          org
      .apache.jasper.compiler.Compiler.compile(Compiler.java:313)
          org
      .apache.jasper.compiler.Compiler.compile(Compiler.java:300)
          org
      .apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:585)
          org
      .apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:312)
          org
      .apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:322)
          org
      .apache.jasper.servlet.JspServlet.service(JspServlet.java:249)
          javax
      .servlet.http.HttpServlet.service(HttpServlet.java:717)
          org
      .jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)


      root cause 

      org
      .apache.jasper.JasperException: java.util.zip.ZipException: invalid entry CRC (expected 0x47d80677 but got 0x7815789e)
          org
      .jboss.web.tomcat.service.jasper.TagLibCache.scanJar(TagLibCache.java:343)
          org
      .jboss.web.tomcat.service.jasper.TagLibCache.processTldsInFileSystem(TagLibCache.java:268)
          org
      .jboss.web.tomcat.service.jasper.TagLibCache.processTldsInFileSystem(TagLibCache.java:261)
          org
      .jboss.web.tomcat.service.jasper.TagLibCache.init(TagLibCache.java:101)
          org
      .jboss.web.tomcat.service.jasper.TagLibCache.getLocation(TagLibCache.java:83)
          org
      .apache.jasper.JspCompilationContext.getTldLocation(JspCompilationContext.java:549)
          org
      .apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:428)
          org
      .apache.jasper.compiler.Parser.parseDirective(Parser.java:491)
          org
      .apache.jasper.compiler.Parser.parseElements(Parser.java:1438)
          org
      .apache.jasper.compiler.Parser.parse(Parser.java:137)
          org
      .apache.jasper.compiler.ParserController.doParse(ParserController.java:255)
          org
      .apache.jasper.compiler.ParserController.parse(ParserController.java:103)
          org
      .apache.jasper.compiler.Compiler.generateJava(Compiler.java:171)
          org
      .apache.jasper.compiler.Compiler.compile(Compiler.java:333)
          org
      .apache.jasper.compiler.Compiler.compile(Compiler.java:313)
          org
      .apache.jasper.compiler.Compiler.compile(Compiler.java:300)
          org
      .apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:585)
          org
      .apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:312)
          org
      .apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:322)
          org
      .apache.jasper.servlet.JspServlet.service(JspServlet.java:249)
          javax
      .servlet.http.HttpServlet.service(HttpServlet.java:717)
          org
      .jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
      root cause 
      java
      .util.zip.ZipException: invalid entry CRC (expected 0x47d80677 but got 0x7815789e)
          java
      .util.zip.ZipInputStream.readEnd(ZipInputStream.java:381)
          java
      .util.zip.ZipInputStream.read(ZipInputStream.java:148)
          java
      .util.jar.JarInputStream.read(JarInputStream.java:177)
          java
      .util.zip.ZipInputStream.closeEntry(ZipInputStream.java:92)
          java
      .util.zip.ZipInputStream.getNextEntry(ZipInputStream.java:70)
          java
      .util.jar.JarInputStream.getNextEntry(JarInputStream.java:118)
          java
      .util.jar.JarInputStream.getNextJarEntry(JarInputStream.java:149)
          org
      .jboss.web.tomcat.service.jasper.TagLibCache.scanJar(TagLibCache.java:324)
          org
      .jboss.web.tomcat.service.jasper.TagLibCache.processTldsInFileSystem(TagLibCache.java:268)
          org
      .jboss.web.tomcat.service.jasper.TagLibCache.processTldsInFileSystem(TagLibCache.java:261)
          org
      .jboss.web.tomcat.service.jasper.TagLibCache.init(TagLibCache.java:101)
          org
      .jboss.web.tomcat.service.jasper.TagLibCache.getLocation(TagLibCache.java:83)
          org
      .apache.jasper.JspCompilationContext.getTldLocation(JspCompilationContext.java:549)
          org
      .apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:428)
          org
      .apache.jasper.compiler.Parser.parseDirective(Parser.java:491)
          org
      .apache.jasper.compiler.Parser.parseElements(Parser.java:1438)
          org
      .apache.jasper.compiler.Parser.parse(Parser.java:137)
          org
      .apache.jasper.compiler.ParserController.doParse(ParserController.java:255)
          org
      .apache.jasper.compiler.ParserController.parse(ParserController.java:103)
          org
      .apache.jasper.compiler.Compiler.generateJava(Compiler.java:171)
          org
      .apache.jasper.compiler.Compiler.compile(Compiler.java:333)
          org
      .apache.jasper.compiler.Compiler.compile(Compiler.java:313)
          org
      .apache.jasper.compiler.Compiler.compile(Compiler.java:300)
          org
      .apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:585)
          org
      .apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:312)
          org
      .apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:322)
          org
      .apache.jasper.servlet.JspServlet.service(JspServlet.java:249)
          javax
      .servlet.http.HttpServlet.service(HttpServlet.java:717)
          org
      .jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)


      I have been asked to add the following in

       

       

      default/deployers/jboss.deployer/web.xml

       

      <init-param> <param-name>engineOptionsClass</param-name>
         
      <param-value>org.jboss.web.tomcat.tc5.jasper.JspServletOptions
         
      </param-value> 
      </init-param>


       

      Now I get the following error when deploying itself

       

       

      12:06:20,404 WARN  [JspServlet] Failed to load engineOptionsClass

      java.lang.ClassNotFoundException: org.jboss.web.tomcat.tc5.jasper.JspServletOptions

              at java.net.URLClassLoader$1.run(URLClassLoader.java:200)

              at java.security.AccessController.doPrivileged(Native Method)

              at java.net.URLClassLoader.findClass(URLClassLoader.java:188)

              at java.lang.ClassLoader.loadClass(ClassLoader.java:306)

              at java.lang.ClassLoader.loadClass(ClassLoader.java:251)

              at org.apache.jasper.servlet.JspServlet.init(JspServlet.java:85)

              at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1048)

              at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:950)

              at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4122)

              at org.apache.catalina.core.StandardContext.start(StandardContext.java:4421)

              at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:310)

              at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:142)

              at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:461)

              at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118)

              at org.jboss.web.deployers.WebModule.start(WebModule.java:97)

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

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

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

              at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)

              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)

              at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)

              at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)

              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)

              at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)

              at $Proxy38.start(Unknown Source)

              at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)

              at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)

              at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)

              at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)

              at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)

              at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)

              at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:286)

              at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)

              at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)

              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)

              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)

              at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)

              at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)

              at org.jboss.system.ServiceController.doChange(ServiceController.java:688)

              at org.jboss.system.ServiceController.start(ServiceController.java:460)

              at org.jboss.system.microcontainer.jmx.ServiceControllerStartStopLifecycleCallback.install(ServiceControllerStartStopLifecycleCallback.java:44)

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

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

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

              at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:59)

              at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:150)

              at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)

              at org.jboss.beans.info.plugins.AbstractBeanInfo.invoke(AbstractBeanInfo.java:300)

              at org.jboss.kernel.plugins.dependency.AbstractKernelControllerContext.invoke(AbstractKernelControllerContext.java:286)

              at org.jboss.dependency.plugins.AbstractLifecycleCallbackItem.install(AbstractLifecycleCallbackItem.java:87)

              at org.jboss.dependency.plugins.AbstractController.handleLifecycleCallbacks(AbstractController.java:1568)

              at org.jboss.dependency.plugins.AbstractController.handleInstallLifecycleCallbacks(AbstractController.java:1533)

              at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:943)

              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)

              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)

              at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)

              at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)

              at org.jboss.system.ServiceController.doChange(ServiceController.java:688)

              at org.jboss.system.ServiceController.start(ServiceController.java:460)

              at org.jboss.system.microcontainer.jmx.ServiceControllerStartStopLifecycleCallback.install(ServiceControllerStartStopLifecycleCallback.java:44)

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

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

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

              at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:59)

              at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:150)

              at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)

              at org.jboss.beans.info.plugins.AbstractBeanInfo.invoke(AbstractBeanInfo.java:300)

              at org.jboss.kernel.plugins.dependency.AbstractKernelControllerContext.invoke(AbstractKernelControllerContext.java:286)

              at org.jboss.dependency.plugins.AbstractLifecycleCallbackItem.install(AbstractLifecycleCallbackItem.java:87)

              at org.jboss.dependency.plugins.AbstractController.handleLifecycleCallbacks(AbstractController.java:1568)

              at org.jboss.dependency.plugins.AbstractController.handleInstallLifecycleCallbacks(AbstractController.java:1533)

              at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:943)

              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)

              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)

              at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:774)

              at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:540)

              at org.jboss.system.ServiceController.doInstall(ServiceController.java:670)

              at org.jboss.system.ServiceController.register(ServiceController.java:373)

              at org.jboss.system.microcontainer.jmx.ServiceControllerRegistrationLifecycleCallback.install(ServiceControllerRegistrationLifecycleCallback.java

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

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

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

              at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:59)

              at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:150)

              at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)

              at org.jboss.beans.info.plugins.AbstractBeanInfo.invoke(AbstractBeanInfo.java:300)

              at org.jboss.kernel.plugins.dependency.AbstractKernelControllerContext.invoke(AbstractKernelControllerContext.java:286)

              at org.jboss.dependency.plugins.AbstractLifecycleCallbackItem.install(AbstractLifecycleCallbackItem.java:87)

              at org.jboss.dependency.plugins.AbstractController.handleLifecycleCallbacks(AbstractController.java:1568)

              at org.jboss.dependency.plugins.AbstractController.handleInstallLifecycleCallbacks(AbstractController.java:1533)

              at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:943)

              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)

              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)

              at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)

              at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)

              at org.jboss.system.ServiceController.doChange(ServiceController.java:688)

              at org.jboss.system.ServiceController.start(ServiceController.java:460)

              at org.jboss.system.microcontainer.jmx.ServiceControllerStartStopLifecycleCallback.install(ServiceControllerStartStopLifecycleCallback.java:44)

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

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

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

              at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:59)

              at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:150)

              at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)

              at org.jboss.beans.info.plugins.AbstractBeanInfo.invoke(AbstractBeanInfo.java:300)

              at org.jboss.kernel.plugins.dependency.AbstractKernelControllerContext.invoke(AbstractKernelControllerContext.java:286)

              at org.jboss.dependency.plugins.AbstractLifecycleCallbackItem.install(AbstractLifecycleCallbackItem.java:87)

              at org.jboss.dependency.plugins.AbstractController.handleLifecycleCallbacks(AbstractController.java:1568)

              at org.jboss.dependency.plugins.AbstractController.handleInstallLifecycleCallbacks(AbstractController.java:1533)

              at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:943)

              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)

              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)

              at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:774)

              at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:540)

              at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:121)

              at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:51)

              at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)

              at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)

              at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:171)

              at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1439)

              at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1157)

              at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1178)

              at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1098)

              at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)

              at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)

              at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)

              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)

              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)

              at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)

              at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)

              at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:781)

              at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:702)

              at org.jboss.system.server.profileservice.repository.MainDeployerAdapter.process(MainDeployerAdapter.java:117)

              at org.jboss.system.server.profileservice.repository.ProfileDeployAction.install(ProfileDeployAction.java:70)

              at org.jboss.system.server.profileservice.repository.AbstractProfileAction.install(AbstractProfileAction.java:53)

              at org.jboss.system.server.profileservice.repository.AbstractProfileService.install(AbstractProfileService.java:361)

              at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)

              at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1631)

              at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)

              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1082)

              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)

              at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)

              at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)

              at org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)

              at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)

              at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)

              at org.jboss.Main.boot(Main.java:221)

              at org.jboss.Main$1.run(Main.java:556)

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

      12:06:20,638 INFO  [TomcatDeployment] deploy, ctxPath=/jbossws

      12:06:20,685 WARN  [JspServlet] Failed to load engineOptionsClass

      java.lang.ClassNotFoundException: org.jboss.web.tomcat.tc5.jasper.JspServletOptions

       

      Please help.