Jeremy,
what type of object is 'schemaCatalog' in your code example?
> schemaCatalogURL = new URI("file", schemaCatalog.toString(),
> null).toURL();
In the SimpleURIResolver ctor, the Classloader.getResource method is used
to create a URL for the relative path "META-INF/schema.catalog". As per
my latest post on the original thread, this method does escape the spaces
to %20 using the IBM 1.42 and Sun 1.42 JREs. I've asked for more info on
the Tomcat scenario (possibly its using its own classloader that behaves
different to the JRE classloaders).
regards,
John Kaputin
[EMAIL PROTECTED] wrote on 19/12/2007 13:42:27:
> On 19/12/2007, Jeremy Hughes <[EMAIL PROTECTED]> wrote:
> > On 19/12/2007, John Kaputin <[EMAIL PROTECTED]> wrote:
> > > Woden supports Java 1.4. The URL.toURI() method was introduced in
Java 5.
> >
> > Ah yes good point - I should have set my eclipse to use 1.4.2
> >
> > > At any rate, the toURI() method will still result in a
URISyntaxException
> > > because the original path contains an illegal character (as defined
by
> > > RFC2396)... the space character which appears in the file path. I
think
> > > the fix is to escape spaces in the path to %20.
> >
> > We basically need the capability the toURI() method gives us - which
> > is to 'escape' more than just a space.
>
> the URI(String scheme, String ssp, String fragment) ctor does the %20
> substitution. So when the SimpleURIResolver ctor creates the URL to
> the catalog on disk it could use this URI method to do the %20
> substitution .. a bit like this perhaps:
>
> schemaCatalogURL = new URI("file", schemaCatalog.toString(),
> null).toURL();
>
> >
> > > Am looking into this now.
> >
> > thanks
> >
> > Jeremy
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
Unless stated otherwise above:
IBM United Kingdom Limited - Registered in England and Wales with number
741598.
Registered office: PO Box 41, North Harbour, Portsmouth, Hampshire PO6 3AU
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]