« Return to Thread: DO NOT REPLY [Bug 44992] New: Troubles with ApplicationContext. getResource and the WoodStox Parser

DO NOT REPLY [Bug 44992] Troubles with ApplicationContext. getResource and the WoodStox Parser

by Bugzilla from bugzilla@apache.org :: Rate this Message:

Reply to Author | View in Thread

https://issues.apache.org/bugzilla/show_bug.cgi?id=44992


Doug Drechsel <dougd@...> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|WORKSFORME                  |




--- Comment #2 from Doug Drechsel <dougd@...>  2008-05-14 05:29:27 PST ---
Yes, I did get the unknown protocol early on.  I am in an OSGI environment so I
registered the Tomcat URLStreamHandler with the URLStreamHandlerService.

But leaving OSGI aside, if in the JVM, no process beats Tomcat to registering
the URLStreamHandler and Tomcat gets its URLStreamHandler in, then Woodstox
would not get the unknown protocol error

In JVM1.5.11 , java.net.URL

    public URL(String spec) throws MalformedURLException {
        this(null, spec);
    }

calls

    public URL(URL context, String spec) throws MalformedURLException {
        this(context, spec, null);
    }

calls

    public URL(URL context, String spec, URLStreamHandler handler)
        throws MalformedURLException

which calls

            handler.parseURL(this, spec, start, limit);

        } catch(MalformedURLException e) {
            throw e;
        } catch(Exception e) {
            throw new MalformedURLException(e.getMessage());
        }


--
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@...
For additional commands, e-mail: dev-help@...

 « Return to Thread: DO NOT REPLY [Bug 44992] New: Troubles with ApplicationContext. getResource and the WoodStox Parser

LightInTheBox - Buy quality products at wholesale price