项目在tomcat启动时报错
拿了个项目放上去tomcat启动报错
严重: Exception starting filter struts2The package name 'struts-ccc' at location package - jar:file:/D:/Program%20Files/Apache%
20Software%20Foundation/Tomcat%206.0/webapps/myjob/WEB-INF/lib/myjob.jar!/struts.xml:19:68 is
already been used by another package at location package - file:/D:/Program%20Files/Apache%
20Software%20Foundation/Tomcat%206.0/webapps/myjob/WEB-INF/classes/struts.xml:19:68 - package -
jar:file:/D:/Program%20Files/Apache%20Software%20Foundation/Tomcat%206.0/webapps/myjob/WEB-
INF/lib/myjob.jar!/struts.xml:19:68
这句话什么意思,该怎么处理?
------解决方案--------------------
你有两个struts.xml文件吧,一个在myjob.jar里面,一个在myjob/WEB-INF/classes/struts.xml
------解决方案--------------------应该是jar包冲突的问题,Tomcat无法找到正确的配置文件了
------解决方案--------------------你的jar包和XML的问题,好好检查下你的配置吧,jar包可以换
------解决方案--------------------jar包里struts.xml冲突