Hey Folks,
this is a follow-up question to a post made by Kavi on 6/25 regarding
running Tomcat on HP's Core Services Framework.
We encountered a problem with a dual URLStreamHandlerFactory - Catalina
installs its own, in order to provide the jndi: URL for e.g. reading
WEB-INF/web.xml - alas Core Services Framework has also installed its own
factory, in order provide similar capabilities. We have tried eliminating
our own, in which case everything works as expected; if we extend the
DirContextURLStreamHandler and place it in a package we understand, we can
actually instantiate the DirContextURLStreamHandler (extension) and startup
etc. seems to be fine, except that the installation of the context- and
session listeners fail... my guess is that because Catalina fails to
install its factory (because we've already installed our own) it doesn't
complete the initialization of the DirContext stuff. Is there a way to
provide this service for Catalina or is it a requirement that it gets to
install its own factory ? We realize that only one factory can be installed
and since - in this scenario - we are the "host" or services provider it
would be natural for us to provide this; we also realize that Catalina
probably wasn't written with this in mind, but we'd be interested in finding
out whether or not this is doable.
(We're currently working with Tomcat 4.0 beta 5).
Thanks a bundle,
/Peter & Kavi