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,    there    are    no
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"/>

        <Context    path="/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">
               <parameter><name>user</name><value>sa</value></parameter>
               <parameter><name>password</name><value></value></parameter>
               <parameter><name>driverClassName</name>
               <value>org.hsql.jdbcDriver</value></parameter>
               <parameter><name>driverName</name>
               <value>jdbc:HypersonicSQL:database</value></parameter>
           </ResourceParams>
            <Resource name="mail/Session" auth="Container" type
="javax.mail.Session"/>
            <ResourceParams name="mail/Session">
               <parameter> <name>mail.smtp.host</name>
                <value>localhost</value>
               </parameter>
            </ResourceParams>
        </Context>

      </Host>

This is the directory listing for /home/www/biigweb:
drwxrwxr-x    4 root     core         4096 Jul  9 12:49 .
drwxr-xr-x    3 mpauley  mpauley      4096 Jun  3 15:35 ..
drwxrwxr-x    2 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-x    4 dquest   core         4096 Jan 10 21:50 SeqAlnPkgHTML

And for /bioinformatics/webapps/bioinformatics
drwxrwxr-x    6 root     core         4096 Jul  9 11:56 .
drwxrwxr-x   14 root     core         4096 May  7 12:02 ..
-rw-rw-r--    1 root     core            0 May  7 12:17 bioinformaticsHTML
-rw-rw-r--    1 root     core          268 May  7 12:17 bioinformatics.js
-rw-rw-r--    1 root     core         3036 May  7 12:17 cleanGene.jsp
-rw-rw-r--    1 root     core         2447 May  7 12:17 cleanGeneL0.jsp
-rw-rw-r--    1 root     core         4046 May  7 12:17 cleanGeneL1.jsp
-rw-rw-r--    1 root     core         6549 May  7 12:17 cleanGeneL2.jsp
-rw-rw-r--    1 root     core         2910 Jan  9 15:44 ConfAlg.html
-rw-rw-r--    1 root     core         1105 Jan  9 15:44 ConfDatabase.html
-rw-rw-r--    1 root     core         1504 Jan  9 15:44 ConfDisp.html
-rw-rw-r--    1 root     core         5419 May  7 12:17 contactUs.jsp
drwxrwxr-x    2 root     core         4096 Jan  9 15:44 docs
-rw-rw-r--    1 root     core          491 May  7 12:17 education.jsp
-rw-rw-r--    1 root     core         1632 May  7 12:17 events.jsp
-rw-rw-r--    1 root     core         2416 May  7 12:17 footer.jsp
-rw-rw-r--    1 root     core        25627 May  7 12:17
globalstylesheet.css
-rw-rw-r--    1 root     core         2568 May  7 12:17 header.jsp
drwxrwxr-x    2 root     core         4096 Jul  2 11:55 images
-rw-rw-r--    1 root     core         1955 May  7 12:17 index.jsp
-rw-rw-r--    1 root     core         1646 Jan  9 15:47 indexOLD.html
-rw-rw-r--    1 root     core          303 May  7 12:17 links.jsp
-rw-rw-r--    1 root     core         6797 May  7 12:17 mailingList.jsp
-rw-rw-r--    1 root     core            0 May  7 12:17 META-INF
-rw-rw-r--    1 root     core          789 May  7 12:17 pageStyle.css
-rw-rw-r--    1 root     core         1347 May  7 12:17 papers.jsp
drwxrwxr-x    2 root     core         4096 May  7 12:13 pngFiles
-rw-rw-r--    1 root     core          617 May  7 12:17 research.jsp
-rw-rw-r--    1 root     core         1797 Dec 22  2001 result.html
-rw-rw-r--    1 root     core         3491 Jul  2 11:54 sqlQuery.jsp
-rw-rw-r--    1 root     core         3085 May  7 12:17 testPage.jsp
-rw-rw-r--    1 mpauley  mpauley        16 Jun 27 15:15 test.txt
-rw-rw-r--    1 root     core         1302 May  7 12:17 threeParamsForm.jsp
-rw-rw-r--    1 root     core         1009 Jul  9 11:55 tools.jsp
drwxrwxr-x    4 root     core         4096 Jan  3  2002 WEB-INF


Again, any help would be greatly appreciated.

(See attached file: httpd.conf)(See attached file: server.xml)

Mark

----------------------------
Mark A. Pauley, Ph.D.
College of Information Science & Technology, UNO
Omaha, NE 68182-0116
e-mail:  [EMAIL PROTECTED]
phone:  (402) 554-4954  fax:  (402) 554-3284


 

                      José Montiel

                      <jmontiel@manduca        To:
<[EMAIL PROTECTED]>                                                 
                      .com>                    cc:

                                               Subject:  RE: HTTP Status 500
