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

           Summary: Troubles with ApplicationContext.getResource and the
                    WoodStox Parser
           Product: Tomcat 5
           Version: 5.5.17
          Platform: PC
        OS/Version: Windows XP
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


I am having problems with Tomcat, Glassfish and the Woodstox Parser.

When calling servletContext.getResource with a WSDL file name which is a
resource in the webapp, the following is returned 
jndi:/localhost/myWebApp/WEB-INF/wsdl/StockQuoteService.wsdl

I see that Tomcat has its own UrlStreamHandler, DirContextUrlStreamHandler.

Now Woodstox wants to create an URL on
jndi:/localhost/myWebApp/WEB-INF/wsdl/StockQuoteService.wsdl
I guess for validation.

The java.net.Url constructor code eventually calls parseUrl and fails with a
MalformedUrlException

DirContextURLStreamHandler did not override that method and the invocation went
up to URLStreamHandler which threw the MalformedUrlException.


I don't quite understand why this Custom UrlStreamHandler is used instead of
say a file:/// formatted URL


-- 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to