当前位置: 技术问答>java相关
这个是什么错呀?Internal Servlet Error
来源: 互联网 发布时间:2015-06-10
本文导语: Error: 500 是什么错误,急!! 在Windows2000+tomcat3.1+jdk1.3下测试完全好用,但移到Linux7.2+apache1.3.24+Tocmat3.3下就出错,部署的路径绝对正确。错误信息如下: Error: 500 Location: /examples/servlet/bussiness.mainServlet Internal...
Error: 500 是什么错误,急!!
在Windows2000+tomcat3.1+jdk1.3下测试完全好用,但移到Linux7.2+apache1.3.24+Tocmat3.3下就出错,部署的路径绝对正确。错误信息如下:
Error: 500
Location: /examples/servlet/bussiness.mainServlet
Internal Servlet Error:
java.lang.ClassFormatError: bussiness/mainServlet (Invalid pc in line number table)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:488)
at org.apache.tomcat.util.depend.DependClassLoader12.defineClassCompat(Unknown Source)
at org.apache.tomcat.util.depend.DependClassLoader.loadClassInternal1(Unknown Source)
at org.apache.tomcat.util.depend.DependClassLoader12$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.tomcat.util.depend.DependClassLoader12.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
at org.apache.tomcat.facade.ServletHandler.getServlet(Unknown Source)
at org.apache.tomcat.facade.ServletHandler.preInit(Unknown Source)
at org.apache.tomcat.facade.ServletHandler.init(Unknown Source)
at org.apache.tomcat.facade.ServletHandler.service(Unknown Source)
at org.apache.tomcat.core.ContextManager.internalService(Unknown Source)
at org.apache.tomcat.core.ContextManager.service(Unknown Source)
at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Unknown Source)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown Source)
at java.lang.Thread.run(Thread.java:479)
在Windows2000+tomcat3.1+jdk1.3下测试完全好用,但移到Linux7.2+apache1.3.24+Tocmat3.3下就出错,部署的路径绝对正确。错误信息如下:
Error: 500
Location: /examples/servlet/bussiness.mainServlet
Internal Servlet Error:
java.lang.ClassFormatError: bussiness/mainServlet (Invalid pc in line number table)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:488)
at org.apache.tomcat.util.depend.DependClassLoader12.defineClassCompat(Unknown Source)
at org.apache.tomcat.util.depend.DependClassLoader.loadClassInternal1(Unknown Source)
at org.apache.tomcat.util.depend.DependClassLoader12$1.run(Unknown Source)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.tomcat.util.depend.DependClassLoader12.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
at org.apache.tomcat.facade.ServletHandler.getServlet(Unknown Source)
at org.apache.tomcat.facade.ServletHandler.preInit(Unknown Source)
at org.apache.tomcat.facade.ServletHandler.init(Unknown Source)
at org.apache.tomcat.facade.ServletHandler.service(Unknown Source)
at org.apache.tomcat.core.ContextManager.internalService(Unknown Source)
at org.apache.tomcat.core.ContextManager.service(Unknown Source)
at org.apache.tomcat.modules.server.Http10Interceptor.processConnection(Unknown Source)
at org.apache.tomcat.util.net.TcpWorkerThread.runIt(Unknown Source)
at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(Unknown Source)
at java.lang.Thread.run(Thread.java:479)
|
你的class格式不正确,导致java.lang.ClassFormatError,类格式不匹配,
在linux下重编译!
在linux下重编译!