tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From William Rusch <wru...@lodging.com>
Subject RE: URL.setURLStreamHandlerFactory - Tomcat 5.0
Date Wed, 11 Aug 2004 13:53:14 GMT

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:wrusch@lodging.com]
> >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: tomcat-user-unsubscribe@jakarta.apache.org
> >For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message