The message Error instantiating servlet class com. Java1234. Web. HelloWorldServlet
Description The server encountered an internal error that prevented it from fulfilling this request.
The exception
Javax.mail. Servlet. ServletException: Error instantiating servlet class. Com java1234. Web. HelloWorldServlet
Org. Apache. Catalina. The authenticator. AuthenticatorBase. Invoke (AuthenticatorBase. Java: 472)
Org. Apache. Catalina. Valves. ErrorReportValve. Invoke (ErrorReportValve. Java: 99)
Org. Apache. Catalina. Valves. AccessLogValve. Invoke (AccessLogValve. Java: 936)
Org. Apache. Catalina. Connector. CoyoteAdapter. Service (407) CoyoteAdapter. Java:
Org. Apache. Coyote. Http11. AbstractHttp11Processor. Process (1004) AbstractHttp11Processor. Java:
Org. Apache. Coyote. AbstractProtocol $AbstractConnectionHandler. Process (589) AbstractProtocol. Java:
Org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run JIoEndpoint. Java: (310)
Java. Util. Concurrent. ThreadPoolExecutor. RunWorker (ThreadPoolExecutor. Java: 1142)
Java. Util. Concurrent. ThreadPoolExecutor $Worker. The run (ThreadPoolExecutor. Java: 617)
Java. Lang. Thread. The run (745) Thread. Java:
Root cause
Java. Lang. ClassNotFoundException: com. Java1234. Web. HelloWorldServlet
Org. Apache. Catalina. Loader. WebappClassLoader. LoadClass (WebappClassLoader. Java: 1714)
Org. Apache. Catalina. Loader. WebappClassLoader. LoadClass (WebappClassLoader. Java: 1559)
Org. Apache. Catalina. The authenticator. AuthenticatorBase. Invoke (AuthenticatorBase. Java: 472)
Org. Apache. Catalina. Valves. ErrorReportValve. Invoke (ErrorReportValve. Java: 99)
Org. Apache. Catalina. Valves. AccessLogValve. Invoke (AccessLogValve. Java: 936)
Org. Apache. Catalina. Connector. CoyoteAdapter. Service (407) CoyoteAdapter. Java:
Org. Apache. Coyote. Http11. AbstractHttp11Processor. Process (1004) AbstractHttp11Processor. Java:
Org. Apache. Coyote. AbstractProtocol $AbstractConnectionHandler. Process (589) AbstractProtocol. Java:
Org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run JIoEndpoint. Java: (310)
Java. Util. Concurrent. ThreadPoolExecutor. RunWorker (ThreadPoolExecutor. Java: 1142)
Java. Util. Concurrent. ThreadPoolExecutor $Worker. The run (ThreadPoolExecutor. Java: 617)
Java. Lang. Thread. The run (745) Thread. Java:
Note The full stack trace of The root cause is available in The Apache Tomcat/7.0.34 logs.
CodePudding user response:
https://blog.csdn.net/weixin_42476601/article/details/80992900CodePudding user response:
Stick down your code