You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by mb...@decaresystems.ie on 2005/06/14 14:41:56 UTC

tomcat unable to serve struts action

Hi,

I have an application using Apache 2.0.54, Tomcat 5.0.27 & Struts 1.1 on a 
Windows 2003 SP1 box.

*.jsp and *.do get forwarded to Tomcat for processing.

When a particular folder is requested in a URL with no filename, I want a 
struts action to get called. For example http://test.site.com/foldername 
should result in http://test.site.com/index.do

I have configured the triggering of the /index.do in Apache and it does 
seem to pass the request onto Tomcat as I see the following in the tomcat 
access log.  However Tomcat is unable to process the action and its 
causing the errorpage to trigger. 

xxx.xxx.xxx.xxx - - [14/Jun/2005:13:37:16 +0000] "GET /index.do HTTP/1.1" 
200 12608
xxx.xxx.xxx.xxx - - [14/Jun/2005:13:37:17 +0000] "GET /errorpage.jsp 
HTTP/1.1" 200 11317

If I access http://test.site.com/index.do directly the page is correctly 
served. 

Should it be possible for Tomcat to process a struts action as a default 
page through Apache? Is there another way I can do this?

Thanks in advance,
Michelle.

Re: tomcat unable to serve struts action

Posted by Anto Paul <an...@gmail.com>.
On 6/14/05, mbrett-mitchell@decaresystems.ie
<mb...@decaresystems.ie> wrote:
> Hi,
> 
> I have an application using Apache 2.0.54, Tomcat 5.0.27 & Struts 1.1 on a
> Windows 2003 SP1 box.
> 
> *.jsp and *.do get forwarded to Tomcat for processing.
> 
> When a particular folder is requested in a URL with no filename, I want a
> struts action to get called. For example http://test.site.com/foldername
> should result in http://test.site.com/index.do
> 
> I have configured the triggering of the /index.do in Apache and it does
> seem to pass the request onto Tomcat as I see the following in the tomcat
> access log.  However Tomcat is unable to process the action and its
> causing the errorpage to trigger.
> 
> xxx.xxx.xxx.xxx - - [14/Jun/2005:13:37:16 +0000] "GET /index.do HTTP/1.1"
> 200 12608
> xxx.xxx.xxx.xxx - - [14/Jun/2005:13:37:17 +0000] "GET /errorpage.jsp
> HTTP/1.1" 200 11317
> 

The log file shows it has HTTP status code 200 for request GET
/index.do HTTP/1.1. That means the page is found and served but some
errors occurred in the process and redirected to errorpage.jsp. Check
the error logs to find the error.


-- 
rgds
Anto Paul

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