[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-6073) Dialects cannot use the Thread Context ClassLoader with AS7, please change to use the

Scott Marlow (JIRA) noreply at atlassian.com
Fri Apr 1 16:27:08 EDT 2011


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-6073?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=41943#action_41943 ] 

Scott Marlow commented on HHH-6073:
-----------------------------------

Patch is here https://github.com/scottmarlow/hibernate-core/commit/c77f933fd96763639486f72d432feaf5176a5cae

> Dialects cannot use the Thread Context ClassLoader with AS7, please change to use the 
> --------------------------------------------------------------------------------------
>
>                 Key: HHH-6073
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-6073
>             Project: Hibernate Core
>          Issue Type: Task
>            Reporter: Scott Marlow
>            Priority: Blocker
>             Fix For: 4.0.0.Alpha2
>
>
> We can no longer rely on TCCL because AS7 is following a modular class loading approach.  The AS7 "org.hibernate" module isn't setup to access the JDBC classes.
> We discussed changing the dialects to not use the TCCL as a workaround.  Or perhaps passing in a ClassLoaderService.
> The following warning shows what we currently see with Hibernate 3.6.1 and the DerbyDialect (TCCL is null).
> 08:45:27,597 INFO [org.hibernate.dialect.Dialect] (MSC service thread 1-6) Using dialect: org.hibernate.dialect.DerbyDialect
> 08:45:27,603 INFO [org.hibernate.dialect.Dialect] (MSC service thread 1-2) Using dialect: org.hibernate.dialect.DerbyDialect
> 08:45:27,614 WARN [org.hibernate.dialect.DerbyDialect] (MSC service thread 1-6) Unable to load/access derby driver class sysinfo to check versions : java.lang.ClassNotFoundException: org.apache.derby.tools.sysinfo from [Module "org.hibernate:main" from local module loader @fee4648 (roots: /work/as7-dev/jboss-as/build/target/jboss-7.0.0.Beta2/modules)]
> 08:45:27,616 WARN [org.hibernate.dialect.DerbyDialect] (MSC service thread 1-2) Unable to load/access derby driver class sysinfo to check versions : java.lang.ClassNotFoundException: org.apache.derby.tools.sysinfo from [Module "org.hibernate:main" from local module loader @fee4648 (roots: /work/as7-dev/jboss-as/build/target/jboss-7.0.0.Beta2/modules)]

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://opensource.atlassian.com/projects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the hibernate-issues mailing list