Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Struts - A MVC web framework
Tomcat - JSP/Servlet container
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
JSP - A mailing list about Java Server Pages specification and reference
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Oracle Connection Pooling in 3 2 2
Servlet : Session invalidate
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Tomcat and webapplication specific java library path
Running a Simple JMS Example
Mapping in workers2 properties
org apache jasper JasperException
Cannot find message resources under key org apache struts action
   MESSAGE
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
url string for connecting jboss to oracle
Value attribute of <html:checkbox
javax servlet ServletException: BeanUtils populate
HTTP Status 404 The requested resource is not available
5 0 18: Windows XP Pro vs Windows 2000
 
disable tomcat default root path

disable tomcat default root path

2004-01-12       - By Anthony Gray

 Back
Reply:     1     2  

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 Source code of org.apache.catalina.mbeans.ServerLifecycleListener" />
<Listener
className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener Source code of org.apache.catalina.mbeans.GlobalResourcesLifecycleListener
" />

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

   <!-- Test entry for demonstration purposes -->
   <Environment name="simpleValue" type="java.lang.Integer Source code of 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 Source code of 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 Source code of 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: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)




©2008 junlu.com - Jax Systems, LLC, U.S.A.