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

时间:2024-04-04 09:29:08

在maven整合Struts2时,项目启动不报错,输入参数运行后控制台可以接收到数据,但是报The server encountered an internal error () that prevented it from fulfilling this request.错误

如下图:

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


控制台错误如下:

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


检查问题后发现运行maven项目时,默认的Tomcat版本为Tomcat6,更改Tomcat版本为Tomcat7后运行正常

方法如下:

项目右击---->maven--->add plugin

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

点击OK即可,重新运行输入tomcat7:run即可

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