Tomcat 7 - Servlet 3.0:常量池中的字节标记无效 [英] Tomcat 7 - Servlet 3.0: Invalid byte tag in constant pool

查看:54
本文介绍了Tomcat 7 - Servlet 3.0:常量池中的字节标记无效的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

  • tomcat 7.0.16
  • Java 1.6.0_22
  • CentOS 5.6

我刚刚将 web.xml 切换到 servlet 3.0(从之前运行 2.4 的应用程序),现在我看到以下错误(为 org.apache.tomcat.util 启用了精细日志记录):

I just switched the web.xml to servlet 3.0 (from a app running 2.4 previously) and now I'm seeing the following error (turned on fine logging for org.apache.tomcat.util):

mtyson  FINE: Scanning JAR [file:/usr/java/jdk1.6.0_22/jre/lib/ext/jcharset.jar] from classpath
mtyson  Jul 19, 2011 10:04:40 AM org.apache.catalina.startup.HostConfig deployDirectory
mtyson  SEVERE: Error deploying web application directory ROOT
mtyson  org.apache.tomcat.util.bcel.classfile.ClassFormatException: Invalid byte tag in constant pool: 60

更新: 刚刚尝试了 tomcat 7.0.19 - 结果相同

UPDATE: Just Tried tomcat 7.0.19 - same results

推荐答案

这可能不是你的问题,但我的是 与此相同 -- com.ibm.icu 的旧版本:icu4j.我通过更改构建配置以排除旧的传递依赖项并明确依赖最新版本 (4.8) 解决了该问题.

It may not be your issue, but mine was the same as this one -- an old version of com.ibm.icu:icu4j. I solved the problem by changing my build configuration to exclude the older transitive dependencies and explicitly depending upon the latest version (4.8).

这篇关于Tomcat 7 - Servlet 3.0:常量池中的字节标记无效的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