pombreda / google-guice

Automatically exported from code.google.com/p/google-guice
Apache License 2.0
0 stars 1 forks source link

welcome-file-list is ignored. 404 not found error returned #810

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Description of the issue:
I am using Guice filter to wrap servlet declaration. I specified the 
welcome-file-list in this way:
<welcome-file-list>
    <welcome-file>home</welcome-file>
</welcome-file-list>

Here it is my web.xml:
<filter>
        <filter-name>guiceFilter</filter-name>
        <filter-class>com.google.inject.servlet.GuiceFilter</filter-class>
    </filter>

    <filter-mapping>
        <filter-name>guiceFilter</filter-name>
        <url-pattern>/*</url-pattern>
    </filter-mapping>

    <listener>
        <listener-class>it.micheleorsi.IoCConfiguration</listener-class>
    </listener>

In the IoCConfigration I have:
serve("/home").with(BrowserAuthentication.class);

Once I try to access the root path (/) I got 404 not found error.
If I specify the root in IoCConfiguration it works:
serve("/home", "/").with(BrowserAuthentication.class);

Original issue reported on code.google.com by DoctorMi...@gmail.com on 23 Jun 2014 at 3:47

GoogleCodeExporter commented 9 years ago
I am using this maven packages:
<dependency>
    <groupId>javax.inject</groupId>
    <artifactId>javax.inject</artifactId>
    <version>1</version>
</dependency>
<dependency>
    <groupId>com.google.inject</groupId>
    <artifactId>guice</artifactId>
    <version>3.0</version>
</dependency>
<dependency>
    <groupId>com.sun.jersey.contribs</groupId>
    <artifactId>jersey-guice</artifactId>
    <version>1.18.1</version>
</dependency>

Original comment by DoctorMi...@gmail.com on 23 Jun 2014 at 3:49