tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Caldarale, Charles R" <>
Subject RE: Need my Protocol to be Seen in Tomcat!!
Date Sat, 17 Nov 2007 05:56:11 GMT
> From: Mike Wannamaker [] 
> Subject: RE: Need my Protocol to be Seen in Tomcat!!
> I believe the issue is that the URL class is loaded 
> in the bootstrap classloader and my Handler class is
> in the commons classloader.

Sounds likely.

> So what I'm wondering is if I can hook into that
> DirContextURLStreamHandlerFactory class somehow
> through configuration to return my handler class?

No, that's strictly for JNDI in the current Tomcat implementation.

Rather than putting your Handler class in common/lib, have you tried
adding its location to Tomcat's startup classpath?  This should make it
available to the system classloader, so new URL() should be able to find

Can't think of any way to configure such a protocol handler without
implementing it as a <Connector>, which of course would tie you into
Tomcat internals fairly deeply.

Bill Barker or Filip Hanik might have better ideas.

 - Chuck

MATERIAL and is thus for use only by the intended recipient. If you
received this in error, please contact the sender and delete the e-mail
and its attachments from all computers.

To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message