You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by August Detlefsen <au...@yahoo.com> on 2002/01/14 23:21:48 UTC
executing JSP with virtual hosts
I just upgraded from Tomcat 3.2 to Tomcat 4.0. Both were using Apache
and virtual hosts.
I managed to install mod_webapp and forward requests for virtual hosts
to tomcat, but the jsps are not being executed, instead the JSP source
code is being sent directly to the browser.
Anyone know what causes this? Is there some configuration issue I
missed?
Thanks,
August
__________________________________________________
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/
--
To unsubscribe: <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>
War Extraction Problem
Posted by Michael Farnbach <mi...@myricanet.com>.
Current setup:
SGI-Redhat 7.1
IBM JDK 1.3-10 (by rpm w/ apps rpm)
Tomcat 4.0.1-1 (by rpm)
When I use the manager app to load the webmail.war from
jwma.sourceforge.net I get the following...
http://linux17:8180/manager/install?path=/webmail&war=jar:file://var/tomcat4/webapps/webmail.war!/
FAIL - Encountered exception java.io.FileNotFoundException:
/var/tomcat4/webapps/webmail/META-INF/MANIFEST.MF (No such file or
directory)
Sure enough there is not manifest.mf becuase the war file didn't
extract, and there is no /var/tomcat4/webapps/webmail directory at all.
On the other hand I've jar-ed through the war file and
META-INF/MANIFEST.MF is present in the war file.
I have tried to manualy extract the war file, and I get XML problems in
WEB_INF/server.xml which I'm taking to the jwma people. But in the mean
time, am I just not doing something right? Isn't this supposed to
extract the war file or at least access the manifest.mf file in the war
file?
Thanks in advance,
--Michael
--
To unsubscribe: <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>
Re: executing JSP with virtual hosts
Posted by David Smith <dn...@cornell.edu>.
If the jsp source is showing, then the request is never going to Tomcat.
Sounds to me like you have an alias in your httpd.conf to the directory of
your app and Apache is serving out the files as static.
Can you post the relevant parts of your httpd.conf? I'm specifically
interested in seeing the requests you're trying and the WebAppDeploy lines
that should be redirecting them to TC.
Oh... and if you are using mod_webapp, you don't need the JkMount... lines
anymore since they are specific to mod_jk.
--David
On Monday 14 January 2002 05:32 pm, you wrote:
> Right, in 3.2 with mod_jk there were these lines:
>
> JkMount /*.jsp ajp13
> JkMount /servlet/* ajp13
>
> But the mod_webapp docs don't make any mention of them. Do I need to
> keep these in and have direct jsp requests handled through mod_jk?
>
> -August
>
> --- Brandon Cruz <bc...@norvax.com> wrote:
> > You probably are missing something in the config that sends *.jsp
> > requests
> > to tomcat, so apache is serving them itself. In your old 3.2 config,
> > this
> > would have been in your apache httpd.conf file.
> >
> > -----Original Message-----
> > From: August Detlefsen [mailto:augustd123@yahoo.com]
> > Sent: Monday, January 14, 2002 4:22 PM
> > To: tomcat-user@jakarta.apache.org
> > Subject: executing JSP with virtual hosts
> >
> >
> > I just upgraded from Tomcat 3.2 to Tomcat 4.0. Both were using Apache
> > and virtual hosts.
> >
> > I managed to install mod_webapp and forward requests for virtual
> > hosts
> > to tomcat, but the jsps are not being executed, instead the JSP
> > source
> > code is being sent directly to the browser.
> >
> > Anyone know what causes this? Is there some configuration issue I
> > missed?
> >
> > Thanks,
> > August
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Send FREE video emails in Yahoo! Mail!
> > http://promo.yahoo.com/videomail/
> >
> > --
> > To unsubscribe: <ma...@jakarta.apache.org>
> > For additional commands: <ma...@jakarta.apache.org>
> > Troubles with the list: <ma...@jakarta.apache.org>
> >
> >
> >
> > --
> > To unsubscribe: <ma...@jakarta.apache.org>
> > For additional commands: <ma...@jakarta.apache.org>
> > Troubles with the list: <ma...@jakarta.apache.org>
>
> __________________________________________________
> Do You Yahoo!?
> Send FREE video emails in Yahoo! Mail!
> http://promo.yahoo.com/videomail/
>
> --
> To unsubscribe: <ma...@jakarta.apache.org>
> For additional commands: <ma...@jakarta.apache.org>
> Troubles with the list: <ma...@jakarta.apache.org>
--
To unsubscribe: <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>
RE: executing JSP with virtual hosts
Posted by August Detlefsen <au...@yahoo.com>.
Right, in 3.2 with mod_jk there were these lines:
JkMount /*.jsp ajp13
JkMount /servlet/* ajp13
But the mod_webapp docs don't make any mention of them. Do I need to
keep these in and have direct jsp requests handled through mod_jk?
-August
--- Brandon Cruz <bc...@norvax.com> wrote:
> You probably are missing something in the config that sends *.jsp
> requests
> to tomcat, so apache is serving them itself. In your old 3.2 config,
> this
> would have been in your apache httpd.conf file.
>
> -----Original Message-----
> From: August Detlefsen [mailto:augustd123@yahoo.com]
> Sent: Monday, January 14, 2002 4:22 PM
> To: tomcat-user@jakarta.apache.org
> Subject: executing JSP with virtual hosts
>
>
> I just upgraded from Tomcat 3.2 to Tomcat 4.0. Both were using Apache
> and virtual hosts.
>
> I managed to install mod_webapp and forward requests for virtual
> hosts
> to tomcat, but the jsps are not being executed, instead the JSP
> source
> code is being sent directly to the browser.
>
> Anyone know what causes this? Is there some configuration issue I
> missed?
>
> Thanks,
> August
>
> __________________________________________________
> Do You Yahoo!?
> Send FREE video emails in Yahoo! Mail!
> http://promo.yahoo.com/videomail/
>
> --
> To unsubscribe: <ma...@jakarta.apache.org>
> For additional commands: <ma...@jakarta.apache.org>
> Troubles with the list: <ma...@jakarta.apache.org>
>
>
>
> --
> To unsubscribe: <ma...@jakarta.apache.org>
> For additional commands: <ma...@jakarta.apache.org>
> Troubles with the list: <ma...@jakarta.apache.org>
>
__________________________________________________
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/
--
To unsubscribe: <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>
RE: executing JSP with virtual hosts
Posted by Brandon Cruz <bc...@norvax.com>.
You probably are missing something in the config that sends *.jsp requests
to tomcat, so apache is serving them itself. In your old 3.2 config, this
would have been in your apache httpd.conf file.
-----Original Message-----
From: August Detlefsen [mailto:augustd123@yahoo.com]
Sent: Monday, January 14, 2002 4:22 PM
To: tomcat-user@jakarta.apache.org
Subject: executing JSP with virtual hosts
I just upgraded from Tomcat 3.2 to Tomcat 4.0. Both were using Apache
and virtual hosts.
I managed to install mod_webapp and forward requests for virtual hosts
to tomcat, but the jsps are not being executed, instead the JSP source
code is being sent directly to the browser.
Anyone know what causes this? Is there some configuration issue I
missed?
Thanks,
August
__________________________________________________
Do You Yahoo!?
Send FREE video emails in Yahoo! Mail!
http://promo.yahoo.com/videomail/
--
To unsubscribe: <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>
--
To unsubscribe: <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>