Good day to all,
I have been trying, unsuccesfully, to deploy my .sar in JBoss 4.x (I tried both with 4.0.1SP1 as with 4.0.4). By the look of it, it seems like it's trying to deploy the .sar before setting up the datasource, even thou the jboss-service declares the .sar dependant on the datasource.
Any ideas?
Regards
domyalex
Hibernate version:
2.1.7 (cannot use 3.x due to database limitations)
Full stack trace of any exception that occurs:
[...]
2006-07-19 17:47:09,953 INFO [net.sf.hibernate.dialect.Dialect] Using dialect: com.tu.hibernate.CacheDialect
2006-07-19 17:47:09,953 INFO [net.sf.hibernate.cfg.SettingsFactory] Use outer join fetching: true
2006-07-19 17:47:09,968 INFO [net.sf.hibernate.util.NamingHelper] JNDI InitialContext properties:{}
2006-07-19 17:47:09,968 FATAL [DatasourceConnectionProvider] Could not find datasource: java:/CacheDS
javax.naming.NameNotFoundException: CacheDS not bound
at org.jnp.server.NamingServer.getBinding(NamingServer.java:529)
at org.jnp.server.NamingServer.getBinding(NamingServer.java:537)
at org.jnp.server.NamingServer.getObject(NamingServer.java:543)
at org.jnp.server.NamingServer.lookup(NamingServer.java:296)
[...]
2006-07-19 17:47:10,062 INFO [net.sf.hibernate.jmx.HibernateServiceMBean] Could not build SessionFactory using the MBean classpath - will try again using client classpath: Could not find datasource
[...]
2006-07-19 17:47:10,109 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jb
oss.jca:service=DataSourceBinding,name=CacheDS' to JNDI name 'java:CacheDS'
Name and version of the database you are using:
Intersystem's Cache 5.0.16
cache-ds.xml
Code:
<datasources>
<local-tx-datasource>
<!-- The jndi name of the DataSource, it is prefixed with java:/ -->
<!-- Datasources are not available outside the virtual machine -->
<jndi-name>CacheDS</jndi-name>
[...]
</local-tx-datasource>
</datasources>
jboss-service.xmlCode:
<server>
<mbean code="net.sf.hibernate.jmx.HibernateService"
name="jboss.jca:service=HibernateFactory,name=HibernateFactory">
<depends>jboss.jca:service=RARDeployer</depends>
<depends>jboss.jca:name=CacheDS,service=LocalTxCM</depends>
<attribute name="Datasource">java:/CacheDS</attribute>
<attribute name="Dialect">com.tu.hibernate.CacheDialect</attribute>
<attribute name="JndiName">java:/hibernate/SessionFactory/tu-persistence</attribute>
<attribute name="CacheProvider">org.hibernate.cache.HashtableCacheProvider</attribute>
<attribute name="ShowSql">false</attribute>
<attribute name="MapResources">
[...]
</attribute>
</mbean>
</server>