tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Matt Bathje <...@ntsource.com>
Subject ROOT context using admin webapp
Date Wed, 01 Sep 2004 20:22:58 GMT
I sent this a wihle back and didn't get a response, so I'm going to try 
again. This applies to both Tomcat 5.0.25 and 5.0.27.

Is it possible to add a ROOT context to a host using the administrative 
webapp? I know how to do it by editing the server.xml (or 
Catalina/host/context.xml) file, but with the admin webapp I can't get a 
valid ROOT context added.

If I try to add the ROOT context with a blank path (""). I get an error 
that the path must start with a slash ("/").

If I try to add the ROOT context with a single slash ("/"), all links 
and stylesheet/javascript includes contain a slash at the front of them, 
which causes many problems. When I look at the context.xml file, it 
seems as though the path gets written to the file as "/" instead of as 
"" as it should be for a ROOT context.

I looked through bugzilla, and found this issue:
http://issues.apache.org/bugzilla/show_bug.cgi?id=26399

The closing comment is very confusing to me though. It says that 
management tools will refer to ROOT contexts as "/". It also says that 
internally (and the xml config files count as internal) ROOT contexts 
will be referred to as "". He concludes by saying "this is not a bug anyway"

Now to me this seems like a bug - I am attempting to add a ROOT context 
using "/", and it gets added in server.xml as "/" instead of as "".

I'm hoping that I am just doing something wrong and there is no bug - 
so, does anybody know how to add a ROOT context to a host using the 
administrative webapp?


Thanks,
Matt Bathje

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message