tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Omar VEGA" <ov...@cti.com.ar>
Subject Re: Tomcat + Apache
Date Wed, 14 Jun 2000 13:06:17 GMT
Manie,

I have four applications running in four different contexts:

 /wap       
 /telefonos
 /toPtg     
 /servicios

In httpd.conf related to tomcat I have the following lines 

<IfModule mod_jserv.c>
  Include /var/soft/jakarta/tomcat3.1/build/tomcat/conf/tomcat.conf
</IfModule>

and tomcat.conf looks like 

###############################################################################
#                     Apache JServ Configuration File                         #
###############################################################################

# Note: this file should be appended or included into your httpd.conf

# Tell Apache on win32 to load the Apache JServ communication module
# LoadModule jserv_module modules/ApacheModuleJServ.dll

# Tell Apache on Unix to load the Apache JServ communication module
# For shared object builds only!!!
# @LOAD_OR_NOT@LoadModule jserv_module @LIBEXECDIR@/mod_jserv.so
LoadModule jserv_module libexec/mod_jserv.so

<IfModule mod_jserv.c>
# Do not edit! 
ApJServManual on
ApJServDefaultProtocol ajpv12
ApJServSecretKey DISABLED
ApJServMountCopy on
ApJServLogLevel notice


### Change if you run tomcat on a different host
#ApJServDefaultHost localhost
ApJServDefaultPort 8007


#################### All jsp files will go to tomcat ####################
ApJServMount default /root
 
AddType text/jsp .jsp
AddHandler jserv-servlet .jsp

############################## Context mapping - all requests go to tomcat

ApJServMount /examples  /root
ApJServMount /wap       /root
ApJServMount /telefonos /root
ApJServMount /toPtg     /root
ApJServMount /servicios /root

#Alias /servicios /home/web/app/servicios
<Directory "/home/web/app/servicios">
    Options Indexes FollowSymLinks
</Directory>
<Directory "/home/web/app/toPtg">
    Options Indexes FollowSymLinks
</Directory>

</IfModule>


In server.xml

        <Context path="/wap" docBase="/home/web/app/wap" debug="0" reloadable="t
rue" >
        </Context>
        <Context path="/telefonos" docBase="/home/web/app/telefonos" debug="0" r
eloadable="true" >
        </Context>
        <Context path="/servicios" docBase="/home/web/app/servicios" debug="0" r
eloadable="true" >
        </Context>
        <Context path="/toPtg" docBase="/home/web/app/toPtg" debug="0" reloadable="true"
>
        </Context>


Hope this help.


Omar


>>> Manie Coetzee <manie@hemtech.co.za> 13/06/00 19:41 >>>
Hi,

If have posted a simular message before but I still can't find a
solution.

In my "httpd.conf" I have inserted the following (at the end):
.....
"include /usr/local/jakarta/tomcat/conf/tomcat-apache.conf"
....

I have downloaded "mod_jserv.so" from the tomcat web site and copied
it to the apache/libexec sub directory.

When I type in "localhost/examples" I get a directory tree of jsp's and
servlets.
This is fine but when I try to load any of the examples that is JSP
pages
I get a bad Servlet Header Error.  It is only when I try to load JSP's
or servlets .
Static pages works fine, so that tell me that the requests is actually
send
to tomcat.  But any servlet or JSP example does not work.  The only
conclusion that I can make is that tomcat does not handle the JSP or
servlet
requests. Why, I don't know.

I looked at the tomcat users guide and did exactly as the tutorial
instructed,
but again the same scenario described above.  On WINNT it works
like it says in the user guide, but it just won't work on Linux.

Is there some bug that I am not aware of?
Am I doing something wrong?
Can anybody send me a copy of a working httpd.conf, server.xml and
tomcat-apache.conf ?


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



Mime
View raw message