RE: Tomcat w/ Apache Configuration Issues == Please Help
I've just read through your httpd.conf file and as far as I can see you haven't integrated tomcat and apache at all. You will need to load either mod_webapp or mod_jk to connect them together. These will associate tomcat with one or more virtual directories in just the way you want. You can then disable the tomcat stand-alone connector so it can't be accessed on 8080. You should have a look at previous threads here on mod_webapp, mod_jk and mod_jk2. Our own application currently runs on apache 1.3 and tomcat 3.2.3 using mod_jk and that works very well. Only servlet and .jsp requests get forwarded to tomcat, the rest are handled directly by apache. I'm currently experimenting with tomcat 4.03 but the integration with apache 1.3 is trickier. I've found mod_webapp easy to set up but flaky, while mod_jk is tricky to get going. However, the tomcat handling of static pages is faster so we might just drop Apache. Hope this helps Best Wishes John Burgess [EMAIL PROTECTED] Tel: 01865 718666 Fax: 01865 718600 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Sunday, July 14, 2002 2:50 PM To: [EMAIL PROTECTED] Subject: Tomcat w/ Apache Configuration Issues == Please Help Hi All, I'm relatively new to Tomcat and I'm having a couple of vexing Tomcat w/ Apache configuration issues. Any help in solving these problems would be greatly appreciated. First, the particulars: Tomcat 4.0 is running with Apache 1.3 on a RedHat Linux (7.3) Intel machine (P4; 1.5 GB). Tomcat was installed via RPMs to /var/tomcat4. The JSPs that we want to serve with Tomcat are located in /bioinformatics/webapps/bioinformatics;currently,thereareno subdirectories off of this directory. Apache is configured with a main server (DocumentRoot /home/www/biigweb; ServerName biigserver.ist.unomaha.edu) and a VirtualHost which points to the directory that contains our JSPs and has the ServerName bioinformatics.ist.unomaha.edu. I am having two major problems: 1) Although our JSPs run correctly, neither the list nor the manager contexts do. 2) Tomcat is apparently intercepting ALL httpd requests. For example, the address http://biigserver.ist.unomaha.edu/ tries to access the same directory that Tomcat is tied to. Besides, these problems, I have two other general questions. First, is it possible to configure Tomcat so that the port number does not have to be specified in the URL?Specifically, we would like to use http://bioinformatics.ist.unomaha.edu/bioinformatics to access our JSPs. Second, in server.xml, do I need to change localhost to the DNS name of the machine? Relevant portions of error.log (Apache), httpd.conf (Apache) and server.xml (Tomcat) are below. httpd.conf and server.xml are attached in their entirety. Relevant portion of error.log: Tue Jul 9 12:53:49 2002] [error] [client 137.48.131.225] File does not exist: /bioinformatics/webapps/index.html [Tue Jul 9 12:53:50 2002] [error] [client 137.48.131.225] File does not exist: /bioinformatics/webapps/index.html [Tue Jul 9 12:54:00 2002] [error] [client 137.48.131.225] Directory index forbi dden by rule: /bioinformatics/webapps/ [Tue Jul 9 12:55:26 2002] [error] [client 137.48.131.225] Directory index forbi dden by rule: /bioinformatics/webapps/ [Tue Jul 9 13:03:46 2002] [error] [client 137.48.131.225] Directory index forbi dden by rule: /bioinformatics/webapps/ [Tue Jul 9 13:03:48 2002] [error] [client 137.48.131.225] Directory index forbi dden by rule: /bioinformatics/webapps/ Relevant portion of httpd.conf: ### Section 2: 'Main' server configuration ... ServerName biigserver.ist.unomaha.edu DocumentRoot /home/www/biigweb Directory / Options FollowSymLinks AllowOverride None /Directory Directory /home/www/biigweb Options Indexes Includes FollowSymLinks Options ExecCGI AllowOverride AuthConfig Order allow,deny Allow from all /Directory Relevant portion of server.xml: Host name=localhost debug=0 appBase=webapps unpackWARs=true Valve className=org.apache.catalina.valves.AccessLogValve directory =logs prefix=localhost_access_log. suffix =.txt pattern=common/ Logger className=org.apache.catalina.logger.FileLogger directory =logs prefix=localhost_log. suffix=.txt timestamp=true/ Contextpath=/var/tomcat4 docBase=/bioinformatics/webapps debug=0/ !-- Tomcat Manager Context -- Context path=/manager docBase=manager debug=0 privileged =true/ !-- Tomcat Examples Context -- Context path=/examples docBase=examples debug=0 reloadable =true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_examples_log. suffix=.txt timestamp=true/ Ejb name=ejb/EmplRecord type=Entity home =com.wombat.empl.EmployeeRecordHome
Re: Tomcat w/ Apache Configuration Issues == Please Help
I am having two major problems: 1) Although our JSPs run correctly, neither the list nor the manager contexts do. You have to define a user and a role in tomcat-users.conf like this: 2) Tomcat is apparently intercepting ALL httpd requests. For example, the address http://biigserver.ist.unomaha.edu/ tries to access the same directory that Tomcat is tied to. Besides, these problems, I have two other general questions. First, is it possible to configure Tomcat so that the port number does not have to be specified in the URL?Specifically, we would like to use http://bioinformatics.ist.unomaha.edu/bioinformatics to access our JSPs. Second, in server.xml, do I need to change localhost to the DNS name of the machine? Relevant portions of error.log (Apache), httpd.conf (Apache) and server.xml (Tomcat) are below. httpd.conf and server.xml are attached in their entirety. Relevant portion of error.log: Tue Jul 9 12:53:49 2002] [error] [client 137.48.131.225] File does not exist: /bioinformatics/webapps/index.html [Tue Jul 9 12:53:50 2002] [error] [client 137.48.131.225] File does not exist: /bioinformatics/webapps/index.html [Tue Jul 9 12:54:00 2002] [error] [client 137.48.131.225] Directory index forbi dden by rule: /bioinformatics/webapps/ [Tue Jul 9 12:55:26 2002] [error] [client 137.48.131.225] Directory index forbi dden by rule: /bioinformatics/webapps/ [Tue Jul 9 13:03:46 2002] [error] [client 137.48.131.225] Directory index forbi dden by rule: /bioinformatics/webapps/ [Tue Jul 9 13:03:48 2002] [error] [client 137.48.131.225] Directory index forbi dden by rule: /bioinformatics/webapps/ Relevant portion of httpd.conf: ### Section 2: 'Main' server configuration ... ServerName biigserver.ist.unomaha.edu DocumentRoot /home/www/biigweb Directory / Options FollowSymLinks AllowOverride None /Directory Directory /home/www/biigweb Options Indexes Includes FollowSymLinks Options ExecCGI AllowOverride AuthConfig Order allow,deny Allow from all /Directory Relevant portion of server.xml: Host name=localhost debug=0 appBase=webapps unpackWARs=true Valve className=org.apache.catalina.valves.AccessLogValve directory =logs prefix=localhost_access_log. suffix =.txt pattern=common/ Logger className=org.apache.catalina.logger.FileLogger directory =logs prefix=localhost_log. suffix=.txt timestamp=true/ Contextpath=/var/tomcat4 docBase=/bioinformatics/webapps debug=0/ !-- Tomcat Manager Context -- Context path=/manager docBase=manager debug=0 privileged =true/ !-- Tomcat Examples Context -- Context path=/examples docBase=examples debug=0 reloadable =true Logger className=org.apache.catalina.logger.FileLogger prefix=localhost_examples_log. suffix=.txt timestamp=true/ Ejb name=ejb/EmplRecord type=Entity home =com.wombat.empl.EmployeeRecordHome remote=com.wombat.empl.EmployeeRecord/ Manager className =org.apache.catalina.session.PersistentManager debug=0 saveOnRestart=true maxActiveSessions=-1 minIdleSwap=-1 maxIdleSwap=-1 maxIdleBackup=-1 Store className=org.apache.catalina.session.FileStore/ /Manager -- Environment name=maxExemptions type=java.lang.Integer value=15/ Parameter name=context.param.name value=context.param.value override=false/ Resource name=jdbc/EmployeeAppDb auth=SERVLET type =javax.sql.DataSource/ ResourceParams name=jdbc/EmployeeAppDb parameternameuser/namevaluesa/value/parameter parameternamepassword/namevalue/value/parameter parameternamedriverClassName/name valueorg.hsql.jdbcDriver/value/parameter parameternamedriverName/name valuejdbc:HypersonicSQL:database/value/parameter /ResourceParams Resource name=mail/Session auth=Container type =javax.mail.Session/ ResourceParams name=mail/Session parameter namemail.smtp.host/name valuelocalhost/value /parameter /ResourceParams /Context /Host This is the directory listing for /home/www/biigweb: drwxrwxr-x4 root core 4096 Jul 9 12:49 . drwxr-xr-x3 mpauley mpauley 4096 Jun 3 15:35 .. drwxrwxr-x2 root core 4096 Jan 14 12:15 biocore -rw-rw-r--1 root root 2684 Jan 7 2002 indexBAK.html -rw-rw-r--1 dquest core 4382 Mar 16 13:20 index.html -rw-rw-r--1 dquest dquest 4382 Mar 16 13:20 indexOLD.html drwxrwxr-x4 dquest core 4096 Jan 10 21:50 SeqAlnPkgHTML And for /bioinformatics/webapps/bioinformatics drwxrwxr-x6
Re: Tomcat w/ Apache Configuration Issues == Please Help
Hi, my first was to fast (CRTL+Enter). :) I am having two major problems: 1) Although our JSPs run correctly, neither the list nor the manager contexts do. You have to define a user and role like this: user name=administrator password=adminpass roles=manager/ 2) Tomcat is apparently intercepting ALL httpd requests. For example, the address http://biigserver.ist.unomaha.edu/ tries to access the same directory that Tomcat is tied to. Mm. No idea. Cheers, Nick -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED]