Home > Back-end >  Maven project running tomcat as soon as you open the specified path error 500
Maven project running tomcat as soon as you open the specified path error 500

Time:11-29

HTTP Status 500 - Unable to compile class for JSP
Type Exception report

The message Unable to compile class for JSP

Description The server encountered an internal error that prevented it from fulfilling this request.

The exception

Org. Apache. Jasper. JasperException: Unable to compile class for JSP
Org.apache.jasper.JspCompilationContext.com from running (JspCompilationContext. Java: 579)
Org. Apache. Jasper. Servlet. JspServletWrapper. Service (357) JspServletWrapper. Java:
Org. Apache. Jasper. Servlet. JspServlet. ServiceJspFile (JspServlet. Java: 396)
Org. Apache. Jasper. Servlet. JspServlet. Service (340) JspServlet. Java:
Javax.mail. Servlet. HTTP. HttpServlet. Service (HttpServlet. Java: 725)
Com. Itheima. Servlet MyServlet. DoPost (MyServlet. Java: 10)
Com. Itheima. Servlet MyServlet. DoGet (MyServlet. Java: 14)
Javax.mail. Servlet. HTTP. HttpServlet. Service (HttpServlet. Java: 618)
Javax.mail. Servlet. HTTP. HttpServlet. Service (HttpServlet. Java: 725)
Root cause

Java. Lang. RuntimeException: D: \ \ Program files \ apache % 20 - maven - 3.5.2 \ maven_repository \ org \ apache \ tomcat \ tomcat - jasper - el \ 8.0.14 \ tomcat - jasper - el - 8.0.14. Jar (the system cannot find the specified path,)
Org, apache tomcat, maven plugin. Tomcat8. Run. RunMojo $2. UrlToWebResource (RunMojo. Java: 499)
Org, apache tomcat, maven plugin. Tomcat8. Run. RunMojo $2. GetClassLoaderResource (RunMojo. Java: 383)
Org. Apache. Catalina. Loader. WebappClassLoaderBase. FindResourceInternal (WebappClassLoaderBase. Java: 2529)
Org. Apache. Catalina. Loader. WebappClassLoaderBase. FindClassInternal (WebappClassLoaderBase. Java: 2383)
Org. Apache. Catalina. Loader. WebappClassLoaderBase. FindClass (WebappClassLoaderBase. Java: 852)
Org. Apache. Catalina. Loader. WebappClassLoaderBase. LoadClass (WebappClassLoaderBase. Java: 1262)
Org. Apache. Catalina. Loader. WebappClassLoaderBase. LoadClass (WebappClassLoaderBase. Java: 1145)
Javax.mail. El. ExpressionFactory. NewInstance (ExpressionFactory. Java: 158)
Javax.mail. El. ExpressionFactory. NewInstance (ExpressionFactory. Java: 104)
Org.apache.jasper.com piler. PageInfo. & lt; init> (PageInfo. Java: 79)
Org.apache.jasper.compiler.Com piler. GenerateJava (Compiler. Java: 112)
Org.apache.jasper.compiler.Compiler.com running (356) Compiler. Java:
Org.apache.jasper.compiler.Compiler.com running (336) Compiler. Java:
Org.apache.jasper.compiler.Compiler.com running (323) Compiler. Java:
Org.apache.jasper.JspCompilationContext.com from running (JspCompilationContext. Java: 564)
Org. Apache. Jasper. Servlet. JspServletWrapper. Service (357) JspServletWrapper. Java:
Org. Apache. Jasper. Servlet. JspServlet. ServiceJspFile (JspServlet. Java: 396)
Org. Apache. Jasper. Servlet. JspServlet. Service (340) JspServlet. Java:
Javax.mail. Servlet. HTTP. HttpServlet. Service (HttpServlet. Java: 725)
Com. Itheima. Servlet MyServlet. DoPost (MyServlet. Java: 10)
Com. Itheima. Servlet MyServlet. DoGet (MyServlet. Java: 14)
Javax.mail. Servlet. HTTP. HttpServlet. Service (HttpServlet. Java: 618)
Javax.mail. Servlet. HTTP. HttpServlet. Service (HttpServlet. Java: 725)
Root cause

Java. IO. FileNotFoundException: D: \ \ Program files \ apache % 20 - maven - 3.5.2 \ maven_repository \ org \ apache \ tomcat \ tomcat - jasper - el \ 8.0.14 \ tomcat - jasper - el - 8.0.14. Jar (the system cannot find the specified path,)
Java. Util. Zip. ZipFile. Open (Native Method)
Java. Util. Zip. ZipFile. & lt; init> (ZipFile. Java: 225)
Java. Util. Zip. ZipFile. & lt; init> (ZipFile. Java: 155)
Java. Util. Jar. JarFile. & lt; init> (JarFile. Java: 166)
Java. Util. Jar. JarFile. & lt; init> (JarFile. Java: 103)
Org, apache tomcat, maven plugin. Tomcat8. Run. RunMojo $2. UrlToWebResource (RunMojo. Java: 479)
Org, apache tomcat, maven plugin. Tomcat8. Run. RunMojo $2. GetClassLoaderResource (RunMojo. Java: 383)
Org. Apache. Catalina. Loader. WebappClassLoaderBase. FindResourceInternal (WebappClassLoaderBase. Java: 2529)
Org. Apache. Catalina. Loader. WebappClassLoaderBase. FindClassInternal (WebappClassLoaderBase. Java: 2383)
Org. Apache. Catalina. Loader. WebappClassLoaderBase. FindClass (WebappClassLoaderBase. Java: 852)
Org. Apache. Catalina. Loader. WebappClassLoaderBase. LoadClass (WebappClassLoaderBase. Java: 1262)
Org. Apache. Catalina. Loader. WebappClassLoaderBase. LoadClass (WebappClassLoaderBase. Java: 1145)
Javax.mail. El. ExpressionFactory. NewInstance (ExpressionFactory. Java: 158)
Javax.mail. El. ExpressionFactory. NewInstance (ExpressionFactory. Java: 104)
Org.apache.jasper.com piler. PageInfo. & lt; init> (PageInfo. Java: 79)
Org.apache.jasper.compiler.Com piler. GenerateJava (Compiler. Java: 112)
Org.apache.jasper.compiler.Compiler.com running (356) Compiler. Java:
Org.apache.jasper.compiler.Compiler.com running (336) Compiler. Java:
Org.apache.jasper.compiler.Compiler.com running (323) Compiler. Java:
Org.apache.jasper.JspCompilationContext.com from running (JspCompilationContext. Java: 564)
Org. Apache. Jasper. Servlet. JspServletWrapper. Service (357) JspServletWrapper. Java:
Org. Apache. Jasper. Servlet. JspServlet. ServiceJspFile (JspServlet. Java: 396)
Org. Apache. Jasper. Servlet. JspServlet. Service (340) JspServlet. Java:
nullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnullnull
  • Related