Hi Hao,
Have you tried using your servlet name in the filter mapping rather than the
url-pattern, e.g.
<servlet>
<display-name>Example Servlet</display-name>
<servlet-name>ExampleServlet</servlet-name>
<servlet-class>com.mycompany.examples.ExampleServlet</servlet-class>
</servlet>
...
<filter-mapping>
<filter-name>EnforceAuthnFilter</filter-name>
<servlet-name>ExampleServlet</servlet-name>
</filter-mapping>
Bill
On Wed, Oct 22, 2008 at 12:53 AM, Jiang Hao <[EMAIL PROTECTED]> wrote:
> Hi all,
>
> I am sorry to bother you again. I developed a servlet and deployed on
> fedora2.2.1. I happened to encounter a strange situation.
>
> I want it to be accessed with authentication (I am using basic
> authentication), so i put it in a filter as following.
> -----------
> <filter-mapping>
> <filter-name>EnforceAuthnFilter</filter-name>
> <url-pattern>/exampleServlet/*</url-pattern>
> </filter-mapping>
> ---------------------
> However, when I trying to access it, the web browsers (i am using IE and
> firefox) give me 404 error. When I remove the code above, it can be
> accessed. Could you help me on this one? I've tried many times, it doesn't
> work.
>
> Thanks,
> Hao
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Fedora-commons-developers mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/fedora-commons-developers
>
>
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Fedora-commons-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fedora-commons-developers