Runtime environment: JDK1.8 + Tomcat 6.0. x (maven comes with)
1. Error details
exception:
org.apache.jasper. JasperException: Unable to compile class for JSP:
An error occurred at line: 1 in the generated java file
The type java.io. ObjectInputStream cannot be resolved. It is indirectly referenced from required .class files…
Look at the console error again
2. the cause of the problem:
maven use skeleton to create web projects, the default tomcat is 6.0, tomcat version is too low or jdk version is high.
3. problem solving:
Method 1: Use a high version of tomcat. Method 2: Use a lower version of jdk. I was using jdk1.8, the results reported an error. After replacing jdk1.7, it ran successfully without errors.
Run successfully:
Read More:
- org.apache.jasper . jasperexception: unable to compile class for jsp: error resolution
- Servlet jump to JSP page 404 error
- [Solved] JAVA Project Import jstl Error: java.lang.NoClassDefFoundError: javax/servlet/jsp/tagext/TagLibraryValidator
- [Solved] SpringMVC Run Error: SEVERE-Servlet.service() for servlet jsp threw exception
- HTTP Status 500-Error instantiating servlet class problem solving
- jsp: Failed to load resource: the server responded with a status of 400 (Bad Request)
- maven_ Unable to create servlet file under Java Web project
- When SSM + Maven project is running, it is prompted that org.springframework.web.servlet.dispatcherserservlet cannot be found
- Spring boot project running error: Servlet.service () for servlet [dispatcherServlet] threw exception
- [Solved] Maven Project Packaging Error: Unable to find main class
- How to create JSP project in new version after idea2020
- [Solved] JSP tag forwarding forword error: org.apache.jasper.JasperException
- springboot jsp: There was an unexpected error (type=Not Found, status=404). No message available
- HTTP status 500 – internal server error (resolved) for Tomcat running project
- The import Maven project appears http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException Solutions
- The solution to the problem that the method of interacting with database in the servlet class is invalid after the servlet submits 404, 500 refresh and becomes 404, and after connecting to the data pool
- Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile)
- [Solved] Maven Multi-Project Compile Error: The POM for xxx is invalid
- Integrating JSP pages with springboot 404
- 解决Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.7.0:compile