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.



************************************************************************
****
SERVER.XML
==========
<Server port="8005" shutdown="SHUTDOWN" debug="0">
  <Service name="Tomcat-Standalone">
    <!-- Define a non-SSL HTTP/1.1 Connector on port 8080 -->
    <Connector
className="org.apache.catalina.connector.http.HttpConnector"
               port="8040" minProcessors="5" maxProcessors="75"
               enableLookups="true" redirectPort="8443"
               acceptCount="10" debug="6" connectionTimeout="60000"/>
    <!-- Define the top level container in our container hierarchy -->
    <Engine name="Standalone" defaultHost="localhost" debug="6">
      <!-- Global logger unless overridden at lower levels -->
      <Logger className="org.apache.catalina.logger.FileLogger"
              prefix="catalina_log." suffix=".txt"
              timestamp="true"/>
      <Realm className="org.apache.catalina.realm.MemoryRealm" />
      <!-- Define the default virtual host -->
      <Host name="localhost" debug="6" appBase="/home/inmuebles/docs"
unpackWARs="true">
        <Valve className="org.apache.catalina.valves.AccessLogValve"
                 directory="logs"  prefix="PP_access_log." suffix=".txt"
                 pattern="common"/>
        <Logger className="org.apache.catalina.logger.FileLogger"
                 directory="logs"  prefix="localhost_log." suffix=".txt"
                timestamp="true"/>
        <!-- Tomcat Root Context -->
          <Context path="" docBase="" debug="6"/>
          <Context path="/manager"
docBase="/home/inmuebles/webapps/manager" debug="6" privileged="true"/>
      </Host>
    </Engine>
 </Service>
</Server>

I acces this site using http://10.3.0.241:8080
And the manager app http://10.3.0.241:8080/manager/list


************************************************************************
************************************************************************
********




-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] 
Sent: Martes, 02 de Julio de 2002 11:41 a.m.
To: Tomcat Users List
Cc: [EMAIL PROTECTED]
Subject: Re: HTTP Status 500 - No Context configured to process this
request

Hi (Jose),

I  made  the  changes  you suggested but I'm still having problems.  Let
me
give you a little more background:

The  website  we  would  like  to  drive  using  tomcat4  is located in
the
/bioinformatics/webapps/bioinformatics directory (again, we're using
RedHat
Linux 7.3; I don't think it matters but /bioinformatics is a RAID 0
drive).
Since  it  is possible that other websites might be developed in the
future
that     need     tomcat     we     want     to     access     it
using
http://bioinformatics.ist.unomaha.edu/bioinformatics.   Thus,  lines
198 -
201 in my server.xml file now look like this

<!--
    <Context path="" docBase="ROOT" debug="0"/>
-->
    <Context  path="/var/tomcat4"  docBase="/bioinformatics/webapps"
debug
="0"/>

Note  that  bioinformatics.ist.  . . is a VirtualHost in Apache,
configured
thusly,

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

Now  for  the  problem that we're having:  The website itself seems to
work
but    I    cannot   access   any   of   the   manager   functions;
e.g.,
http://bioinformatics.ist.unomaha.edu:8180/bioinformatics/manager/list.
I
have  modified  the  tomcat-users.xml file to contain a user "admin"
with a
role of "manager."  This is the error message that I get:

Apache Tomcat/4.0.3 - HTTP Status 404 - /manager/list

------------------------------------------------------------------------
--------

type Status report

message /manager/list

description The requested resource (/manager/list) is not available.

Any  help  you  could  provide  to help solve this problem would be
greatly
appreciated.

Other general questions (if you have time):
1)  I  know  that  tomcat  can not stand alone and requires Apache to
work.
   However,  in  our  case,  how  do they interact?  Do we need to set
up a
   VirtualHost?
2)  My  understanding  is that we need to specify the port when
accessing a
   tomcat-enabled website, e.g.,
http://bioinformatics.ist.unomaha.edu:8180
   .   Is this true?  If so, is there any way to configure Apache/Tomcat
so
   that the port number is NOT required?
3) Right now, all we have done is to use some include file statements in
an
   otherwise  static webpage.  In this case, do we need a WEB-INF
directory
   in .../bioinformatics?
4)  We  have not deployed anything but our application seems to work.
When
   is deploying necessary?

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
 

            tomcat-user-digest-help@jakarta

            .apache.org                             To:
[EMAIL PROTECTED]                                          
                                                    cc:

            07/01/2002 10:59 AM                     Subject: tomcat-user
Digest 1 Jul 2002 15:59:30 -0000 Issue 980                 
            Please respond to "Tomcat Users

            List"

 

 





Hi Mark,

Your server.xml looks fine.

Question which URL are you trying to access?

If you are trying to access http://localhost/ you will get this
error because there is no context defined to answer this request, only
request of the form

http://localhost/examples/*******

and

http://localhost/manager/*******

will be answered since they are the only two context defined

If that is the case, do the following

Replace line 198 -200

<!--
    <Context path="" docBase="ROOT" debug="0"/>
-->

for

<Context path="/bioinformatics" docBase="bioinformatics" debug="0"/>

which will create a context "/bioinformatics", so you can access it
using
http://localhost/bioinformatics/

Or you can setup this app as the default context as follows

Replace line 198 -200

<!--
    <Context path="" docBase="ROOT" debug="0"/>
-->

for

<Context path="/" docBase="bioinformatics" debug="0"/>

which will create a context "/", so you can access it using
http://localhost/

well, I hope this helps you, let me know how it goes



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


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

Reply via email to