tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alberto Garoffolo" <a.garoff...@web-rise.com>
Subject URL.setURLStreamHandlerFactory(...) in WebappLoader and StandardLoader
Date Sun, 09 Dec 2001 13:34:29 GMT
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:   <mailto:tomcat-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-dev-help@jakarta.apache.org>


Mime
View raw message