Tomcat/Scala: invalid byte tag in constant pool: 110

When deploying a Scala application on Tomcat 7 I got this weird error:

invalid byte tag in constant pool: 110

from Tomcat’s annotation scanning in the scala utils jar. There is this bug report that claims it’s fixed, but it seems to still happen wit 7.0.53.
Since the application doesn’t rely on Tomcat’s annotation scanning, here is the easy way to disable it [2] which requires two simple modifications to web.xml:
1. add metadata-complete=”true” to the web-app element
2. add an empty element under web-app

Resources

[1] Bug 53735 – Update annotation scanning to be compatible with Java 7 class files
https://issues.apache.org/bugzilla/show_bug.cgi?id=53735

[2] How do I make Tomcat startup faster?
http://wiki.apache.org/tomcat/HowTo/FasterStartUp

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s