On 17.05.2016 18:14, Mark Thomas wrote:
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


Thanks, great.
Let's see now which Tomcat 7 we find nowadays in the Debian repositories..

But something puzzles me :

# java -version
java version "1.7.0_75"
OpenJDK Runtime Environment (IcedTea 2.5.4) (7u75-2.5.4-1~deb7u1)
OpenJDK 64-Bit Server VM (build 24.75-b04, mixed mode)
#

So that's the "default" java.

# /usr/share/tomcat7/bin/version.sh
Using CATALINA_BASE:   /usr/share/tomcat7
Using CATALINA_HOME:   /usr/share/tomcat7
Using CATALINA_TMPDIR: /usr/share/tomcat7/temp
Using JRE_HOME:        /usr
Using CLASSPATH: 
/usr/share/tomcat7/bin/bootstrap.jar:/usr/share/tomcat7/bin/tomcat-juli.jar
Server version: Apache Tomcat/7.0.28
Server built:   Jan 11 2016 11:40:31
Server number:  7.0.28.0
OS Name:        Linux
OS Version:     3.16.0-0.bpo.4-amd64
Architecture:   amd64
JVM Version:    1.7.0_75-b13
JVM Vendor:     Oracle Corporation
#

And that would seem to be pointing to a different version (the -b13 at the 
end)..


While all the messages below seem to point to :
[jar:file:/opt/jdk8/jre/lib/....jar!/]

Why would the Tomcat 7 JVM (1.7) go scan jars there ?

We do have a Java 8 installed on that machine also, but as far as I know that one was only for Confluence, which has its own private Tomcat.

I'm a bit confused. Not that I would be surprised if some Debian links were pointing all over the place.

André




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



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

Reply via email to