Struts2 包含Jar后无法加载配置

Struts2 包含Jar后无法加载配置,struts2,jar,struts,Struts2,Jar,Struts,我试图在我的struts2项目中包含一个jar,以便它的操作可以在我的主项目中使用。添加行之后 struts.convention.action.includeJars=.*?调查。*? 对于我的struts.properties,并尝试使用Maven重新部署到Tomcat,我得到了以下错误: WARN InterceptorBuilder 14 Nov 2012 09:58:09: Unable to load config class com.googlecode.scopeplugin.

我试图在我的struts2项目中包含一个jar,以便它的操作可以在我的主项目中使用。添加行之后

struts.convention.action.includeJars=.*?调查。*?

对于我的struts.properties,并尝试使用Maven重新部署到Tomcat,我得到了以下错误:

WARN  InterceptorBuilder 14 Nov 2012 09:58:09: Unable to load config class com.googlecode.scopeplugin.ScopeInterceptor at interceptor - jar:file:/other/dev/survey/webapp/target/survey-4.4-RC11-SNAPSHOT/WEB-INF/lib/survey-controller-4.4-RC11-SNAPSHOT.jar!/struts.xml:12:91 probably due to a missing jar, which might be fine if you never plan to use the bean-scope interceptor
ERROR InterceptorBuilder 14 Nov 2012 09:58:09: Actual exception
Caught Exception while registering Interceptor class com.googlecode.scopeplugin.ScopeInterceptor - interceptor - jar:file:/other/dev/survey/webapp/target/survey-4.4-RC11-SNAPSHOT/WEB-INF/lib/survey-controller-4.4-RC11-SNAPSHOT.jar!/struts.xml:12:91
    at com.opensymphony.xwork2.ObjectFactory.buildInterceptor(ObjectFactory.java:214)
    at com.opensymphony.xwork2.config.providers.InterceptorBuilder.constructInterceptorReference(InterceptorBuilder.java:70)
    at org.apache.struts2.convention.DefaultInterceptorMapBuilder.buildInterceptorList(DefaultInterceptorMapBuilder.java:99)
再往下走一点:

ERROR Dispatcher 13 Nov 2012 17:37:13: Dispatcher initialization failed
Unable to load configuration. - [unknown location]
    at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:69)
    at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:390)
    at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:436)
    at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:74)
我在其他帖子中看到,这是因为它找不到struts.xml,因为有两个struts.xml文件——一个在我的主项目中,另一个在我包含的jar中。如果这是一个问题,是否有办法排除依赖struts.xml?或者这与其他事情有关系吗


删除includeJars行允许我部署我的应用程序,但我无法访问所包含的jar中的操作。

确保struts.xml中有bean范围拦截器,也作为pom.xml中的依赖项