[
https://issues.apache.org/jira/browse/GERONIMO-5151?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12835793#action_12835793
]
Jarek Gawor commented on GERONIMO-5151:
---------------------------------------
Applied the patch to our JSTL bundle (revision 911852).
> 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.