You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by David Evans <ds...@berndtgroup.net> on 2005/05/11 22:35:52 UTC

servlet mapping , possible OT

Hello All,

I have a struts app which is having problems with its servlet mapping.
this problem appeared seemingly on its own, unrelated to any change to
the configuration. surely thats unlikely, but i'm the only admin on the
box and i don't remember changing anything. the app is running on
tomcat, behind apache2, through mod_jk.

the problem:
this mapping works:
/apps/directoryindex
this mapping doesn't:
/apps/admin/login

more to the point anything with one "directory level" goes to tomcat,
and anything that has more than one "directory level" doesn't.

my web.xml mapping:
    <servlet-mapping>
        <servlet-name>apps</servlet-name>
        <url-pattern>/apps/*</url-pattern>
    </servlet-mapping>

and apache vhost:
    <Location "/apps/*">
        JkUriSet worker ajp13:localhost:8009
    </Location>

so /apps/whatever which is not a valid struts action, gives a tomcat 
"Invalid path /whatever was requested"
but /apps/what/ever gives an apache 404 page.

Ring any bells for anyone?

dave


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org