Set application default

2008-11-02 Thread WILLIAMer

Hi all!
I wanna make my application as default(ROOT).
My application name is Com under the webapps  directory.
The application url is http://MyDomain/Com .
I want to change the url to http://MyDomain/ .

I add Context path= docBase=Com reloadable=true crossContext=true
debug=0/
in server.xml.
Restart tomcat and it work.
Now this application is under Solaris machine.

Then i try the same method add one line in server.xml and restart tomcat.
But it not work.
Now this application is under Windows server 2003.

My tomcat version is 5.5.20.
The tomcat in Solaris and windows server 2003 is the same version.
Why it work with Solaris operating system but windows fail?

I dont wanna change my application name to ROOT for this purpose.

-- 
View this message in context: 
http://www.nabble.com/Set-application-default-tp20296568p20296568.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]



RE: Set application default

2008-11-02 Thread Caldarale, Charles R
 From: WILLIAMer [mailto:[EMAIL PROTECTED]
 Subject: Set application default

 I add Context path= docBase=Com reloadable=true
 crossContext=true debug=0/ in server.xml.

You really shouldn't do that - it's truly the lazy way out (i.e., one that will 
cost you more time and energy later).

 I dont wanna change my application name to ROOT for this purpose.

Do you have any justification for not changing the name, which really is the 
right thing to do?

Don't wanna is a child's excuse...

If you absolutely insist on not changing the name of your app's directory (or 
.war file), then place it somewhere other than under your Host appBase 
directory (webapps, in your case), and create a conf/Catalina/[host]/ROOT.xml 
file containing this Context element:

Context docBase=[location/of/default/app] reloadable=true 
crossContext=true debug=0/

 - 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 start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]