You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by Niclas Hedhman <ni...@hedhman.org> on 2005/10/07 12:17:18 UTC
Re-reading Jar files...
Hi,
We normally don't deal with Jar/zip files, but a case have come up where we
need to read XML inside zip files, which are modified at times.
The developer added a
src="jar:http://our.server.com/cocoon-mountpoint/zips/abc.zip!file-in-question.xml"
using the standard filegenerator. Works... but doesn't reload.
If a jar:file:///...." URL is given, exceptions are thrown when the file is
changed.
Somehow I think the URLConnection is cached somewhere, which then dictates
that the Jar file can not be modified, but I am unable to figure out 'where'
or 'how'. I am not sure if it is the same as the
http://issues.apache.org/bugzilla/show_bug.cgi?id=29365
issue.
Anyone knows what is happening, and what we can do to overcome this?
Cheers
Niclas
Re: Re-reading Jar files...
Posted by Niclas Hedhman <ni...@hedhman.org>.
On Friday 07 October 2005 19:36, Vadim Gritsenko wrote:
> Niclas Hedhman wrote:
> > Hi,
> > We normally don't deal with Jar/zip files, but a case have come up where
> > we need to read XML inside zip files, which are modified at times.
> >
> > The developer added a
> > src="jar:http://our.server.com/cocoon-mountpoint/zips/abc.zip!file-in-que
> >stion.xml" using the standard filegenerator. Works... but doesn't reload.
> >
> > If a jar:file:///...." URL is given, exceptions are thrown when the file
> > is changed.
> >
> > Somehow I think the URLConnection is cached somewhere, which then
> > dictates that the Jar file can not be modified, but I am unable to figure
> > out 'where' or 'how'. I am not sure if it is the same as the
> > http://issues.apache.org/bugzilla/show_bug.cgi?id=29365
> > issue.
> >
> > Anyone knows what is happening, and what we can do to overcome this?
>
> Try zip: protocol
Thanks!!! Worked...
Cheers
Niclas
Re: Re-reading Jar files...
Posted by Vadim Gritsenko <va...@reverycodes.com>.
Niclas Hedhman wrote:
> Hi,
> We normally don't deal with Jar/zip files, but a case have come up where we
> need to read XML inside zip files, which are modified at times.
>
> The developer added a
> src="jar:http://our.server.com/cocoon-mountpoint/zips/abc.zip!file-in-question.xml"
> using the standard filegenerator. Works... but doesn't reload.
>
> If a jar:file:///...." URL is given, exceptions are thrown when the file is
> changed.
>
> Somehow I think the URLConnection is cached somewhere, which then dictates
> that the Jar file can not be modified, but I am unable to figure out 'where'
> or 'how'. I am not sure if it is the same as the
> http://issues.apache.org/bugzilla/show_bug.cgi?id=29365
> issue.
>
> Anyone knows what is happening, and what we can do to overcome this?
Try zip: protocol
Vadim