You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2020/03/12 15:24:02 UTC
[Bug 64220] New: WebappServiceLoader not loading resources
https://bz.apache.org/bugzilla/show_bug.cgi?id=64220
Bug ID: 64220
Summary: WebappServiceLoader not loading resources
Product: Tomcat 7
Version: 7.0.100
Hardware: PC
Status: NEW
Severity: blocker
Priority: P2
Component: Catalina
Assignee: dev@tomcat.apache.org
Reporter: mgallinucci@gmail.com
Target Milestone: ---
With resolution of https://bz.apache.org/bugzilla/show_bug.cgi?id=64021,
WebappServiceLoader is not loading anymore resources from loader.
This happens in Tomcat 7.0.100, but not in Tomcat 8.5.51, where loading is done
differently:
WebResource[] resources = context.getResources().getClassLoaderResources("/" +
configFile);
When WebappServiceLoader is executing load() for my web application, now
WebappServiceLoader.load is searching resouces in dir:
/META-INF/services/javax.servlet.ServletContainerInitializer
at line 111:
Enumeration<URL> resources = ((URLClassLoader) loader).findResources("/" +
configFile);
instead of (as in previous version, 7.0.99):
META-INF/services/javax.servlet.ServletContainerInitializer
at line 136:
resources = loader.getResources(configFile);
and the result in containerServicesFound is only:
[org.apache.tomcat.websocket.server.WsSci]
instead of (as in previous version, 7.0.99):
[it.myapp.servlet.MyAppServletContainerInitalizer,
org.glassfish.jersey.servlet.init.JerseyServletContainerInitializer,
org.apache.tomcat.websocket.server.WsSci]
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 64220] WebappServiceLoader not loading resources
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=64220
Remy Maucherat <re...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |DUPLICATE
OS| |All
--- Comment #1 from Remy Maucherat <re...@apache.org> ---
*** This bug has been marked as a duplicate of bug 64191 ***
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org