Home > Back-end >  Jetty deploying web project is unusual, but run on the idea of zheng 'chang
Jetty deploying web project is unusual, but run on the idea of zheng 'chang

Time:10-12

On the Idea of using MVN jetty: the run command, run the project, use the browser to access localhost/8080 normal,
But using MVN jetty: run - war, it is abnormal,
Don't understand,,,

Problem accessing/. Reason:

Javax.mail. Servlet. ServletContext. GetEffectiveMajorVersion () I
Under Caused by:
Java. Lang. NoSuchMethodError: javax.mail. Servlet. ServletContext. GetEffectiveMajorVersion () I
Piler at org.apache.jasper.com. JspConfig. ProcessWebDotXml (JspConfig. Java: 66)
Piler at org.apache.jasper.com. JspConfig. Init (JspConfig. Java: 166)
Piler at org.apache.jasper.com. JspConfig. FindJspProperty (JspConfig. Java: 226)
The at org.apache.jasper.compiler.Com piler. GenerateJava (Compiler. Java: 120)
At org.apache.jasper.compiler.Compiler.com running (374) Compiler. Java:
At org.apache.jasper.compiler.Compiler.com running (351) Compiler. Java:
At org.apache.jasper.compiler.Compiler.com running (335) Compiler. Java:
Running at org.apache.jasper.JspCompilationContext.com (JspCompilationContext. Java: 595)
At org. Apache. Jasper. Servlet. JspServletWrapper. Service (368) JspServletWrapper. Java:
The at org. Apache. Jasper. Servlet. JspServlet. ServiceJspFile (JspServlet. Java: 386)
At org. Apache. Jasper. Servlet. JspServlet. Service (330) JspServlet. Java:
The at javax.mail. Servlet. HTTP. HttpServlet. Service (HttpServlet. Java: 820)
The at org. Mortbay. Jetty. Servlet. ServletHolder. Handle (ServletHolder. Java: 511)
The at org. Mortbay. Jetty. Servlet. ServletHandler. Handle (ServletHandler. Java: 390)
The at org. Mortbay. Jetty. Security. SecurityHandler. Handle (SecurityHandler. Java: 216)
The at org. Mortbay. Jetty. Servlet. SessionHandler. Handle (SessionHandler. Java: 182)
The at org. Mortbay. Jetty. Handler. ContextHandler. Handle (ContextHandler. Java: 765)
The at org. Mortbay. Jetty. Webapp. WebAppContext. Handle (WebAppContext. Java: 440)
At org. Mortbay. Jetty. Servlet. The Dispatcher. Forward (327) the Dispatcher. Java:
At org. Mortbay. Jetty. Servlet. The Dispatcher. Forward (126) the Dispatcher. Java:
The at org. Springframework. Web. Servlet. The InternalResourceView. RenderMergedOutputModel (InternalResourceView. Java: 168)
The at org. Springframework. Web. Servlet. The AbstractView. Render (AbstractView. Java: 303)
The at org. Springframework. Web. Servlet. DispatcherServlet. Render (DispatcherServlet. Java: 1244)
The at org. Springframework. Web. Servlet. DispatcherServlet. ProcessDispatchResult (DispatcherServlet. Java: 1027)
The at org. Springframework. Web. Servlet. DispatcherServlet. DoDispatch (DispatcherServlet. Java: 971)
The at org. Springframework. Web. Servlet. DispatcherServlet. DoService (DispatcherServlet. Java: 893)
The at org. Springframework. Web. Servlet. FrameworkServlet. The processRequest (FrameworkServlet. Java: 970)
The at org. Springframework. Web. Servlet. FrameworkServlet. DoGet (FrameworkServlet. Java: 861)
The at javax.mail. Servlet. HTTP. HttpServlet. Service (HttpServlet. Java: 707)
At org. Springframework. Web. Servlet. FrameworkServlet. Service (846) FrameworkServlet. Java:
The at javax.mail. Servlet. HTTP. HttpServlet. Service (HttpServlet. Java: 820)
The at org. Mortbay. Jetty. Servlet. ServletHolder. Handle (ServletHolder. Java: 511)
The at org. Mortbay. Jetty. Servlet. ServletHandler. Handle (ServletHandler. Java: 390)
The at org. Mortbay. Jetty. Security. SecurityHandler. Handle (SecurityHandler. Java: 216)
The at org. Mortbay. Jetty. Servlet. SessionHandler. Handle (SessionHandler. Java: 182)
The at org. Mortbay. Jetty. Handler. ContextHandler. Handle (ContextHandler. Java: 765)
The at org. Mortbay. Jetty. Webapp. WebAppContext. Handle (WebAppContext. Java: 440)
The at org. Mortbay. Jetty. Handler. ContextHandlerCollection. Handle (ContextHandlerCollection. Java: 230)
The at org. Mortbay. Jetty. Handler. HandlerCollection. Handle (HandlerCollection. Java: 114)
The at org. Mortbay. Jetty. Handler. HandlerWrapper. Handle (HandlerWrapper. Java: 152)
At org. Mortbay. Jetty. Server. Handle (326) Server. Java:
The at org. Mortbay. Jetty. HttpConnection. HandleRequest (HttpConnection. Java: 542)
The at org. Mortbay. Jetty. HttpConnection $RequestHandler. HeaderComplete (HttpConnection. Java: 926)
The at org. Mortbay. Jetty. HttpParser. ParseNext (HttpParser. Java: 549)
The at org. Mortbay. Jetty. HttpParser. ParseAvailable (HttpParser. Java: 212)
The at org. Mortbay. Jetty. HttpConnection. Handle (HttpConnection. Java: 404)
The at org. Mortbay. IO. Nio. SelectChannelEndPoint. Run (SelectChannelEndPoint. Java: 410)
The at org. Mortbay. Thread. QueuedThreadPool $PoolThread. Run (QueuedThreadPool. Java: 582)

CodePudding user response:

https://blog.csdn.net/lanroness/article/details/80356097
  • Related