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

Reply via email to