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


[1] Bug 53735 – Update annotation scanning to be compatible with Java 7 class files

[2] How do I make Tomcat startup faster?

Leave a Reply

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

You are commenting using your 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 )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.