org.apache.tomcat.util.bcel.classfile.ClassFormatException:常量池中的无效字节标记:60

时间:2014-10-29 10:24:35

标签: spring-mvc

当我运行我的spring mvc项目时,我收到以下错误。

严重:无法从Jar处理Jar条目[com / ibm / icu / impl / data / LocaleElements_zh__PINYIN.class] [jar:file:/home/cme/priyanka/eclipse/workspace_23_10/.metadata/.plugins/org .eclipse.wst.server.core / tmp0 / wtpwebapps / LIVEEVENT123 / WEB-INF / lib / icu4j-2.6.1.jar!/]用于注释 org.apache.tomcat.util.bcel.classfile.ClassFormatException:常量池中的无效字节标记:60     在org.apache.tomcat.util.bcel.classfile.Constant.readConstant(Constant.java:133)     在org.apache.tomcat.util.bcel.classfile.ConstantPool。(ConstantPool.java:60)     在org.apache.tomcat.util.bcel.classfile.ClassParser.readConstantPool(ClassParser.java:209)     在org.apache.tomcat.util.bcel.classfile.ClassParser.parse(ClassParser.java:119)     在org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.java:2125)     在org.apache.catalina.startup.ContextConfig.processAnnotationsJar(ContextConfig.java:2001)     在org.apache.catalina.startup.ContextConfig.processAnnotationsUrl(ContextConfig.java:1967)     在org.apache.catalina.startup.ContextConfig.processAnnotations(ContextConfig.java:1952)     在org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1326)     在org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:878)     在org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:369)     在org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)     在org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)     at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5269)     在org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)     在org.apache.catalina.core.ContainerBase $ StartChild.call(ContainerBase.java:1559)     在org.apache.catalina.core.ContainerBase $ StartChild.call(ContainerBase.java:1549)     at java.util.concurrent.FutureTask $ Sync.innerRun(Unknown Source)     at java.util.concurrent.FutureTask.run(Unknown Source)     at java.util.concurrent.ThreadPoolExecutor $ Worker.runTask(Unknown Source)     at java.util.concurrent.ThreadPoolExecutor $ Worker.run(Unknown Source)     在java.lang.Thread.run(未知来源)

1 个答案:

答案 0 :(得分:0)

此解决方案对我有用: Tomcat 7 - Servlet 3.0: Invalid byte tag in constant pool

我刚刚在我的pom中添加了(我正在使用maven)这种依赖:

<dependency>
     <groupId>com.ibm.icu</groupId>
     <artifactId>icu4j</artifactId>
     <version>3.4.4</version>
 </dependency>