json+struts2配置问题 Unable to load configuration. - package -

Unable to load configuration. - package - jar:file:/D:/software/jboss-4.2.2.GA/server/default/deploy/order.war/WEB-INF/lib/struts2-json-plugin-2.2.1.1.jar!/struts-plugin.xml:8:59

 

 

后来终于在日志中发现了问题:

Caused by: The package name 'json-default' at location package - jar:file:/D:/software/jboss-4.2.2.GA/server/default/deploy/order.war/WEB-INF/lib/struts2-json-plugin-2.2.1.1.jar!/struts-plugin.xml:8:59 is already been used by another package at location package - jar:file:/D:/software/jboss-4.2.2.GA/server/default/deploy/order.war/WEB-INF/lib/jsonplugin-0.34.jar!/struts-plugin.xml:8:59 - package - jar:file:/D:/software/jboss-4.2.2.GA/server/default/deploy/order.war/WEB-INF/lib/struts2-json-plugin-2.2.1.1.jar!/struts-plugin.xml:8:59

 

原来是war包里面有一个重复的plugin.jar没有删掉。

你可能感兴趣的:(configuration)