i following instruction on
http://www.hibernate.org/66.html. and generate hibernate sar file called hibernateStartup.sar.
it is my hibernateStartup.sar look like.
<server>
<mbean code="net.sf.hibernate.jmx.HibernateService"
name="jboss.jca:service=Hibernate">
<depends>jboss.jca:service=RARDeployer</depends>
<attribute
name="MapResources">com/creativesol/erp4all/model/Inventory.hbm.xm l</attribute>
<attribute name="JndiName">java:/HibernateFactory</attribute>
<attribute name="Datasource">java:/MySqlDSERP4ALL</attribute>
<attribute name="Dialect">net.sf.hibernate.dialect.MySQLDialect</attribute>
<attribute name="UseOuterJoin">true</attribute>
<attribute name="ShowSql">false</attribute>
<attribute name="UserTransactionName">UserTransaction</attribute>
<attribute name="TransactionStrategy">net.sf.hibernate.transaction.JTATransactionFactory</attribute>
<attribute name="TransactionManagerLookupStrategy">net.sf.hibernate.transaction.JBossTransactionManagerLookup</attribute>
</mbean>
</server>
then i copy this file to my jboss/server/deploy and run the jboss. but i got error message :
...
2004-03-03 13:19:25,156 INFO [net.sf.hibernate.cfg.Configuration]
processing foreign key constraints
2004-03-03 13:19:25,234 INFO [net.sf.hibernate.dialect.Dialect] Using
dialect: net.sf.hibernate.dialect.MySQLDialect
2004-03-03 13:19:25,234 INFO [net.sf.hibernate.cfg.SettingsFactory] Use
outer join fetching: true
2004-03-03 13:19:25,250 INFO [net.sf.hibernate.util.NamingHelper] JNDI
InitialContext properties:{}
2004-03-03 13:19:25,265 FATAL
[net.sf.hibernate.connection.DatasourceConnectionProvider] Could
not find datasource: java:/MySqlDSERP4ALL
javax.naming.NameNotFoundException: MySqlDSERP4ALL not bound
at org.jnp.server.NamingServer.getBinding(NamingServer.java:495)
...
someone can help me to solve this promble? thanks