You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Christopher Schultz <ch...@christopherschultz.net> on 2010/03/02 18:45:19 UTC

Re: When I link to a *.do I get "Page not found"

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Søren,

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/foo.do instead of /newname/foo.do. 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
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkuNTq4ACgkQ9CaO5/Lv0PCeDgCfdhUPhgV+pxFZz/Vd77pVH8XA
/YkAoMNN1+d/V8CnJygeZuAKOo8O0/c7
=wkXT
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org