Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/spring/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
javax.faces.FacesException。这是属于SpringSecurity3.x的一个例外_Java_Spring_Jsf_Struct - Fatal编程技术网

javax.faces.FacesException。这是属于SpringSecurity3.x的一个例外

javax.faces.FacesException。这是属于SpringSecurity3.x的一个例外,java,spring,jsf,struct,Java,Spring,Jsf,Struct,我正在使用Struts 2.x开发一个应用程序。我正在使用Spring安全性为我的应用程序提供安全性。然而,当我没有连接到互联网时,我总是会遇到一个例外。如果我有互联网连接,也不会有例外。例外情况是: javax.faces.FacesException: Can't parse configuration file: jar:file:/home/dev7/springsource/vfabric-tc-server-developer-2.8.2.RELEASE/base-instance/

我正在使用Struts 2.x开发一个应用程序。我正在使用Spring安全性为我的应用程序提供安全性。然而,当我没有连接到互联网时,我总是会遇到一个例外。如果我有互联网连接,也不会有例外。例外情况是:

javax.faces.FacesException: Can't parse configuration file:
jar:file:/home/dev7/springsource/vfabric-tc-server-developer-2.8.2.RELEASE/base-instance/wtpwebapps/UNHPM_5/WEB-INF/lib/skyway-spring-utils-7.1.3.jar!/META-INF/faces-config.xml:
Error at line 5 column 16: cvc-elt.1: Cannot find the declaration of
element 'faces-config'.
我还向project添加了jar文件
skyway-spring-utils-7.1.3.jar
,但当我未连接到internet时,例外情况仍然存在。解决方案是什么?

  • 这个问题可能属于jar版本的miss-match。因为它会在DTD版本之间创建不兼容

  • 另一个问题可能是您的构建路径中有多个jar版本

  • 我的建议是使用maven添加依赖项jar