在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.

相关文章:

  • 2021-06-27
  • 2022-01-11
  • 2021-08-25
  • 2022-01-13
  • 2021-12-25
  • 2022-12-23
  • 2021-11-22
  • 2021-12-12
猜你喜欢
  • 2021-12-01
  • 2021-10-29
  • 2022-12-23
  • 2021-05-09
  • 2021-06-25
  • 2022-12-23
相关资源
相似解决方案