Bug #2472

tomcat cannot parse the javaassist annotation classes

Added by Andrea Dell'Amico almost 4 years ago. Updated almost 4 years ago.

Status:ClosedStart date:Mar 03, 2016
Priority:HighDue date:Mar 31, 2016
Assignee:Luca Frosini% Done:

100%

Category:distribution
Sprint:zz - Smartgears Improvements & Fixes
Milestones:
Duration: 21

Description

Example on a recent smartgears installation:

2016-03-03 17:51:11,722 [localhost-startStop-1] ERROR org.apache.catalina.startup.ContextConfig- Unable to process Jar entry [javassist/ByteArrayClassPath.class] from Jar [jar:file:/home/gcube/tomcat/lib/javassist-3.19.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:5378)
        at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
        at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:649)
        at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:1083)
        at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1880)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
        at java.util.concurrent.FutureTask.run(FutureTask.java:262)
        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:745)

It seems that it doesn't harm the webservice deployment, btw.


Related issues

Related to gCube - Feature #2357: Remove reflections dependency from document-store-lib Closed Feb 25, 2016 Mar 31, 2016
Related to gCube - Feature #2358: Remove reflections dependency from accounting-lib Closed Feb 25, 2016 Mar 31, 2016

History

#1 Updated by Andrea Dell'Amico almost 4 years ago

  • Related to Feature #2354: Make smartgears zero dependencies added

#2 Updated by Pasquale Pagano almost 4 years ago

  • Priority changed from Normal to High

#3 Updated by Luca Frosini almost 4 years ago

Th container log a long list of exception at startup, but it seems not compromising the operation of the container.
This is a well known javaassist bug.

To solve it we have to switch to zero-dependecy version of document-store-lib and accounting-lib.
Lino please let me know as soon as possible if you want to switch to this version in 3.10.1 or you want to wait for release 3.11.0.

#4 Updated by Luca Frosini almost 4 years ago

  • Related to Feature #2357: Remove reflections dependency from document-store-lib added

#5 Updated by Luca Frosini almost 4 years ago

  • Related to Feature #2358: Remove reflections dependency from accounting-lib added

#6 Updated by Luca Frosini almost 4 years ago

  • Related to deleted (Feature #2354: Make smartgears zero dependencies)

#7 Updated by Luca Frosini almost 4 years ago

  • % Done changed from 0 to 100
  • Status changed from New to Feedback

#8 Updated by Luca Frosini almost 4 years ago

  • Due date set to Mar 31, 2016

#9 Updated by Pasquale Pagano almost 4 years ago

please release it for 3.11

#10 Updated by Luca Frosini almost 4 years ago

  • Status changed from Feedback to Closed

I'm going to close the bug because it is already planned for release 3.11

Also available in: Atom PDF