1.问题说明
将一个在tomcat上运行正常的项目放到websphere中,发现运气报错,大概报错如下:
com.ibm.ws.exception.RuntimeWarning: SRVE0303E: Servlet name for the servlet mapping script/* could not be found. |
这个配置script/*是在web.xml里配置的静态资源路径,用于加载静态资源的。
我的web.xml相关部分如下:
2.分析与解决问题
2.1.查找相似错误
本着有错误百度、google的原则,先找找是否有相似的错误提示。
先用百度:
(1).有说servlet-mapping里的url-pattern属性只