tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher Schultz <>
Subject Re: When I link to a *.do I get "Page not found"
Date Tue, 02 Mar 2010 17:45:19 GMT
Hash: SHA1


On 2/27/2010 8:31 AM, Søren Blidorf wrote:
> I have made a struts application and it works just fine on my testserver.
> I have now uploaded it to my hosted webserver and struts does not work.
> When I link to a *.do I get “Page not found”

Are you using a web server in front of Tomcat? If so, you'll need to map
"*.do" to Tomcat. Often, *.jsp and others are mapped but not "*.do", so
you'll have to double-check.

If you don't have a web server in front of Tomcat, the only other things
I can think of are:

1. Your paths are absolute instead of relative, and you hard-coded the
context path in development, but deployed to production under a
different context path. In that case, you'll get references to
/oldname/ instead of /newname/ You'll have to make sure you
properly format your links so that the correct context path is always used.

2. You don't have your Struts controller server mapped to /*.do in
web.xml. That would be a pretty big mistake, and wouldn't work in
development, but if you have a different web.xml file for each
environment, it might be the cause.

- -chris
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla -


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message