----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files. Don't make us guess your problem!!!
----------------------------------------------------------------
Hi Graham,
Have you tried accessing Tomcat directly from your
browser to ensure that it is workiing by using the url
http://your.localhost.localdomain:8080/
There should be a Tomcat page that links to
the servlet and jsp examples.
>>> Graham Freeman <[EMAIL PROTECTED]> 11/5/00 4:14:48 PM >>>
----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files. Don't make us guess your problem!!!
----------------------------------------------------------------
I am trying to get Tomcat to work with Apache. I am not able to
run the "examples" provided with Tomcat. I have been to the FAQ
which simply says to read the user guide. I have been though it
carefully; there must be some step which I have misunderstood.
I installed Apache in /usr/local/apache and Tomcat in /usr/local/tomcat.
I have added
<IfModule mod_so.c>
Include /usr/local/tomcat/conf/tomcat-apache.conf
</IfModule>
to the bottom of the file /usr/local/apache/conf/httpd.conf
and verified with
/usr/local/apache/bin/apachectl configtest
that the syntax of the file is correct.
The generated tomcat-apache.conf file contains
Alias /examples /usr/local/tomcat/webapps/examples
<Directory "/usr/local/tomcat/webapps/examples">
Options Indexes FollowSymLinks
</Directory>
ApJServMount /examples/servlet /examples
I started Tomcat before Apache. Tomcat reported:
# /usr/local/tomcat/bin/startup.sh
Using classpath:
.:/usr/local/tomcat/lib/ant.jar:/usr/local/tomcat/lib/jasper.jar:/usr/local/tomcat/lib/servlet.jar:/usr/local/tomcat/lib/test:/usr/local/tomcat/lib/webserver.jar:/usr/local/tomcat/lib/xml.jar:/usr/local/java/lib/tools.jar
# Context log: path="/examples" Adding context path="/examples"
docBase="webapps/examples"
Context log: path="" Adding context path="" docBase="webapps/ROOT"
Context log: path="/test" Adding context path="/test"
docBase="webapps/test"
Starting tomcat. Check logs/tomcat.log for error messages
Starting tomcat install="/usr/local/tomcat" home="/usr/local/tomcat"
classPath=".:/usr/local/tomcat/lib/ant.jar:/usr/local/tomcat/lib/jasper.jar:/usr/local/tomcat/lib/servlet.jar:/usr/local/tomcat/lib/test:/usr/local/tomcat/lib/webserver.jar:/usr/local/tomcat/lib/xml.jar:/usr/local/java/lib/tools.jar"
Context log: path="/admin" Automatic context load
docBase="/usr/local/tomcat/webapps/admin"
Context log: path="/admin" Adding context path="/admin"
docBase="/usr/local/tomcat/webapps/admin"
If I ask a browser for page
http://gun.cs.adfa.edu.au/examples/servlets/
or
http://gun.cs.adfa.edu.au/examples/
I get the response
Not Found
The requested URL /examples/ was not found on this server.
If I create a soft link
ln -s ../../tomcat/webapps /usr/local/apache/htdocs/webapps
I am able to access the index.html file successfully with
http://gun.cs.adfa.edu.au/webapps/examples/servlets/
so Apache is working fine. It seems to be not recognizing
Tomcat.
The Tomcat log files give no indication of the cause of the
problem. The Apache log files confirm that the files are
not being found and that it is only looking in
/usr/local/apache/htdocs/examples/
and not following the alias to the Tomcat area.
This seems to point to the Include not being acted upon. Apache
was built with the "so" module enabled, and putting a spurious
filename within the <IfModule mod_so.c> configuration directive
successfully generates an error message when
/usr/local/apache/bin/apachectl configtest
is run.
I am running Linux on my machine. I have Java 1.3 installed,
and it is Tomcat 3.1 I am trying to get working with Apache
1.3.14
--
=========================================================================
Graham Freeman [EMAIL PROTECTED]
Department of Computer Science, Australian Defence Force Academy
Phone +61-2-6268 8186 Fax +61-2-6268 8581
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search Archives:
<http://www.mail-archive.com/java-apache-users%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search Archives:
<http://www.mail-archive.com/java-apache-users%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]