Hibernate exception when Classloader scoping enabled
smpub2000 Apr 24, 2008 6:14 PMJboss 4.2, I have an EAR file with EJBS and WARs. I have a third part library (Gigaspaces) that uses hibernate. With Class loader scoping disabled, everything works fine. However when I enable scoping, I get the following exception, even though I have ojdbc14.jar in lib directory at root of EAR. Why would it find the EAR without scoping, but not find it when scoping is enabled, since scoping does not affect modules inside the EAR file.
scoping:<loader-repository>foobar:archive=foobar.ear
exception: java.sql.SQLException: No suitable driver
Detailed:
18:03:55,373 INFO [STDOUT] WARN [main] (Environment.java:503) - Property [hibernate.cglib.use_reflection_optimizer] has been renamed to [hibernate.bytecode.use_reflection_optimizer]; update your properties appropriately
18:03:56,168 INFO [STDOUT] WARN [main] (Environment.java:503) - Property [hibernate.cglib.use_reflection_optimizer] has been renamed to [hibernate.bytecode.use_reflection_optimizer]; update your properties appropriately
18:03:56,262 INFO [STDOUT] WARN [main] (SettingsFactory.java:117) - Could not obtain connection metadata
java.sql.SQLException: No suitable driver
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)
at org.hibernate.connection.DriverManagerConnectionProvider.getConnection(DriverManagerConnectionProvider.java:110)
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:84)
at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2009)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1292)
at com.gigaspaces.datasource.hibernate.SessionFactoryBuilder.getFactory(SourceFile:66)
at com.gigaspaces.datasource.hibernate.HibernateDataSource.init(SourceFile:137)
at com.j_spaces.obf.de.init(SourceFile:457)
at com.j_spaces.sadapter.datasource.DataAdapter.init(SourceFile:295)
at com.j_spaces.obf.fr.a(SourceFile:346)
at com.j_spaces.obf.ko.a(SourceFile:699)
at com.j_spaces.core.JSpaceImpl.u(SourceFile:3385)
at com.j_spaces.core.JSpaceImpl.r(SourceFile:3263)
at com.j_spaces.core.JSpaceImpl.start(SourceFile:3100)
at com.j_spaces.core.JSpaceImpl.(SourceFile:369)
at com.j_spaces.core.JSpaceContainerImpl.a(SourceFile:2997)
at com.j_spaces.core.JSpaceContainerImpl.a(SourceFile:2920)
at com.j_spaces.core.JSpaceContainerImpl.aU(SourceFile:1315)
at com.j_spaces.core.JSpaceContainerImpl.aN(SourceFile:715)
at com.j_spaces.core.JSpaceContainerImpl.(SourceFile:610)
at com.j_spaces.core.client.SpaceFinder.a(SourceFile:695)
at com.j_spaces.core.client.SpaceFinder.a(SourceFile:814)
at com.j_spaces.core.client.SpaceFinder._find(SourceFile:540)
at com.j_spaces.core.client.SpaceFinder.internalFind(SourceFile:345)
at com.j_spaces.core.client.SpaceFinder.internalFind(SourceFile:333)
at com.j_spaces.core.client.SpaceFinder.find(SourceFile:412)