tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Caldarale, Charles R" <Chuck.Caldar...@unisys.com>
Subject RE: Need my Protocol to be Seen in Tomcat!!
Date Sat, 17 Nov 2007 05:56:11 GMT
> From: Mike Wannamaker [mailto:mwannama@opentext.com] 
> 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
it.

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


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY
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: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message