You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@shiro.apache.org by "Ignacio Baca Moreno-Torres (JIRA)" <ji...@apache.org> on 2014/03/06 21:53:50 UTC

[jira] [Created] (SHIRO-488) ShiroWebModule.config does not work with sisu-guice 3.1.8

Ignacio Baca Moreno-Torres created SHIRO-488:
------------------------------------------------

             Summary: ShiroWebModule.config does not work with sisu-guice 3.1.8
                 Key: SHIRO-488
                 URL: https://issues.apache.org/jira/browse/SHIRO-488
             Project: Shiro
          Issue Type: Bug
          Components: Integration: Guice
    Affects Versions: 1.2.2
            Reporter: Ignacio Baca Moreno-Torres
            Assignee: Jared Bunting
            Priority: Trivial


ShiroWebModule$FilterConfigKey is not instantiable in sisu-guice 3.1.8.

To reproduce the error, configure dependencies.
{code}
<dependency>
    <groupId>org.apache.shiro</groupId>
    <artifactId>shiro-guice</artifactId>
    <version>1.2.2</version>
    <exclusions>
        <exclusion>
            <artifactId>guice</artifactId>
            <groupId>com.google.inject</groupId>
        </exclusion>
        <exclusion>
            <artifactId>guice-multibindings</artifactId>
            <groupId>com.google.inject.extensions</groupId>
        </exclusion>
    </exclusions>
</dependency>
<dependency>
    <groupId>org.apache.shiro</groupId>
    <artifactId>shiro-web</artifactId>
    <version>1.2.2</version>
</dependency>
<dependency>
    <groupId>org.sonatype.sisu.inject</groupId>
    <artifactId>guice-servlet</artifactId>
    <version>3.1.0</version>
</dependency>
<dependency>
    <groupId>javax.servlet</groupId>
    <artifactId>servlet-api</artifactId>
    <version>2.4</version>
</dependency>
<dependency>
    <groupId>org.sonatype.sisu</groupId>
    <artifactId>sisu-guice</artifactId>
    <version>3.1.8</version>
</dependency>
{code}

And run:
{code}
public static void main(String[] args) {
    new MyShiroWebModule();
}

private static class MyShiroWebModule extends ShiroWebModule {
    public MyShiroWebModule() {
        super(null);
        addFilterChain("/**", AUTHC, config(PERMS, "hello"));
    }
    @Override public void configureShiroWeb() {}
}
{code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)