tomcat报错:An internal error occurred during: "Updating status for Tomcat v6.0 Server at localhost...". java.lang.NullPointerException


maven项目中在pom文件添加了一个依赖,结果发布到tomcat上时出错:

<!-- struts2-spring-plugin 其依赖的spring为4.1.6版本,而我使用的spring版本为5.0.2 -->
<dependency>
  <groupId>org.apache.struts</groupId>
  <artifactId>struts2-spring-plugin</artifactId>
  <version>2.5.12</version>
</dependency>

1.错误跟下面连接相似:

http://marionette.iteye.com/blog/1727480#comments

2.导致原因:

http://www.cnblogs.com/jinjiyese153/p/6972030.html

3.解决方案

没有采用上面2中给出的方案,而是将我的spring版本也换到了4.1.6,这样就发布到tomcat就不会报错了

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM