[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-6073) Dialects cannot use the Thread Context ClassLoader with AS7, please change to use the
Strong Liu (JIRA)
noreply at atlassian.com
Mon Jul 11 04:21:16 EDT 2011
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-6073?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=42935#comment-42935 ]
Strong Liu commented on HHH-6073:
---------------------------------
we may really need to consider to use ClassLoaderService instead of having lots different minor version dialect.
for example, from 10.7.1, derby supports boolean type, so we add one more DerbyTenSevenDialect ?
this is really not user friendly.
> 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
> Assignee: Steve Ebersole
> 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.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list