-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Problem deploying sar file in JBoss 4.x
PostPosted: Wed Jul 19, 2006 6:05 pm 
Newbie

Joined: Wed May 24, 2006 10:11 am
Posts: 5
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.xml

Code:
<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>


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.