Thanks for the confirmation. Im looking at the code right now. Looks like it will be a straight forward change.
Thanks again Bill On Wed, 11 Aug 2004, Shapira, Yoav wrote: > Hi, > It's funny you should ask now, just as I was contemplating > http://issues.apache.org/bugzilla/show_bug.cgi?id=29631. I think I'm > going to implement that in the coming days, probably via a system > property (a bit ugly, but this is enough of a marginal feature that I > can live with it being ugly for now). However until that happens, the > answer to your question is no: the setURLStreamHandlerFactory call > cannot be avoided with current Tomcat releases. You must build a custom > Tomcat to do that. > > Yoav Shapira > Millennium Research Informatics > > > >-----Original Message----- > >From: William Rusch [mailto:[EMAIL PROTECTED] > >Sent: Tuesday, August 10, 2004 9:26 PM > >To: Tomcat Users List > >Subject: URL.setURLStreamHandlerFactory - Tomcat 5.0 > > > > > >I am trying to port some code from another app server to tomcat. We > >currently have custom URL protocols which are set using > > > >URL.setURLStreamHandlerFactory() > > > >java.io.IOException: Illegal URL: java.net.MalformedURLException: > unknown > >protocol: filecache > > at > com.lodging.xsl.XSLManager.loadStyleSheet(XSLManager.java:188) > > at > >com.lodging.xsl.XSLStylesheetCache.getStylesheet(XSLStylesheetCache.jav > a:10 > >2) > > at > >com.lodging.xsl.XSLManager.loadCachedStyleSheet(XSLManager.java:125) > > at com.lodging.xsl.XSLManager.getStyleSheet(XSLManager.java:77) > > at > >reservations.CitywideAvailabilityXML.doPost(CitywideAvailabilityXML.jav > a:13 > >83) > > at > >reservations.CitywideAvailabilityXML.doGet(CitywideAvailabilityXML.java > :61) > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) > > at > >org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet > .jav > >a:419) > > at > >org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:1 > 33) > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) > > at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) > > > >Apparantly this can only be called once and in Tomcat > >URL.setURLStreamHandlerFactory() is called during initialization. > > > >Does anyone know how to override or extend this functionality in > Tomcat? > > > >Even a pointer in the right direction would be greatly appreciated. > > > >Bill > > > > > >--------------------------------------------------------------------- > >To unsubscribe, e-mail: [EMAIL PROTECTED] > >For additional commands, e-mail: [EMAIL PROTECTED] > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
