Welcome to the new Gigaspaces XAP forum. To recover your account, please follow these instructions.

Ask Your Question
0

Classloading

I am starting an embedded persistent space using a servlet in JBOSS 4.2 AS. The embedded persistent space start fine, until I enable scoped class loading in jboss-app.xml, in which case space can't find jdbc driver: <loader-repository> com.company.project:archive=projectname.ear </loader-repository>

The ojdbc.jar driver and all the GS jars are in lib directory, which is on the MANIFEST Class-Path.

13:55:33,858 INFO [Version] Hibernate Annotations 3.2.1.GA 13:55:34,155 INFO [Environment] Hibernate 3.2.4.sp1 13:55:34,202 INFO [Environment] hibernate.properties not found 13:55:34,202 INFO [Environment] Bytecode provider name : javassist 13:55:34,218 INFO [Environment] using JDK 1.4 java.sql.Timestamp handling 13:55:34,577 INFO [Configuration] configuring from resource: /config/node1/hibernate.cfg.xml 13:55:34,577 INFO [Configuration] Configuration resource: /config/node1/hibernate.cfg.xml 13:55:34,811 WARN [Environment] Property [hibernate.cglib.use_reflection_optimizer] has been renamed to [hibernate.bytecode.use_reflection_optimizer]; update your properties appropriately 13:55:34,811 INFO [Configuration] Reading mappings from resource : com/jdsu/netanalyst/common/beans/ResourceMapping.hbm.xml 13:55:34,858 INFO [Configuration] Configured SessionFactory: null 13:55:35,124 INFO [HbmBinder] Mapping class: com.jdsu.netanalyst.common.beans.ResourceMapping -> RESOURCE_MAP 13:55:35,671 WARN [Environment] Property [hibernate.cglib.use_reflection_optimizer] has been renamed to [hibernate.bytecode.use_reflection_optimizer]; update your properties appropriately 13:55:35,702 INFO [DriverManagerConnectionProvider] Using Hibernate built-in connection pool (not for production use!) 13:55:35,702 INFO [DriverManagerConnectionProvider] Hibernate connection pool size: 20 13:55:35,702 INFO [DriverManagerConnectionProvider] autocommit mode: false 13:55:35,702 INFO [DriverManagerConnectionProvider] using driver: oracle.jdbc.driver.OracleDriver at URL: xxxxxxxxxxxx 13:55:35,702 INFO [DriverManagerConnectionProvider] connection properties: {user=xxx, password=xxx} 13:55:35,702 WARN [SettingsFactory] 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.<init>(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.<init>(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)

{quote}This thread was imported from the previous forum. For your reference, the original is [available here|http://forum.openspaces.org/thread.jspa?threadID=1899]{quote}

asked 2008-04-23 13:00:00 -0500

wasefmasood gravatar image

updated 2013-08-08 09:52:00 -0500

jaissefsfex gravatar image
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

Any special reason using JBoss scoped class loading?
Shay

answered 2008-04-25 21:00:08 -0500

shay hassidim gravatar image
edit flag offensive delete link more

Comments

wasefmasood gravatar imagewasefmasood ( 2008-04-28 10:09:41 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2008-04-23 13:00:00 -0500

Seen: 98 times

Last updated: Apr 25 '08