-
Bug
-
Resolution: Done
-
Major
-
JBossAS-4.0.2 Final
-
None
-
Compatibility/Configuration
works in 4.0.1 sp1, but not in 4.0.2.
THis is the way I replicate the issue. Create exploded directories as follows (see test.ear.zip attached). And put the exploded test.ear directory in the server deploy directory.
- test.ear
-
- meta-inf
-
- application.xml
- jboss-app.xml
-
- meta-inf
- test.har
- meta-inf
-
- hibernate-service.xml
-
- meta-inf
-
I didn't include hibernate classes/mappings to simplify the case.
In 4.0.1sp1, hibernate-service.xml is deployed because java:/hibernate/SessionFactory is bound in jmx-console. In 4.0.2 version, sessionfactory jndi is not bound - and I suspect hibernate-service.xml is not deployed.
======================================
<application>
<display-name>My Application</display-name>
</application>
<mbean code="org.jboss.hibernate.jmx.Hibernate"
name="jboss.har:service=Hibernate">
<attribute name="DatasourceName">java:/DefaultDS</attribute>
<attribute name="Dialect">org.hibernate.dialect.HSQLDialect</attribute>
<attribute name="SessionFactoryName">java:/hibernate/SessionFactory</attribute>
</mbean>
<jboss-app>
<module>
<har>test.har</har>
</module>
</jboss-app>