My environment is slightly different (Windows XP Professional with NTFS
file system, Tomcat 5.5.25), and the steps I used to deploy are a little
different.
The steps which I took to test my theory before posting:
- shutdown Tomcat
- remove all traces of my application
- copy drop root.war into webapps
- restart Tomcat
The war is exploded into a directory named root - lowercase, and is only
accessible under the http://host/root URL.
The joys of Windoze?
--
Stephen
Martin Gainty wrote:
I was curious what happened if I followed stephen's advice
environment: TC 5.5.17
undeploy 'root'OK - Undeployed application at context path/root
%CATALINA_HOME%\webapps>del ROOT
%CATALINA_HOME%\webapps\ROOT\*, Are you sure (Y/N)? yes
(now the environment is clean)
tc-manager http://host:8080/manager/ deploy (lowercase) root.war
see attached root-war.jpg
then produce tc-manager listing
see attached root_listing.jpg
when I access http://host:8080/root/
I see the tomcat index.jsp main page
If you're seeing this page via a web browser, it means you've setup Tomcat
successfully. Congratulations!
command line
%CATALINA_HOME%\webapps>dir ROOT
Volume in drive F is DRV4_VOL1
Volume Serial Number is F8AC-7975
Directory of %CATALINA_HOME%\webapps\ROOT
12/17/2007 02:55p <DIR> .
12/17/2007 02:55p <DIR> ..
12/17/2007 02:55p <DIR> WEB-INF
so when I deployed lowercase root.war TC deployed as
uppercase ROOT!
how do account for that?
Martin--
Message -----
From: "Stephen Souness" <[EMAIL PROTECTED]>
To: <users@tomcat.apache.org>
Sent: Monday, December 17, 2007 2:31 PM
Subject: Re: Trying to Map a web application to "/" in tomcat 5.5
Martin Gainty wrote:
If you are front-ending with Apache you can use RewriteRule
http://mail-archives.apache.org/mod_mbox/tomcat-users/200608.mbox/%3Cecdskn$
[EMAIL PROTECTED]
Have you considered deploying your application as root.war?
NB: ROOT.war is the filename that Tomcat looks for as the root
application.
Having incorrect case in the filename root.war would result in the
application under, using the OP's example,
http://hostname:6293/root
--
Stephen
http://tomcat.apache.org/tomcat-5.5-doc/manager-howto.html
Does this help?
Martin--
----- Original Message -----
From: "Aakriti" <[EMAIL PROTECTED]>
To: <users@tomcat.apache.org>
Sent: Monday, December 17, 2007 11:18 AM
Subject: Trying to Map a web application to "/" in tomcat 5.5
Hi,
We are trying to Map the URl of our tomcat instance such that the
webapp
"appadmin" maps to "/"
The tomcat version being used is tomcat 5.5.17
We are trying to do this by specifying the following in server.xml
<Service name="Catalina">
<Connector port="6293" />
<!-- This is here for compatibility only, not required -->
<Connector port="8017" protocol="AJP/1.3" />
<Engine name="Catalina" defaultHost="localhost">
<!-- <Realm
className="org.apache.catalina.realm.UserDatabaseRealm"
resourceName="UserDatabase" /> crossContext="false" -->
<Host name="localhost" appBase="webapps" unpackWars="true"
autoDeploy="true">
<Valve className="com.cisco.manager.impl.ManagerValve" />
<Context docBase="/appadmin" path="/appadmin" reloadable="true"
wrapperClass="org.apache.catalina.core.StandardWrapper">
<Valve className="com.cisco.uccx.UccxAuthenticator"
characterEncoding="UTF-8"/>
<Realm className="com.cisco.uccx.UccxRealm"/>
</Context>
</Host>
</Engine>
</Service>
But when we try to navigate to a servlet mapped to the URL pattern
/appadmin/Main (specified in web.xml), we are not able to reach it
using
http://hostname:6293/appadmin/Main. We still have to use
http://hostname:6293/appadmin/appadmin/Main
The same use to work in Tomcat 3.2. We are in the process of migrating
to
tomcat 5.5.
Also we are using form based authentication where the url pattern is
specified as /appadmin/* as most of our URL patterns start with
/appadmin/..
in web.xml
Any idea on what we are doing wrong?
Regards
Aakriti
--
View this message in context:
http://www.nabble.com/Trying-to-Map-a-web-application-to-%22-%22-in-tomcat-5
5-tp14372571p14372571.html
Sent from the Tomcat - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
----------------------------------------------------------------------------
----
----------------------------------------------------------------------------
----
----- Original Message -----
From: "Stephen Souness" <[EMAIL PROTECTED]>
To: <users@tomcat.apache.org>
Sent: Monday, December 17, 2007 2:31 PM
Subject: Re: Trying to Map a web application to "/" in tomcat 5.5
Martin Gainty wrote:
If you are front-ending with Apache you can use RewriteRule
http://mail-archives.apache.org/mod_mbox/tomcat-users/200608.mbox/%3Cecdskn$
[EMAIL PROTECTED]
Have you considered deploying your application as root.war?
NB: ROOT.war is the filename that Tomcat looks for as the root
application.
Having incorrect case in the filename root.war would result in the
application under, using the OP's example,
http://hostname:6293/root
--
Stephen
http://tomcat.apache.org/tomcat-5.5-doc/manager-howto.html
Does this help?
Martin--
----- Original Message -----
From: "Aakriti" <[EMAIL PROTECTED]>
To: <users@tomcat.apache.org>
Sent: Monday, December 17, 2007 11:18 AM
Subject: Trying to Map a web application to "/" in tomcat 5.5
Hi,
We are trying to Map the URl of our tomcat instance such that the
webapp
"appadmin" maps to "/"
The tomcat version being used is tomcat 5.5.17
We are trying to do this by specifying the following in server.xml
<Service name="Catalina">
<Connector port="6293" />
<!-- This is here for compatibility only, not required -->
<Connector port="8017" protocol="AJP/1.3" />
<Engine name="Catalina" defaultHost="localhost">
<!-- <Realm
className="org.apache.catalina.realm.UserDatabaseRealm"
resourceName="UserDatabase" /> crossContext="false" -->
<Host name="localhost" appBase="webapps" unpackWars="true"
autoDeploy="true">
<Valve className="com.cisco.manager.impl.ManagerValve" />
<Context docBase="/appadmin" path="/appadmin" reloadable="true"
wrapperClass="org.apache.catalina.core.StandardWrapper">
<Valve className="com.cisco.uccx.UccxAuthenticator"
characterEncoding="UTF-8"/>
<Realm className="com.cisco.uccx.UccxRealm"/>
</Context>
</Host>
</Engine>
</Service>
But when we try to navigate to a servlet mapped to the URL pattern
/appadmin/Main (specified in web.xml), we are not able to reach it
using
http://hostname:6293/appadmin/Main. We still have to use
http://hostname:6293/appadmin/appadmin/Main
The same use to work in Tomcat 3.2. We are in the process of migrating
to
tomcat 5.5.
Also we are using form based authentication where the url pattern is
specified as /appadmin/* as most of our URL patterns start with
/appadmin/..
in web.xml
Any idea on what we are doing wrong?
Regards
Aakriti
--
View this message in context:
http://www.nabble.com/Trying-to-Map-a-web-application-to-%22-%22-in-tomcat-5
5-tp14372571p14372571.html
Sent from the Tomcat - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]