Hi All,

Stopping and Starting Apache seems to have fixed this problem.

Thanks for your time,


From: "Anthony Gray" <[EMAIL PROTECTED]>
Reply-To: "Tomcat Users List" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: disable tomcat default root path
Date: Tue, 13 Jan 2004 07:34:17 +1000

Hi All,

I'm trying to get Tomcat 5 working with Apache 2 via the Coyote/JK2 AJP 1.3 Connector but even though I have defined an "appBase" and a Context with "path" and "docBase" inside a set of Host directives, Tomcat/Apache seems to continue to look in a default path
(namely <tomcat-home>/server/webapps/) for my application. I've checked the config files in my tomcat conf directory but can't find where this is defined. I can see in the Apache logs that the path to the application is incorrect.


Note : Tomcat 5, Apache 2, mod_jk2 and Redhat 7.3.

I realise this is probably a very simple thing but I just can't see it,

I'll paste my server.xml at the bottom in case you want to view it,

TIA,

Anthony


*********************
server.xml
*********************
<Server port="8005" shutdown="SHUTDOWN" debug="2">
<!-- Define an Apache-Connector Service -->
<Listener className="org.apache.catalina.mbeans.ServerLifecycleListener" />
<Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
" />


<!-- Global JNDI resources -->
 <GlobalNamingResources>

   <!-- Test entry for demonstration purposes -->
   <Environment name="simpleValue" type="java.lang.Integer" value="30"/>

   <!-- Editable user database that can also be used by
       UserDatabaseRealm to authenticate users -->
   <Resource name="UserDatabase" auth="Container"
             type="org.apache.catalina.UserDatabase"
      description="User database that can be updated and saved">
   </Resource>
   <ResourceParams name="UserDatabase">
     <parameter>
<name>factory</name>
       <value>org.apache.catalina.users.MemoryUserDatabaseFactory</value>
     </parameter>
     <parameter>
       <name>pathname</name>
       <value>conf/tomcat-users.xml</value>
     </parameter>
   </ResourceParams>

</GlobalNamingResources>

<Service name="Catalina">
<!-- Define a non-SSL Coyote HTTP/1.1 Connector on port 8080 -->
   <Connector port="8080"
              enableLookups="false"
              redirectPort="8443"
              acceptCount="100"
              connectionTimeout="20000"
              disableUploadTimeout="true"/>

<!-- Define a Coyote/JK2 AJP 1.3 Connector on port 8009 -->
   <Connector
port="8009" minProcessors="5" maxProcessors="75"
              enableLookups="true" redirectPort="8443"
              acceptCount="10" debug="1" connectionTimeout="20000"
              useURIValidationHack="false"
              protocol="AJP/1.3"/>

<Engine name="Catalina" defaultHost="localhost" debug="2">

     <Logger className="org.apache.catalina.logger.FileLogger"
             prefix="apache_log." suffix=".txt"
             timestamp="true"/>
       <Host name="test2.foo.bar" debug="0"
               appBase="/home/anthony/www/jsp"
               unpackWARs="true" autoDeploy="true">
               <Context path="/" docBase="." debug="1"/>

               <Logger className="org.apache.catalina.logger.FileLogger"
               directory="logs"
               prefix="test2_log."
               suffix=".txt"
               timestamp="true"/>
       </Host>
   </Engine>
 </Service>
</Server>
*********************

_________________________________________________________________
E-mail just got a whole lot better. New ninemsn Premium. Click here http://ninemsn.com.au/premium/landing.asp



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


_________________________________________________________________
E-mail just got a whole lot better. New ninemsn Premium. Click here http://ninemsn.com.au/premium/landing.asp



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



Reply via email to