Hi Hugo,
I think u need only this one line in ur conf file
Alias /examples "C:/Program Files/Apache Group/Apache/tomcat/webapps/examples"
The lines:
alias /examples/jsp "C:/Program Files/Apache Group/Apache/tomcat/webapps/examples/jsp"
alias /examples/jsp/cal "C:/Program Files/Apache up/Apache/tomcat/webapps/examples/jsp/cal"
are not needed as they are mapped by the earlier line.
If it still doesnot work pls send me ur server.xml also
Regards
John
Hi John
My tomcat distribution is under my apache directory, that is, my
tomcat_home is
C:\Program Files\Apache Group\Apache\tomcat
but I did what you said: I changes the line
Include "tomcat/conf/tomcat-apache.conf"
to
Include "C:/Program Files/Apache
Group/Apache/tomcat/conf/tomcat-apache.conf"
I still get the same error whenever I want to access a .jsp file.
Any further suggestions?
Thanks
Hugo
John Thomas wrote:
>
> Hi,
>
> I think the problem u face is in this line.
> Include "tomcat/conf/tomcat-apache.conf"
>
> u must specify the absolute path or apache will read w.r.t its folder
> structure
>
> John
>
> 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
--
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
- tomcat with apache?? hugo
- Re: tomcat with apache?? John Thomas
- Re: tomcat with apache?? John Thomas
- Re: tomcat with apache?? John Thomas
- Re: tomcat with apache?? Alex
- Re: tomcat with apache?? Emir Alikadic (ADNOC IS&T)
