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

DO NOT REPLY [Bug 44992] New: 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

           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: tomcat-dev@...
        ReportedBy: dougd@...


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: 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