Premise:
A normal Maven project, running locally with Tomcat, but on the webSphere test environment, reports the following error when accessed:
Error 500: javax.servlet.ServletException: SRVE0207E: Uncaught initialization exception created by servlet
Try to solve:
All sorts of things went awry, and Baidu probably did it because the JDK version of the project was not compatible with the JDK version of websphere
Final solution:
View the webSphere version as follows;
On the left side of the console:
It turns out that the webSphere version USES 1.6,
The JDK version of the local project is 1.8,
Since there are many projects deployed on webSphere, it would be more convenient to change the local project’s compile and run environment to 1.6.
Change the local project compilation environment to JDK 1.6, which is consistent with the webSphere JDK. Repackage, upload webSphere, and fix the problem.
—————————–
Appendix:
English version websphere view the JDK version of a deployment server:
Category: websphere, project deployment configuration
Read More:
- Error 500: javax.servlet.ServletException : srve0207e: Solutions
- Error 404:SRVE0190E: File not found: index.action when websphere publishes the project war package
- Unable to access javax.servlet.servletexception [How to Solve]
- An error was reported when springboot connected to redis Servlet.service () for servlet [dispatcherServlet] in context with path [] threw e
- It’s been pitiful by was. It’s reported in the following webapp.WebApp Logerror srve0293e: [servlet error] – [null] error.
- When Jenkins deploys the project, GIT reports an error fatal: index file smaller than expected
- When react devtools is enabled, an error is reported for the 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
- [spring] start error: nosuchmethoderror: javax.servlet.http . HttpServletResponse.getStatus () I
- When the spring MVC project is running on idea, an error is reported when the controller is a null pointer
- java.lang.NoSuchMethodError Quote: javax.servlet.com Yeah. HttpServletRequest.isAsyncStarted ()Z
- Django project running service reported an error NameError: name ‘OS’ is not defined
- An error is reported for the new Android project. Rejecting re init on previously failed
- JS uses the and or operator, and an error is reported: uncaught rangeerror: maximum call stack size exceeded
- The Vue project is packaged and deployed to tomcat, and an Error 404 is reported as soon as it is refreshed
- The Vue project does not install node sass and an error is reported
- An error is reported when the jeecg boot project connects to the MySQL database running on docker
- After eclipse eclipse eclipse imports the correct project, an error is reported in XML and other files
- Research on Maven management of Java project pom.xml The jar package error is reported, but the project is running normally