> I have developed a web application (servlet + JSP10) using the JRUN how
> the Web Server. Now I would test this application with another web
> server and I choose apache+Tomcat.
>
> I install Apache succesfully.
> I download Tomcat.zip and ApacheModuleJServ.dll.
> I copy ApacheModuleJServ.dll into <APACHE>/modules.
> I include <TOMCAT>/etc/tomcat.conf in httpd.conf.
>
> The server apache respond correctly but when I try
> http://localhost/examples
> I have this error:
>
> <Internal Server Error
>
> The server encountered an internal error or misconfiguration and was
> unable to complete your request.>
Did you set up the Tomcat serverfile (<Tomcat dir>/server.xml>) correctly?
The Jserv module needs to communicate with Tomcat using the AJP12
protocol. You have to enable a Connector for this protocol in server.xml.
In the file that comes with the Tomcat download this Connector is
commented out. These are the lines that you need:
<Connector className="org.apache.tomcat.service.TcpEndpointConnector">
<Parameter name="handler"
value="org.apache.tomcat.service.connector.Ajp12ConnectionHandler"/>
<Parameter name="port" value="8007"/>
</Connector>
Also, you must remember to start Tomcat (use the tomcat.bat script). It is
not started automatically by Apache.
You also have to modify the default conf file (<TOMCAT>/etc/tomcat.conf).
It does not work out of the box either.
To have Tomcat serve all contents use this directive:
ApJServMount / /
To just view the examples use this:
ApJServMount /examples /examples
The first argument to the directive maps to what is actually in the URL,
the second maps to the 'path' attribute of a 'Context' element in
server.xml.
CHR
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Christian Nedreg�rd
Markv. 30
0554 Oslo
Norway
(+47) 22 35 01 37 (home)
(+47) 22 77 02 21 (work)
PGP public key:
http://www.machinebeauty.com/keys/chrkey.txt
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
FAQs on JSP can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html