Facelet Richfaces Spring Security标签

时间:2015-08-04 16:17:15

标签: spring security tags facelets

我正在尝试让Spring Security标签在我的facelets页面中运行。我按照这个文件做了一切

http://docs.spring.io/autorepo/docs/webflow/2.3.x/reference/html/spring-faces.html#spring-faces-security-taglib

它问我弹簧面罐和弹簧webflow罐子。我给了

弹簧面-2.3.0.RELEASE.jar 弹簧的Webflow-2.3.0.RELEASE.jar

我的春季版本的其余部分是3.0.2。

现在,当我启动服务器时,我发现了这些

的堆栈溢出错误
Caused by: java.lang.StackOverflowError
    at java.util.concurrent.ConcurrentHashMap.hash(Unknown Source)
    at java.util.concurrent.ConcurrentHashMap.get(Unknown Source)
    at org.apache.catalina.core.ApplicationContext.getAttribute(ApplicationContext.java:236)
    at org.apache.catalina.core.ApplicationContextFacade.getAttribute(ApplicationContextFacade.java:376)
    at org.apache.myfaces.context.servlet.ApplicationMap.getAttribute(ApplicationMap.java:47)
    at org.apache.myfaces.util.AbstractThreadSafeAttributeMap.get(AbstractThreadSafeAttributeMap.java:90)
    at javax.faces.application.Application.getMyfacesApplicationInstance(Application.java:100)
    at javax.faces.application.Application.setFlowHandler(Application.java:1245)
    at javax.faces.application.Application.setFlowHandler(Application.java:1248)
    at javax.faces.application.Application.setFlowHandler(Application.java:1248)

我不确定版本冲突是什么。任何帮助表示赞赏。

我的pom.xml

<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <groupId>SasMrm_Jars1</groupId>
  <artifactId>SasMrm_Jars1</artifactId>
  <version>0.0.1-SNAPSHOT</version>
  <name>SasMrm_Jars1</name>
  <dependencies>
    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-core</artifactId>
        <version>3.2.5.RELEASE</version>
    </dependency>
    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-beans</artifactId>
        <version>3.2.5.RELEASE</version>
    </dependency>
    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-context</artifactId>
        <version>3.2.5.RELEASE</version>
    </dependency>
    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-web</artifactId>
        <version>3.2.5.RELEASE</version>
    </dependency>
    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-aop</artifactId>
        <version>3.2.5.RELEASE</version>
    </dependency>
    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-tx</artifactId>
        <version>3.2.5.RELEASE</version>
    </dependency>
    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-context-support</artifactId>
        <version>3.2.5.RELEASE</version>
    </dependency>
    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-orm</artifactId>
        <version>3.2.5.RELEASE</version>
    </dependency>
    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-jms</artifactId>
        <version>3.2.5.RELEASE</version>
    </dependency>
    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-aspects</artifactId>
        <version>3.2.5.RELEASE</version>
    </dependency>
    <dependency>
        <groupId>org.springframework</groupId>
        <artifactId>spring-oxm</artifactId>
        <version>3.2.5.RELEASE</version>
    </dependency>
    <dependency>
        <groupId>org.springframework.security</groupId>
        <artifactId>spring-security-core</artifactId>
        <version>3.1.4.RELEASE</version>
    </dependency>
    <dependency>
        <groupId>org.springframework.security</groupId>
        <artifactId>spring-security-web</artifactId>
        <version>3.1.4.RELEASE</version>
    </dependency>
    <dependency>
        <groupId>org.springframework.security</groupId>
        <artifactId>spring-security-config</artifactId>
        <version>3.1.4.RELEASE</version>
    </dependency>
    <dependency>
        <groupId>org.springframework.security</groupId>
        <artifactId>spring-security-taglibs</artifactId>
        <version>3.1.4.RELEASE</version>
    </dependency>
    <dependency>
        <groupId>org.springframework.security</groupId>
        <artifactId>spring-security-ldap</artifactId>
        <version>3.1.4.RELEASE</version>
    </dependency>
    <dependency>
        <groupId>org.springframework.webflow</groupId>
        <artifactId>spring-webflow</artifactId>
        <version>2.3.2.RELEASE</version>
    </dependency>
    <dependency>
        <groupId>org.springframework.webflow</groupId>
        <artifactId>spring-faces</artifactId>
        <version>2.3.2.RELEASE</version>
    </dependency>   
  </dependencies>
</project>

1 个答案:

答案 0 :(得分:0)

spring-faces-2.3.0.RELEASE.jar需要的弹簧版本低于3.0.2。

查看子标题&#39; 必需的相关性&#39;在SpringSource Enterprise Bundle Repository页面here

正如您将看到的,主要需要Spring版本 3.2.5.RELEASE 3.0.7.RELEASE

希望有所帮助。

修改

对于您现在使用的spring-faces-2.3.2.RELEASE.jar,以下是必需的依赖项:

enter image description here