Hi Hugo,
Did you try using mod_jk instead of mod_jserv by including following line in appache's
httpd.conf:
"Include <TOMCAT_HOME>/conf/mod_jk.conf-auto"
Note: I am using dispatcher architecture for my web applications where I have a
controller servlet mapped to an url (via web applications's web.xml file) as in
followiwng example:
<web-app>
<servlet>
<servlet-name>Controller</servlet-name>
<servlet-class>com.wrox.projsp.ch06.Controller</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>Controller</servlet-name>
<url-pattern>/controller</url-pattern>
</servlet-mapping>
</web-app>
In order to access the controller servlet thru apache I added following line to my
httpd.conf (the name of web app is "ch06")
"JkMount /ch06/controller ajp12"
I don't know if this is the best approach although it works for me.
Hope this helps,
Alex
On Mon, 3 Sep 2001 17:11:57 +0800, hugo <[EMAIL PROTECTED]> wrote:
>Hi
>
>I am trying to set up tomcat with apache, but it does not work! In my
>apache httpd.conf file I refer to the tomcat-apache.conf file with the
>line
>
>Include "tomcat/conf/tomcat-apache.conf"
>
>The tomcat-apache.conf file is attached below. Basically, it loads
>ApacheModuleJServ.dll and when Apache starts, it states "Apache/1.3.14
>(Win32) tomcat/1.0 running. So I was hopeful it was going to work.
>
>However, when I want to run any .jsp file I encounter an error! I can go
>to the tomcat examples directory, but the moment a .jsp file is
>required, I get the error:
>
>The server encountered an internal error or misconfiguration and was
>unable to complete your request.
>
>The tomcat log files do not show anything, but the apache error log file
>has the following message:
>
>client denied by server configuration: c:/program files/apache
>group/apache/tomcat/webapps/examples/web-inf
>
>Any help or advice will be most appreciated.
>
>Thanks
>
>Hugo
>
>***
>Here is the tomcat-apache.conf file:
>
>LoadModule jserv_module modules/ApacheModuleJServ.dll
>ApJServManual on
>ApJServDefaultProtocol ajpv12
>ApJServSecretKey DISABLED
>ApJServMountCopy on
>ApJServLogLevel notice
>
>ApJServDefaultPort 8007
>ApJServDefaultHost localhost
>
>AddType text/jsp .jsp
>AddHandler jserv-servlet .jsp
>
>Alias /examples "C:/Program Files/Apache
>Group/Apache/tomcat/webapps/examples"
>Alias /root "C:/Program Files/Apache Group/Apache/tomcat/webapps/root"
>Alias /examples "C:/Program Files/Apache
>Group/Apache/tomcat/webapps/examples"
>alias /examples/jsp "C:/Program Files/Apache
>Group/Apache/tomcat/webapps/examples/jsp"
>alias /examples/jsp/cal "C:/Program Files/Apache
>Group/Apache/tomcat/webapps/examples/jsp/cal"
><Directory "C:/Program Files/Apache
>Group/Apache/tomcat/webapps/examples">
> Options Indexes FollowSymLinks
></Directory>
>ApJServMount /examples/servlet /examples
><Location "/examples/WEB-INF/">
> AllowOverride None
> deny from all
></Location>
><Directory "C:/Program Files/Apache
>Group/Apache/tomcat/webapps/examples/WEB-INF/">
> AllowOverride None
> deny from all
></Directory>
><Location "/examples/META-INF/">
> AllowOverride None
> deny from all
></Location>
><Directory "C:/Program Files/Apache
>Group/Apache/tomcat/webapps/examples/META-INF/">
> AllowOverride None
> deny from all
></Directory>
>
>Alias /admin "C:/Program Files/Apache Group/Apache/tomcat/webapps/admin"
><Directory "C:/Program Files/Apache Group/Apache/tomcat/webapps/admin">
> Options Indexes FollowSymLinks
></Directory>
>ApJServMount /admin/servlet /admin
><Location "/admin/WEB-INF/">
> AllowOverride None
> deny from all
></Location>
><Directory "C:/Program Files/Apache
>Group/Apache/tomcat/webapps/admin/WEB-INF/">
> AllowOverride None
> deny from all
></Directory>
><Location "/admin/META-INF/">
> AllowOverride None
> deny from all
></Location>
><Directory "C:/Program Files/Apache
>Group/Apache/tomcat/webapps/admin/META-INF/">
> AllowOverride None
> deny from all
></Directory>
>
>ApJServMount /servlet /ROOT
>Alias /test "C:/Program Files/Apache Group/Apache/tomcat/webapps/test"
><Directory "C:/Program Files/Apache Group/Apache/tomcat/webapps/test">
> Options Indexes FollowSymLinks
></Directory>
>ApJServMount /test/servlet /test
><Location "/test/WEB-INF/">
> AllowOverride None
> deny from all
></Location>
><Directory "C:/Program Files/Apache
>Group/Apache/tomcat/webapps/test/WEB-INF/">
> AllowOverride None
> deny from all
></Directory>
><Location "/test/META-INF/">
> AllowOverride None
> deny from all
></Location>
><Directory "C:/Program Files/Apache
>Group/Apache/tomcat/webapps/test/META-INF/">
> AllowOverride None
> deny from all
></Directory>
>--
>Dr Hugo Bouckaert
>R&D Support Engineer, Fractal Graphics
>57 Havelock Street, West Perth 6005
>Western Australia 6009
>Tel: +618 9386 7917
>Email:[EMAIL PROTECTED]
>Web: http://www.fractalgraphics.com.au
>
> ==========================================================================
>To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
>For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
>Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets