one possible solution

$CATALINA_HOME/conf/[enginename]/[hostname]/ROOT.xml
where
<Context docBase=”/my-path/applicationName.war ” />
/*docBase is "an absolute pathname for this directory or WAR file, or a pathname
        that is relative to the appBase directory of the
        owning Host."*/

the reference for Context element and attribute documentation at
http://tomcat.apache.org/tomcat-5.5-doc/config/context.html

an example of configuring ROOT.xml is available at
http://benhutchison.wordpress.com/2008/07/30/how-to-configure-tomcat-root-context/

the manager webappmyust be loaded before ROOT.war 
manager must be working first
use manager to upload ROOT.war

a howto on howto use Manager webapp to upload ROOT.war is available at
http://tomcat.apache.org/tomcat-5.5-doc/manager-howto.html#Configuring%20Manager%20Application%20Access

this is only one proposal feel free to solicit other solutions fromlist
hth
Martin Gainty 
______________________________________________ 
Do not alter/modify or disrupt this transmission. Thank You




> Subject: Using administration url in application
> Date: Fri, 25 Sep 2009 15:00:33 -0400
> From: michael.zeit...@usdoj.gov
> To: users@tomcat.apache.org
> 
> Hello,
> 
>     I have configured a Tomcat 5.5 server on and deployed my application
> onto in the root context.   The application works successfully,  except
> when I try to use anything with that starts with the  /admin url
> pattern.  My guess is that Tomcat thinks I am trying to reach the Web
> Administration module and it throws up a 404 error.
> 
>    I would like to tell tomcat to use a different url for its web
> administration module so I can use it on my application.  I have tried
> going into my admin.xml file and modifying the Context entry to use a
> different path:
> 
> <Context path="/admin1"
> docBase="/usr/share/tomcat5.5/server/webapps/admin"     
>          debug="0" privileged="true" allowLinking="true">
> 
>    I have also tried totally removing the admin.xml file.  Neither has
> worked.  
> 
>   Any help would be appreciated
> 
> Michael
> 
                                          
_________________________________________________________________
Hotmail® has ever-growing storage! Don’t worry about storage limits.
http://windowslive.com/Tutorial/Hotmail/Storage?ocid=TXT_TAGLM_WL_HM_Tutorial_Storage_062009

Reply via email to