You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by "Struts Newsgroup (@Basebeans.com)" <st...@basebeans.com> on 2002/03/31 10:25:01 UTC

Re: Struts configuration problem with Apache + Tomcat + Struts HELP!!!!!!!!!!!!!!!!!!!!

Subject: Re: Struts configuration problem with Apache + Tomcat + Struts HELP!!!!!!!!!!!!!!!!!!!!
From: "Hyunjin Kim" <hy...@itline.biz>
 ===
Well.. Sorry for being not clear on my last msg..
I actually had:

<VirtualHost 111.111.111.111>
  ServerName asdf.com
  WebAppConnection conn warp asdf.com:8008
  WebAppDeploy struts-examples conn /
 </VirtualHost>

which says "if I call URL asdf.com, access struts-example from TOMCAT webapp
directory using warp connection (If I understood it correctly)." and I can
see the index.jsp page using "asdf.com", that should not be the problem(or
so I think).

What I have discovered just now is that when I try to access a jsp file that
doesn't really sit in the struts-examples directory, such as iamnothere.jsp
by calling asdf.com/iamnothere.jsp, the browser will show the TOMCAT
SPECIFIC 404 error page (the blueish one...). But when I try to access *.do
call that's actually mapped in the struts examples web.xml(the ones that I
can get to using asdf.com:8080), the browser will give me the browser
specific 404 error page(the microsoft one..).. I think it's some kinda
clue...



**** I think, apache is not forwarding a call of which extension it cannot
recognize to tomcat.... such as *.do..

I think I should add some kinda AddHandler directive to httpd.conf file, but
I can't find any documentation for warp connection....

HELP ME!!!!!!!!!!!!!!!


"Jack Gao" <we...@hotmail.com> wrote in message
news:a86fhp$ilb$1@basebeans.com...
> Well, as you said, you are using warp connector to connect Apache with
> Tomcat. In your httpd.conf file, you define virtual directory for tomcat
> examples, which is:
>  WebAppConnection conn warp asdf.com:8008
>  WebAppDeploy examples conn /
>
> But after you install struts, you didn't add virtual directory for struts
> examples, I believe that's the problem.
>
> You can add them like:
>
>  WebAppDeploy struts-examples conn /struts-examples
>  WebAppDeploy struts-..... conn /struts-....
>
> In fact, whatever you add in your tomcat, if you want direct request from
> apache to it, you need to add it into your WebAppConnections.
>
> Hope this can help.
>
> Jack
>
>
> "Hyunjin Kim" <hy...@itline.biz> wrote in message
> news:a86d6r$i6q$1@basebeans.com...
> > Hi,
> > I have successfully installed Apache 1.3 and Tomcat 4 and they work
> > beautifully. I have tried to test the example applications that came
with
> > Tomcat and they work without any problem when called from Apache(using
> port
> > 80 and virtual host directive). All servlets are being called as
expected
> > (e.g. calling /servlet/HelloWorldExample will execute the expected
> > HelloWorldExample..) my httpd.conf file fot the example application is
as
> > following:
> >
> >
>
***************************************************************************
> > LoadModule rewrite_module     libexec/mod_rewrite.so
> > LoadModule webapp_module   libexec/mod_webapp.so
> >
> > ClearModuleList
> > AddModule mod_env.c
> > AddModule mod_log_config.c
> > AddModule mod_mime.c
> > AddModule mod_negotiation.c
> > AddModule mod_status.c
> > AddModule mod_include.c
> > AddModule mod_autoindex.c
> > AddModule mod_dir.c
> > AddModule mod_cgi.c
> > AddModule mod_asis.c
> > AddModule mod_imap.c
> > AddModule mod_actions.c
> > AddModule mod_userdir.c
> > AddModule mod_alias.c
> > AddModule mod_rewrite.c
> > AddModule mod_access.c
> > AddModule mod_auth.c
> > AddModule mod_so.c
> > AddModule mod_setenvif.c
> > AddModule mod_webapp.c
> >
> > <IfModule mod_dir.c>
> >     DirectoryIndex index.html index.htm, index.jsp
> > </IfModule>
> >
> > <VirtualHost 111.111.111.111>
> >  ServerName asdf.com
> >  WebAppConnection conn warp asdf.com:8008
> >  WebAppDeploy examples conn /
> > </VirtualHost>
> > *******************************************************************
> >
> > As you can see from the conf file, I am using WARP connector(recommended
> by
> > TOMCAT, or so i thought) to connect Apache with TOMCAT. Warp connector's
> > documentation says it should forward *ALL* requests to TOMCAT(which is
not
> > what I want, but for now, I can live with that) And you whould also see
> that
> > my Apache doesn't have mod_jserv currently installed(not in libexec)
> >
> >
> > OK.. So I thought everything was fine, and then I installed Struts 1.1b.
> > Everything works as expected when called straight from TOMCAT (:8080).
> > However, when I call the struts Action Servlet(*.do) from Apche, my
apache
> > gives me ***Error 404*** file not found exception.
> >
> > Can anyone help me with this problem?? I am in panic mode cause I should
> be
> > doing coding, not configuration...
> >
> >
> > THANK YOU VERY MUCH!!!!
> >
> > Jason Kim.
> >
> >
>
>



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>