JSP end up as servlets. Thus, they fall under the "web app" realm.
They are not distinct "pages" like HTML or PHP.
You do have to match your Apache config to your Tomcat config. Tomcat
is not "integrated" into Apache as PHP is...Tomcat is a distinct
environment, and can stand by itself without Apache. The communications
between Apache and Tomcat happen over the network via a
connector....they have their own process space, etc. It's not like CGI
or PHP where things are executed in process with Apache. Tomcat has no
knowledge whatsoever of Apache config...Tomcat only knows that requests
are coming in on a port.
John
Mike Klein wrote:
> I 'figured' out the problem I was having...or at least got things working.
>
> In addition to: JkMount /*.jsp ajp13
>
> I also had to add a servlet context to server.xml:
>
> <Context path="" docBase="/www/html/VxAppliance" debug="0"/>
>
> Originally docBase said ROOT, which I guess is Tomcat's root dir as opposed
> to DocumentRoot in Apache.
>
> I thought it might be cleaner to place individual 'markup' files (jsp, html,
> php) under Apache, and only webapps and possibly servlets under Tomcat.
>
> I didn't seem to think a servlet context was needed for stuff under apache,
> just for webapps...my mistake. Most of my work has been with webapps, and to
> Apache's credit, I haven't had a whole lot of problems up till now...with
> cocoon, apache, tomcat, etc.
>
> I'm putting my server into a sort of test mode now, and am creating samples
> of various 'similar' web pages using different web technologies (jsp, php,
> cocoon). For this reason I wanted the files placed singlely under my apache
> root, rather than tomcat using webapps/etc.
>
>
> mike
>
> -----Original Message-----
> From: Mike Klein [mailto:mikeklein@(protected)]
> Sent: Sunday, August 10, 2003 9:30 PM
> To: tomcat-user@(protected)
> Subject: mod_jk problem with serving jsp from apache root dir...from
> tomcat alias dir is ok
>
>
> This has to be brain freeze of something...this s/be so simple...and
> probably is.
>
> I'm running tomcat 4.1.24-LE-jdk14 and Apache 1.3.27. I've got jsps coming
> up on the web server port (via alias'd tomcat examples dir), in addition to
> default of tomcat 8080 port...of course.
>
> However, when I added the following:
>
> JkMount /*.jsp ajp13
>
> to my mod_jk.conf, which is Included at the end of my httpd.conf, it doesn't
> seem to work. I get an http 404 740 error (requested resource is not
> available). I put a HelloWorld.jsp into the web root of one of my virtual
> hosts and it can't be pulled up. I've copied it as a .txt file, which is
> returned just fine, and have double-checked permissions.
>
> I can't seem to dish up jsps located directly under my server root...why?
>
>
> mike
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
> For additional commands, e-mail: tomcat-user-help@(protected)
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
> For additional commands, e-mail: tomcat-user-help@(protected)
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)