On 17/05/2016 16:49, André Warnier (tomcat) wrote:
> Hello experts.
> 
> What does the following mean,

The constant values are from the Java virtual machine specification and
related to new features added in Java 7.

Those errors mean that the byte scanning code (o.a.t.u.bcel, copied from
Apache Commons BCEL) doesn't know how to handle them.

> and/or (better) what do we have to do to get rid of these ?

If you look at the change log for 7.0.x, you'll see Java 7 support was
first added in 7.0.30 and improved in 7.0.54.

You have a couple of options.

1. Upgrade Tomcat, ideally to the latest 7.0.x release.
2. Add those JARs to jarsToSkip in catalina.properties (assuming there
aren't any annotations in those JARs you need to scan).

Mark



> Note : below is only a small sample, there are hundreds of these
> in-between (about 2.3 MB of logfile worth of them).
> 
> 
> INFO: Starting Servlet Engine: Apache Tomcat/7.0.28
> May 11, 2016 2:08:18 PM org.apache.catalina.startup.HostConfig
> deployDirectory
> INFO: Deploying web application directory /var/lib/tomcat7/webapps/ROOT
> May 11, 2016 2:08:18 PM org.apache.catalina.startup.ContextConfig
> processAnnotationsJar
> SEVERE: Unable to process Jar entry
> [jdk/nashorn/internal/objects/NativeString.class] from Jar
> [jar:file:/opt/jdk8/jre/lib/ext/nashorn.jar!/] for annotations
> org.apache.tomcat.util.bcel.classfile.ClassFormatException: Invalid byte
> tag in constant pool: 15
>     at
> org.apache.tomcat.util.bcel.classfile.Constant.readConstant(Constant.java:131)
> 
>     at
> org.apache.tomcat.util.bcel.classfile.ConstantPool.<init>(ConstantPool.java:60)
> 
> ...
> May 11, 2016 2:08:18 PM org.apache.catalina.startup.ContextConfig
> processAnnotationsJar
> SEVERE: Unable to process Jar entry
> [jdk/nashorn/internal/objects/NativeDate$Constructor.class] from Jar
> [jar:file:/opt/jdk8/jre/lib/ext/nashorn.jar!/] for annotations
> org.apache.tomcat.util.bcel.classfile.ClassFormatException: Invalid byte
> tag in constant pool: 15
>     at
> org.apache.tomcat.util.bcel.classfile.Constant.readConstant(Constant.java:131)
> 
> ...
> May 11, 2016 2:08:19 PM org.apache.catalina.startup.ContextConfig
> processAnnotationsJar
> SEVERE: Unable to process Jar entry [com/sun/glass/ui/Window.class] from
> Jar [jar:file:/opt/jdk8/jre/lib/ext/jfxrt.jar!/] for annotations
> org.apache.tomcat.util.bcel.classfile.ClassFormatException: Invalid byte
> tag in constant pool: 18
>     at
> org.apache.tomcat.util.bcel.classfile.Constant.readConstant(Constant.java:131)
> 
>     at
> org.apache.tomcat.util.bcel.classfile.ConstantPool.<init>(ConstantPool.java:60)
> 
> 
> ...
> May 11, 2016 2:08:19 PM org.apache.catalina.startup.ContextConfig
> processAnnotationsJar
> SEVERE: Unable to process Jar entry
> [com/sun/javafx/css/StyleManager.class] from Jar
> [jar:file:/opt/jdk8/jre/lib/ext/jfxrt.jar!/] for annotations
> org.apache.tomcat.util.bcel.classfile.ClassFormatException: Invalid byte
> tag in constant pool: 18
>     at
> org.apache.tomcat.util.bcel.classfile.Constant.readConstant(Constant.java:131)
> 
>     at
> org.apache.tomcat.util.bcel.classfile.ConstantPool.<init>(ConstantPool.java:60)
> 
> ...
> ...
> May 11, 2016 2:09:55 PM org.apache.catalina.startup.ContextConfig
> processAnnotationsJar
> SEVERE: Unable to process Jar entry [javafx/stage/Screen.class] from Jar
> [jar:file:/opt/jdk8/jre/lib/ext/jfxrt.jar!/] for annotations
> org.apache.tomcat.util.bcel.classfile.ClassFormatException: Invalid byte
> tag in constant pool: 18
>     at
> org.apache.tomcat.util.bcel.classfile.Constant.readConstant(Constant.java:131)
> 
>     at
> org.apache.tomcat.util.bcel.classfile.ConstantPool.<init>(ConstantPool.java:60)
> 
>     at
> org.apache.tomcat.util.bcel.classfile.ClassParser.readConstantPool(ClassParser.java:209)
> 
>     at
> org.apache.tomcat.util.bcel.classfile.ClassParser.parse(ClassParser.java:119)
> 
>     at
> org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.java:2049)
> 
>     at
> org.apache.catalina.startup.ContextConfig.processAnnotationsJar(ContextConfig.java:1931)
> 
>     at
> org.apache.catalina.startup.ContextConfig.processAnnotationsUrl(ContextConfig.java:1899)
> 
>     at
> org.apache.catalina.startup.ContextConfig.processAnnotations(ContextConfig.java:1885)
> 
>     at
> org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1281)
> 
>     at
> org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:855)
> 
>     at
> org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:346)
> 
>     at
> org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)
> 
>     at
> org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
> 
>     at
> org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5172)
> 
>     at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
>     at
> org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:899)
> 
>     at
> org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:875)
>     at
> org.apache.catalina.core.StandardHost.addChild(StandardHost.java:618)
>     at
> org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1100)
> 
>     at
> org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1618)
> 
>     at
> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
>     at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>     at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> 
>     at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> 
>     at java.lang.Thread.run(Thread.java:745)
> 
> May 11, 2016 2:09:56 PM org.apache.catalina.startup.HostConfig
> deployDirectory
> INFO: Deploying web application directory /var/lib/tomcat7/webapps/starweb
> May 11, 2016 2:09:56 PM org.apache.coyote.AbstractProtocol start
> INFO: Starting ProtocolHandler ["http-bio-8080"]
> May 11, 2016 2:09:56 PM org.apache.coyote.AbstractProtocol start
> INFO: Starting ProtocolHandler ["ajp-bio-8009"]
> May 11, 2016 2:09:56 PM org.apache.catalina.startup.Catalina start
> INFO: Server startup in 1111 ms
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to