RE: Setting Context Path in Tomcat

2009-08-12 Thread carbotex

Sorry, I got too excited. I'm running Tomcat 5.5.27. Thank you Charles for
you quick response.


Caldarale, Charles R wrote:
 
 From: carbotex [mailto:carbo...@gmail.com]
 Subject: Setting Context Path in Tomcat
 
 How do one go about setting tomcat in this kind of environment?
 
 First by telling us what version of Tomcat you're using.  Since you didn't
 bother to do that, I'll base the response on 6.0.20.
 
 http://www.clienthost.com/group1/app1/index.jsp
 http://www.clienthost.com/group1/app2/index.jsp
 http://www.clienthost.com/group1/app3/index.jsp
 
 Change the names of the .war files to group1#app1.war, group1#app2.war,
 and group1#app3.war, and place them in the webapps directory.
 
 I tried to set the Context path to /group1/app1 but 
 it doesn't work either.
 
 The path attribute for a Context element is not allowed in most
 situations in any reasonably recent version of Tomcat.
 
  - Chuck
 
 
 THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
 MATERIAL and is thus for use only by the intended recipient. If you
 received this in error, please contact the sender and delete the e-mail
 and its attachments from all computers.
 
 
 -
 To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
 For additional commands, e-mail: users-h...@tomcat.apache.org
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Setting-Context-Path-in-Tomcat-tp24927313p24939514.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Setting Context Path in Tomcat

2009-08-12 Thread Caldarale, Charles R
 From: carbotex [mailto:carbo...@gmail.com]
 Subject: RE: Setting Context Path in Tomcat

 I'm running Tomcat 5.5.27.

For that level, it's a bit more complicated.  Instead of just renaming the .war 
files, you have to deploy them somewhere *outside* of the Host appBase 
directory, and create a Context element for each in 
conf/Catalina/[host]/[appName].xml.  (In your case, appName would be 
group1#app1, group1#app2, group1#app3.)  Inside each Context element, include 
a docBase attribute that points to the location of the respective .war file.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.



-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Re: Setting Context Path in Tomcat

2009-08-12 Thread Konstantin Kolinko
2009/8/12 Caldarale, Charles R chuck.caldar...@unisys.com:
 From: carbotex [mailto:carbo...@gmail.com]
 Subject: RE: Setting Context Path in Tomcat

 I'm running Tomcat 5.5.27.

 For that level, it's a bit more complicated.

Chuck, that feature has already been ported to 5.5. It is mentioned as
44021, 43013: Add support for # to signify multi-level contexts for
directories and wars.
in  http://tomcat.apache.org/tomcat-5.5-doc/changelog.html



  Instead of just renaming the .war files, you have to deploy them somewhere 
 *outside* of the Host appBase directory, and create a Context element for 
 each in conf/Catalina/[host]/[appName].xml.  (In your case, appName would be 
 group1#app1, group1#app2, group1#app3.)  Inside each Context element, 
 include a docBase attribute that points to the location of the respective 
 .war file.

  - Chuck


Best regards,
Konstantin Kolinko

-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Setting Context Path in Tomcat

2009-08-12 Thread Caldarale, Charles R
 From: Konstantin Kolinko [mailto:knst.koli...@gmail.com]
 Subject: Re: Setting Context Path in Tomcat
 
 Chuck, that feature has already been ported to 5.5. It is mentioned as
 44021, 43013: Add support for # to signify multi-level contexts for
 directories and wars.

Thanks for pointing that out.  I guess Mark has been busy...

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



Setting Context Path in Tomcat

2009-08-11 Thread carbotex

How do one go about setting tomcat in this kind of environment?

I have 3 war files, app1.war, app2.war, app3.war
I want to setup tomcat so all three webapps are under the same
folder/directory/group.

http://www.clienthost.com/group1/app1/index.jsp
http://www.clienthost.com/group1/app2/index.jsp
http://www.clienthost.com/group1/app3/index.jsp

If I drop the war files in the default webapps folder, I can only access the
application with the following URLs:

http://www.clienthost.com/app1/index.jsp
http://www.clienthost.com/app2/index.jsp
http://www.clienthost.com/app3/index.jsp


I tried to set the Context path to /group1/app1 but it doesn't work
either. Any idea?



-- 
View this message in context: 
http://www.nabble.com/Setting-Context-Path-in-Tomcat-tp24927313p24927313.html
Sent from the Tomcat - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org



RE: Setting Context Path in Tomcat

2009-08-11 Thread Caldarale, Charles R
 From: carbotex [mailto:carbo...@gmail.com]
 Subject: Setting Context Path in Tomcat

 How do one go about setting tomcat in this kind of environment?

First by telling us what version of Tomcat you're using.  Since you didn't 
bother to do that, I'll base the response on 6.0.20.

 http://www.clienthost.com/group1/app1/index.jsp
 http://www.clienthost.com/group1/app2/index.jsp
 http://www.clienthost.com/group1/app3/index.jsp

Change the names of the .war files to group1#app1.war, group1#app2.war, and 
group1#app3.war, and place them in the webapps directory.

 I tried to set the Context path to /group1/app1 but 
 it doesn't work either.

The path attribute for a Context element is not allowed in most situations in 
any reasonably recent version of Tomcat.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY 
MATERIAL and is thus for use only by the intended recipient. If you received 
this in error, please contact the sender and delete the e-mail and its 
attachments from all computers.


-
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org