Haven't tried with reloading classes in servlet archives, but I've had such
kind of problems (not finding resources in jar files) several times and
found that the problem was with native methods like getSystemResourceAsName0
and maybe others. I think this is a JVM implementation problem, not
application-related. With JDK1.2 and platforms like IRIX, there are even
weird cases where some Java classes are found on jar files while others
aren't.
Maybe someone with access to the JVM source code could clarify this.
Carlos
-----Mensaje original-----
De: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Para: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Fecha: viernes 17 de marzo de 2000 23:00
Asunto: Re: [bug] Problems with AdaptiveClassLoader (fwd)
>>From [EMAIL PROTECTED] Fri Mar 17 13:09:14 2000
>Received: from pop.systemy.it (pop.systemy.it [194.20.140.28])
> by clearink.com (8.9.3/8.9.3) with ESMTP id NAA31582
> for <[EMAIL PROTECTED]>; Fri, 17 Mar 2000 13:09:13 -0800
>Received: from apache.org (pv26-pri.systemy.it [194.21.255.26]) by
pop.systemy.it (8.8.8/8.8.3) with ESMTP id WAA32549 for <[EMAIL PROTECTED]>;
Fri, 17 Mar 2000 22:09:06 +0100
>Message-ID: <[EMAIL PROTECTED]>
>Date: Fri, 17 Mar 2000 18:31:50 +0100
>From: Stefano Mazzocchi <[EMAIL PROTECTED]>
>Organization: Apache Software Foundation
>X-Mailer: Mozilla 4.72 [en] (Win98; I)
>X-Accept-Language: it,en
>MIME-Version: 1.0
>To: Jon Stevens <[EMAIL PROTECTED]>
>Subject: Re: [bug] Problems with AdaptiveClassLoader
>References: <[EMAIL PROTECTED]>
>Content-Type: text/plain; charset=us-ascii
>Content-Transfer-Encoding: 7bit
>
>Can you forward it for me :) I don't want to subscribe again.
>
>Thanks.
>
>Java-Apache Development wrote:
>>
>> >People,
>> >
>> >while the AdaptiveClassLoader is probably one of the most useful things
>> >in Apache JServ, it has some problems with archived repositories. I
>> >didn't notice this before because usually didn't use archived servlets,
>> >but with Cocoon this changed the picture a lot.
>> >
>> >So here is what I have to report:
>> >
>> >1) the classes are _not_ reloaded when the servlet archive is changed. I
>> >thought this was a design limitation but it's not... I could not find a
>> >place where this should be fixed, in fact I even don't understand why it
>> >doesn't work since the basics are already there.
>> >
>> >2) resources are _not_ seen when they are included in archived
>> >repositories. The simple example
>> >
>> > URL res = this.getClass().getResource("res/try.res");
>> >
>> >returns null if the "res/try.res" file is found in a jar file, while
>> >returns the right file:// uri if the file is present in a normal
>> >directory or system classpath.
>> >
>> >I didn't test with Tomcat, but I suspect that this bugs both projects
>> >since the code was borrowed directly.
>> >
>> >(note: I'm not subscribed to tomcat-dev)
>> >
>> >--
>> >Stefano Mazzocchi One must still have chaos in oneself to be
>> > able to give birth to a dancing star.
>> ><[EMAIL PROTECTED]> Friedrich Nietzsche
>> >--------------------------------------------------------------------
>> > Missed us in Orlando? Make it up with ApacheCON Europe in London!
>> >------------------------- http://ApacheCon.Com ---------------------
--
----------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]