Error 500: javax. Servlet. ServletException: srve0207e: uncaught initialization

premise:

An ordinary Maven project has no problem running with Tomcat locally, but when it is put into the WebSphere test environment, the following error will be reported when accessing it:

Error 500: javax.servlet.ServletException: SRVE0207E: Uncaught initialization exception created by servlet

try to solve:

All kinds of frustrations are invalid, Baidu to the following article:

—————————-

javax.servlet.ServletE xception:SRVE0207E : Uncaught initialization exception created by servlet

April 24, 2018 17:09:53_ The number of readers is 2106

Copyright notice: This article is the original article of the blogger, which follows the CC 4.0 by SA copyright agreement. Please attach the link of the original source and this notice for reprint.

Link to this article:

https://blog.csdn.net/suxiao_ mo/article/details/80067300

Deploy the written project to the WebSphere server, and report javax. Servlet. Servlet after accessing the project xception:SRVE0207E : Uncaught initialization exception created by servlet se

This is a mistake

Later, I checked the systemout.log log of WebSphere and found that the JDK version of WebSphere is 1.6 and the project is jdk1.7

After changing the JDK version of WebSphere, the project can be accessed normally

———————-

final solution:

Check the version of WebSphere as follows:

On the left side of the console, find:

It is found that the version of WebSphere is 1.6

The JDK version of the local project uses 1.8

Because there are many projects deployed on the top of WebSphere, it is more convenient to change the compilation and running environment of local projects to 1.6

Change the compilation and running environment of the local project to JDK1.6, which is consistent with the JDK of WebSphere. Repackage and upload the WebSphere. The problem is solved

—————————–

Appendix:

How to view the JDK version of a deployment server in English version of WebSphere:

Similar Posts: