You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Alberto Garoffolo <a....@web-rise.com> on 2001/12/09 14:34:29 UTC

URL.setURLStreamHandlerFactory(...) in WebappLoader and StandardLoader

Hi,

I' ve modified with success my tomcat 4.01 to allow webapps to register
their protocol handler in this way:

in WebappLoader.java and in StandardLoader.java before setting the factory i
check if the property
"java.protocol.handler.pkgs" contains the package
"org.apache.naming.resources", in this case it' s not
necessary to set the Factory because the URL class will use, for the jndi
protocol, the class named:
"org.apache.naming.resources" + ".jndi" + ".Handler"; if the proprty isn't
set i register the Factory.

Then, i' ve modified catalina.sh setting CATALINA_OPTS with value:
    "-Djava.protocol.handler.pkgs=org.apache.naming.resources"

I hope this can help.

Ciao,
Alberto Garoffolo.



--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>