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: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org