Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-4637

Unable to process Jar entry (javassist-3.20.0-GA.jar)

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Not A Problem
    • Affects Version/s: 2.5
    • Fix Version/s: 2.5.1
    • Component/s: None
    • Labels:
      None
    • Environment:

      Tomcat 7.0.54 jdk 1.7.0_21

      Description

      I got below error during start up, which seems to be an error during parsing javassit.jar:

      May 21, 2016 9:58:26 AM org.apache.catalina.startup.ContextConfig processAnnotationsJar
      SEVERE: Unable to process Jar entry [javassist/util/proxy/SerializedProxy$1.class] from Jar [jar:file:/E:/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/Saba/WEB-INF/lib/javassist-3.20.0-GA.jar!/] for annotations
      java.io.EOFException
      	at java.io.DataInputStream.readUnsignedShort(DataInputStream.java:340)
      	at org.apache.tomcat.util.bcel.classfile.Utility.swallowMethodParameters(Utility.java:796)
      	at org.apache.tomcat.util.bcel.classfile.Attribute.readAttribute(Attribute.java:171)
      	at org.apache.tomcat.util.bcel.classfile.FieldOrMethod.<init>(FieldOrMethod.java:57)
      	at org.apache.tomcat.util.bcel.classfile.Method.<init>(Method.java:71)
      	at org.apache.tomcat.util.bcel.classfile.ClassParser.readMethods(ClassParser.java:267)
      	at org.apache.tomcat.util.bcel.classfile.ClassParser.parse(ClassParser.java:127)
      	at org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.java:2058)
      	at org.apache.catalina.startup.ContextConfig.processAnnotationsJar(ContextConfig.java:1934)
      	at org.apache.catalina.startup.ContextConfig.processAnnotationsUrl(ContextConfig.java:1900)
      	at org.apache.catalina.startup.ContextConfig.processAnnotations(ContextConfig.java:1885)
      	at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1317)
      	at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:876)
      	at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:374)
      	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
      	at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
      	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5355)
      	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
      	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
      	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
      	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:166)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      	at java.lang.Thread.run(Thread.java:722)
      
      May 21, 2016 9:58:26 AM org.apache.catalina.startup.ContextConfig processAnnotationsJar
      SEVERE: Unable to process Jar entry [javassist/util/proxy/SerializedProxy.class] from Jar [jar:file:/E:/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp1/wtpwebapps/Saba/WEB-INF/lib/javassist-3.20.0-GA.jar!/] for annotations
      java.io.EOFException
      	at java.io.DataInputStream.readUnsignedShort(DataInputStream.java:340)
      	at org.apache.tomcat.util.bcel.classfile.Utility.swallowMethodParameters(Utility.java:797)
      	at org.apache.tomcat.util.bcel.classfile.Attribute.readAttribute(Attribute.java:171)
      	at org.apache.tomcat.util.bcel.classfile.FieldOrMethod.<init>(FieldOrMethod.java:57)
      	at org.apache.tomcat.util.bcel.classfile.Method.<init>(Method.java:71)
      	at org.apache.tomcat.util.bcel.classfile.ClassParser.readMethods(ClassParser.java:267)
      	at org.apache.tomcat.util.bcel.classfile.ClassParser.parse(ClassParser.java:127)
      	at org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.java:2058)
      	at org.apache.catalina.startup.ContextConfig.processAnnotationsJar(ContextConfig.java:1934)
      	at org.apache.catalina.startup.ContextConfig.processAnnotationsUrl(ContextConfig.java:1900)
      	at org.apache.catalina.startup.ContextConfig.processAnnotations(ContextConfig.java:1885)
      	at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1317)
      	at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:876)
      	at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:374)
      	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
      	at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
      	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5355)
      	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
      	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
      	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
      	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:166)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
      	at java.lang.Thread.run(Thread.java:722)
      

        Activity

        Hide
        lukaszlenart Lukasz Lenart added a comment -

        Thanks victorsosa!

        Show
        lukaszlenart Lukasz Lenart added a comment - Thanks victorsosa !
        Hide
        victorsosa victorsosa added a comment -

        Thanks, this is a won't fix.

        Show
        victorsosa victorsosa added a comment - Thanks, this is a won't fix.
        Hide
        afattahi Alireza Fattahi added a comment -

        Thanks. I solve it by adding below to catalina.properties

        tomcat.util.scan.DefaultJarScanner.jarsToSkip=javassist-*.jar
        
        Show
        afattahi Alireza Fattahi added a comment - Thanks. I solve it by adding below to catalina.properties tomcat.util.scan.DefaultJarScanner.jarsToSkip=javassist-*.jar
        Hide
        victorsosa victorsosa added a comment -

        Hi,

        Please update to apache-tomcat-7.0.59

        Show
        victorsosa victorsosa added a comment - Hi, Please update to apache-tomcat-7.0.59

          People

          • Assignee:
            lukaszlenart Lukasz Lenart
            Reporter:
            afattahi Alireza Fattahi
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development