geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jarek Gawor (JIRA)" <j...@apache.org>
Subject [jira] Created: (GERONIMO-5151) JSTL sql tags do not work
Date Fri, 19 Feb 2010 05:21:27 GMT
JSTL sql tags do not work
-------------------------

                 Key: GERONIMO-5151
                 URL: https://issues.apache.org/jira/browse/GERONIMO-5151
             Project: Geronimo
          Issue Type: Bug
      Security Level: public (Regular issues)
          Components: javaee6, osgi, Web Profile
    Affects Versions: 3.0
            Reporter: Jarek Gawor
            Assignee: Jarek Gawor


The JSTL sql tags use DriverManager API to connect to the database. There are well-known problems
with DriverManager API and classloaders and that is exactly what is causing the sql tags not
work in OSGi environment.  The core of the problem is that the DriverManager uses the caller's
classloader (in this case the JSTL bundle classloader) to find a driver for the given url.
Since JSTL bundle does not import any database drivers, the DriverManager does not "see" any
drivers and so fails to connect to the database.

I opened https://issues.apache.org/bugzilla/show_bug.cgi?id=48773 bug report (with a patch)
in the taglibs project for this issue.


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message