https://bz.apache.org/bugzilla/show_bug.cgi?id=61782

            Bug ID: 61782
           Summary: AuthConfigFactoryImpl.doRegisterConfigProvider() does
                    not search in the web app classloader when loading the
                    provider class
           Product: Tomcat 8
           Version: 8.5.23
          Hardware: PC
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Catalina
          Assignee: dev@tomcat.apache.org
          Reporter: lazar.kirc...@gmail.com
  Target Milestone: ----

Created attachment 35536
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=35536&action=edit
sample app

AuthConfigFactoryImpl.doRegisterConfigProvider() first tries to load the
provider class with the thread context class loader (which is the application
loader) and after that it retries with its own loader. 
However, the retry is always done, even if the first loading was successful.
The result is that if the provider implementation is in the application the
second loading fails and the provider registration throws ClassNotFound

The attached war contains a very sample application illustrating the problem.
It contains a sample provider implementation and a ServletContextListener which
tries to register the provider it in its contextInitialized.

-- 
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