【Java】tomcat500错误解决系列⼀:实例化Servlet错误tomcat 500错误解决系列⼀:
由于l中的servlet-class写错,导致了⽆法实例化servlet。
HTTP状态 500 - 内部服务器错误
类型异常报告
消息实例化Servlet类[package.SessionDemo_01_getSession]异常
描述服务器遇到⼀个意外的情况,阻⽌它完成请求。
例外情况
javax.servlet.ServletException: 实例化Servlet类[package.SessionDemo_01_getSession]异常servlet和tomcat的关系
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:690)
org.tor.CoyoteAdapter.service(CoyoteAdapter.java:343)
http11.Http11Processor.service(Http11Processor.java:373)
AbstractProcessorLight.process(AbstractProcessorLight.java:65)
AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868)
at.util.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1590)
at.util.SocketProcessorBase.run(SocketProcessorBase.java:49)
urrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
urrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
java.lang.Thread.run(Thread.java:748)
根本原因。
java.lang.ClassNotFoundException: package.SessionDemo_01_getSession
org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1365)
org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1188)
org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541)
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:690)
org.tor.CoyoteAdapter.service(CoyoteAdapter.java:343)
http11.Http11Processor.service(Http11Processor.java:373)
AbstractProcessorLight.process(AbstractProcessorLight.java:65)
AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868)
at.util.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1590)
at.util.SocketProcessorBase.run(SocketProcessorBase.java:49)
urrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
urrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
java.lang.Thread.run(Thread.java:748)
):注意主要问题的全部 stack 信息可以在 server logs ⾥查看
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。
发表评论