- No Context configured to process this request        
                      07/09/2002 02:05

                      PM

 

 





Hi Mark,


 I just saw your email, I'll check it tonight at home, I'm
overwhelmed with work right now :(

bye

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
Sent: Domingo, 07 de Julio de 2002 07:50 a.m.
To: Tomcat Users List
Subject: re: HTTP Status 500 - No Context configured to process this
request

Hi (Jose),

Had  to  put this aside as I was gone over the holiday weekend; I'm back
at
it again.

I  forgot  to give you one very important piece of information regarding
my
setup:   tomcat is installed to /var/tomcat4 and the jsp that we are
trying
to  use tomcat for is in /bioinformatics/webapps/bioinformatics (and
again,
we want to use the URL
http://bioinformatics.ist.unomaha.edu/bioinformatics
to  access  it;  note the lack of a port).  Based on this I'm assuming
that
Docs    would    be   /bioinformatics/webapps/   and   Manager   would
be
/var/tomcat4/work/localhost/manager (where it exists in my install).

For  your reference, here are the relevant (uncommented-out) portions of
my
server.xml  file  and  Apache  httpd.conf  file.   One  immediate
question:
should I be changing "localhost" to the DNS name of the machine?

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"/>

        <Context    path="/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">
            <parameter><name>user</name><value>sa</value></parameter>
            <parameter><name>password</name><value></value></parameter>
            <parameter><name>driverClassName</name>
              <value>org.hsql.jdbcDriver</value></parameter>
            <parameter><name>driverName</name>
              <value>jdbc:HypersonicSQL:database</value></parameter>
          </ResourceParams>
          <Resource name="mail/Session" auth="Container"
                    type="javax.mail.Session"/>
          <ResourceParams name="mail/Session">
            <parameter>
              <name>mail.smtp.host</name>
              <value>localhost</value>
            </parameter>
          </ResourceParams>
        </Context>

      </Host>

httpd.conf

<VirtualHost 137.48.138.201>
    ServerName bioinformatics.ist.unomaha.edu
    ServerAlias bioinformatics.unomaha.edu
    DocumentRoot "/bioinformatics/webapps"
    DirectoryIndex index.jsp index.html
</VirtualHost>

Again,  with  the  current configuration, the jsp works but the manager
and
examples contexts don't.

Mark

----------------------------
Mark A. Pauley, Ph.D.
Senior Research Fellow
Instructor, Department of Computer Science
College of Information Science & Technology, UNO
Omaha, NE 68182-0116
e-mail:  [EMAIL PROTECTED]
phone:  (402) 554-4954  fax:  (402) 554-3284



Content-Transfer-Encoding: 7bit
From: =?iso-8859-1?Q?Jos=E9_Montiel?= <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Subject: RE: HTTP Status 500 - No Context configured to process this
request
Date: Tue, 2 Jul 2002 13:36:02 -0400
Message-ID: <004701c221ee$f09c3fa0$6900030a@jmontiel>
MIME-Version: 1.0
Content-Type: text/plain;     charset="iso-8859-1"

Hi Mark,

 Ok I'm not totally clear with you set up, but try this

 Your context in Tomcat should look like this

<Context  path="/manager"
          docBase="/bioinformatics/webapps/manager"
          debug="0"
          privileged="true" />


 if it doesn't work try this

<Context  path="/bioinformatics/manager"
          docBase="/bioinformatics/webapps/manager"
          debug="0"
     privileged="true" />



If this doesn't work please send me your entire conf directory, where
server.xml file is, and your httpd.conf file of Apache. Also explain me
the structure of you file system (ex. Docs: /bioinformatics/webapps,
manager: /bioinformatics/webapps/manager, etc)


I'm sending my server.xml file so you can take a look at it. my files
are in

 /home/inmuebles/docs/             - site files (HTML, JSP, GIF
etc)
 /home/inmuebles/webapps/manager   - manager app



About the other questions

 1.- Tomcat can work Stand Alone, it is just not so efficient
delivering HTML content for what I have read, but in my dev box I have
it running Stand Alone (No Apache at all). If you want to set up Apache
with tomcat you have to configure the connector AJP or WARP, there are
more docs for AJP connector. Virtual Hosts has nothing to do with this.

 2.-When you connect to
http://bioinformatics.ist.unomaha.edu:8180, you are probably connecting
directly to Tomcat bypassing Apache, and if you set up the connector
mentioned above you will not have to specify the port.

 3.- I don't really know if a WEB_INF is required, I have always
had it since I work with JSP pages. I any case it doesn't do any harm to
have that directory and even the web.xml file that is supposed to be
there.




--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>





---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.372 / Virus Database: 207 - Release Date: 20/06/02
 
      

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.372 / Virus Database: 207 - Release Date: 20/06/02
 

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to