You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by David Rees <dr...@greenhydrant.com> on 2004/01/15 01:26:32 UTC
TC 5.0.17: Relative context path no longer works
In previous versions of Tomcat, I've used a relative context path like
this to setup the manager webapp:
<Context path="/manager" docBase="../server/webapps/manager" debug="0"
privileged="true"/>
If I use the absolute path to the manager directory everything is OK. I
couldn't find any mention of this in the changelog.
However, this no longer works in 5.0.17 and I get a ClassNotFoundException.
I can provide stack traces if it would help. The exact same config works
fine in 5.0.16.
BTW, someone needs to add 5.0.17 as a Tomcat Version to bugzilla.
-Dave
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
Re: TC 5.0.17: Relative context path no longer works
Posted by Remy Maucherat <re...@apache.org>.
David Rees wrote:
> On Wed, January 14, 2004 at 4:52 pm, David Rees wrote:
>
>>Running RH 7.3 with JDK 1.4.2_03-b02. What OS do you develop on? I'll
>>try windows.
>>
>>I'll strip down my config and do more testing...
>
>
> Just tested on Windows XP, and JDK 1.4.2_03-b02 where it works with the
> relative path.
>
> I also tested on Fedora Core 1 (same JDK as RH7.3) and IRIX with JDK
> 1.4.1_02 which all failed with the same ClassNotFoundException.
>
> So it appears to be a Unix specific issue and I think I've figured out why
> it fails.
>
> I re-tar the tarball and move a number of files out of the way to make it
> easier for me to deploy on my servers. This time, I moved the TC/webapps
> dir out of the way as usual, but forgot to recreate it. So the appBase
> for my <Host/> was invalid.
>
> It is interesting that going to /manager/ resulted in TC displaying the
> proper directory index but couldn't load the manager servlets, didn't warn
> me that the appBase was missing, and for some reason worked on Windows.
Hmmm, I don't know. The host appBase likely must exist; I never tested
without it, so I don't know what it does. Maybe the classloader isn't
setup right (too bad, the JMX viewer is in the manager webapp, so you
can't use it to see what's inside the classloaders).
Rémy
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
Re: TC 5.0.17: Relative context path no longer works
Posted by David Rees <dr...@greenhydrant.com>.
On Wed, January 14, 2004 at 4:52 pm, David Rees wrote:
>
> Running RH 7.3 with JDK 1.4.2_03-b02. What OS do you develop on? I'll
> try windows.
>
> I'll strip down my config and do more testing...
Just tested on Windows XP, and JDK 1.4.2_03-b02 where it works with the
relative path.
I also tested on Fedora Core 1 (same JDK as RH7.3) and IRIX with JDK
1.4.1_02 which all failed with the same ClassNotFoundException.
So it appears to be a Unix specific issue and I think I've figured out why
it fails.
I re-tar the tarball and move a number of files out of the way to make it
easier for me to deploy on my servers. This time, I moved the TC/webapps
dir out of the way as usual, but forgot to recreate it. So the appBase
for my <Host/> was invalid.
It is interesting that going to /manager/ resulted in TC displaying the
proper directory index but couldn't load the manager servlets, didn't warn
me that the appBase was missing, and for some reason worked on Windows.
-Dave
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
Re: TC 5.0.17: Relative context path no longer works
Posted by David Rees <dr...@greenhydrant.com>.
On Wed, January 14, 2004 at 4:56 pm, Remy Maucherat wrote:
>
>> I'll strip down my config and do more testing...
>
> I don't see the point: this should be trivial. Either the manager webapp
> works or it doesn't. It seems to me like it does ;-)
Yeah, it works, and I did something dumb that I don't usually do.
However, the bug seems to be that the Host doesn't check the appBase dir
to see if it exists and complain loudly if it doesn't (as noted in my
other email).
-Dave
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
Re: TC 5.0.17: Relative context path no longer works
Posted by Remy Maucherat <re...@apache.org>.
David Rees wrote:
> On Wed, January 14, 2004 at 4:29 pm, Remy Maucherat wrote:
>
>>David Rees wrote:
>>
>>>In previous versions of Tomcat, I've used a relative context path like
>>>this to setup the manager webapp:
>>>
>>><Context path="/manager" docBase="../server/webapps/manager" debug="0"
>>>privileged="true"/>
>>
>>This works for me.
>>
>>Yeah, yeah, but I recommend you don't file a bug about this unless you
>>are really sure about it (and please give detailed examples).
>
>
> OK, some more details:
>
> Running RH 7.3 with JDK 1.4.2_03-b02. What OS do you develop on? I'll
> try windows.
I am using Windows.
> I'll strip down my config and do more testing...
I don't see the point: this should be trivial. Either the manager webapp
works or it doesn't. It seems to me like it does ;-)
Rémy
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
Re: TC 5.0.17: Relative context path no longer works
Posted by David Rees <dr...@greenhydrant.com>.
On Wed, January 14, 2004 at 4:29 pm, Remy Maucherat wrote:
> David Rees wrote:
>> In previous versions of Tomcat, I've used a relative context path like
>> this to setup the manager webapp:
>>
>> <Context path="/manager" docBase="../server/webapps/manager" debug="0"
>> privileged="true"/>
>
> This works for me.
>
> Yeah, yeah, but I recommend you don't file a bug about this unless you
> are really sure about it (and please give detailed examples).
OK, some more details:
Running RH 7.3 with JDK 1.4.2_03-b02. What OS do you develop on? I'll
try windows.
I'll strip down my config and do more testing...
-Dave
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org
Re: TC 5.0.17: Relative context path no longer works
Posted by Remy Maucherat <re...@apache.org>.
David Rees wrote:
> In previous versions of Tomcat, I've used a relative context path like
> this to setup the manager webapp:
>
> <Context path="/manager" docBase="../server/webapps/manager" debug="0"
> privileged="true"/>
This works for me.
> If I use the absolute path to the manager directory everything is OK. I
> couldn't find any mention of this in the changelog.
>
> However, this no longer works in 5.0.17 and I get a ClassNotFoundException.
>
> I can provide stack traces if it would help. The exact same config works
> fine in 5.0.16.
>
> BTW, someone needs to add 5.0.17 as a Tomcat Version to bugzilla.
Yeah, yeah, but I recommend you don't file a bug about this unless you
are really sure about it (and please give detailed examples).
Rémy
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org