[hibernate-issues] [Hibernate-JIRA] Created: (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 13:31:08 EDT 2011


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.  For creating dialects, could we instead use the classloader from the java.sql.Connection that is passed into the DialectFactory.

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