Org. apache. tomcat. util. bcel. classfile. ClassFormatException: It is not a Java. class file, javaclassnotfound

Source: Internet
Author: User

Org. apache. tomcat. util. bcel. classfile. ClassFormatException: It is not a Java. class file, javaclassnotfound

The following error is returned when Tomcat is started:

24-May-2015 14:47:07.441 SEVERE [localhost-startStop-1] org.apache.catalina.startup.ContextConfig.processAnnotationsJar Unable to process Jar entry [com/auth/spring/listener/SpringLoaderListener.class] from Jar [jar:file:/opt/apache-tomcat-8.0.22/webapps/ROOT/WEB-INF/lib/xinghe-core-2.0.jar!/] for annotations org.apache.tomcat.util.bcel.classfile.ClassFormatException: It is not a Java .class file    at org.apache.tomcat.util.bcel.classfile.ClassParser.readID(ClassParser.java:203)    at org.apache.tomcat.util.bcel.classfile.ClassParser.parse(ClassParser.java:80)    at org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.java:2011)    at org.apache.catalina.startup.ContextConfig.processAnnotationsJar(ContextConfig.java:1961)    at org.apache.catalina.startup.ContextConfig.processAnnotationsUrl(ContextConfig.java:1936)    at org.apache.catalina.startup.ContextConfig.processAnnotations(ContextConfig.java:1897)    at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1149)    at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:771)    at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:305)    at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)    at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5066)    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:725)    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:701)    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:717)    at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1101)    at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1786)    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)    at java.util.concurrent.FutureTask.run(FutureTask.java:266)    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)    at java.lang.Thread.run(Thread.java:745)

This error occurs because the. class file is encrypted and cannot be correctly decrypted during decryption.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.