tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 61366] New: "Unable to find [comp]" when attempting to use JNDI datasource for JDBCStore session store
Date Tue, 01 Aug 2017 00:05:18 GMT
https://bz.apache.org/bugzilla/show_bug.cgi?id=61366

            Bug ID: 61366
           Summary: "Unable to find [comp]" when attempting to use JNDI
                    datasource for JDBCStore session store
           Product: Tomcat 8
           Version: 8.5.16
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: P2
         Component: Catalina
          Assignee: dev@tomcat.apache.org
          Reporter: jhorowitz@aod-tech.com
  Target Milestone: ----

Created attachment 35191
  --> https://bz.apache.org/bugzilla/attachment.cgi?id=35191&action=edit
Properly set the TCCL before performing JNDI datasource lookups

When attempting to utilize a JNDI datasource defined at the Context level,
JDBCStore uses the wrong TCCL and the lookup fails.

The fix for this (patch attached against current 8.5.x-trunk (revision 1803599)
is similar to the changes introduced by revisions 1514281 and 1726925:  the
JDBCStore session store implementation correctly sets the TCCL to that of the
webapp context before attempting to load a session from the database.

It should do the same before attempting the JNDI datasource lookup.

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


Mime
View raw message