tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Johan Compagner <>
Subject tomcat 8 depends on URL.setURLStreamHandlerFactory method
Date Wed, 01 Oct 2014 15:59:23 GMT

we have tomcat completely as an OSGI plugin project:

so that we can start it from our eclipse application and also dynamically
add servlets and filters from all kinds of plugins (so everything is osgi

Our app uses websockets quite heavily so  i thought lets update now to the
latest 8 that has a lot of improvements in this area.

Problem is that in StandardRoot

there is a line:


in the internalInit

this tries to call URL.setURLStreamHandlerFactory(this);
in the constructor of that TomcatURLStreamHandlerFactory class

but this is in eclipse or i guess in an osgi environment not really possible
because that is already set so now it bombs out with "factory al ready set"

Is there any workaround for this or is there any way to improve tomcat 8 so
that it places nicer inside an osgi container like eclipse?

Or am i really stuck at Tomat 7 for now (and quite some time to come )

Johan Compagner

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message