[
https://issues.apache.org/jira/browse/GERONIMO-5151?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jarek Gawor resolved GERONIMO-5151.
-----------------------------------
Resolution: Fixed
Fix Version/s: 3.0
Resolving as the Geronimo JSTL bundle contains the fix for the problem. Once/if
the patch gets applied to the JSTL library we can switch back to the JSTL
bundle.
> 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
> Fix For: 3.0
>
>
> 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.