Hi
I've resolved this issue in this way:
URLStreamHandlerFactoryImpl.termspecProtocolHandler = handlerClass;
try {
for (final Field field : URL.class.getDeclaredFields()) {
if ("factory".equalsIgnoreCase(field.getName()) ) {
field.setAccessible(true);
field.set(null, new
URLStreamHandlerFactoryImpl((URLStreamHandlerFactory) field.get(null)));
}
}
} catch (Throwable e) {
logger.error(e);
}
--
View this message in context:
http://old.nabble.com/Custom-URL-handlers-in-Tomcat-web-app-tp15629476p26636133.html
Sent from the Tomcat - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]