Thanks Dominic. Unfortuately, this is not being called from within a
servlet.

Brandon Goodin

-----Original Message-----
From: Dominic Parry [mailto:[EMAIL PROTECTED]
Sent: Thursday, June 05, 2003 8:05 AM
To: Tomcat Users List
Subject: Re: getResourceAsStream cached by Tomcat's Classloader?


I had similar issues with getResourceAsStream which caused me to go another
route. I now use:

new File(getServletContext().getRealPath("modules.xml")) to read files in.

I'm not sure what your needs are, but mine were satisfied by using my
method.

Hope this helps

Dom
----- Original Message -----
From: "Brandon Goodin" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Thursday, June 05, 2003 4:04 PM
Subject: RE: getResourceAsStream cached by Tomcat's Classloader?


> Yes, it is closed.
>
> Brandon Goodin
>
> -----Original Message-----
> From: Dominic Parry [mailto:[EMAIL PROTECTED]
> Sent: Thursday, June 05, 2003 7:44 AM
> To: Tomcat Users List
> Subject: Re: getResourceAsStream cached by Tomcat's Classloader?
>
>
> did you close the original stream before making changes and reloading?
>
>
> ----- Original Message -----
> From: "Brandon Goodin" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, June 05, 2003 3:45 PM
> Subject: getResourceAsStream cached by Tomcat's Classloader?
>
>
> > I saw a question similar to this asked in the Archives early in 2002. I
> > didn't see a response to it. So, I hope there is an answer.
> >
> > I have a generic config file that is an xml file. We'll call it
> > my-config.xml.
> >
> > When I load my-config.xml using
> > Classloader.getResourceAsStream("my-config.xml") everything works great.
> > However, when I make a change to that file and again call
> > Classloader.getResourceAsStream("my-config.xml") the changes are not
> picked
> > up and the same initial resource is returned. How do I get the
Classloader
> > to reconginze the resource changes? I'm using Tomcat 4.1.18.
> >
> >
> > Brandon Goodin
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to