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