I was using JBoss 3.2.1. Deployed the Hibernate SAR with no problems.
I installed JBoss 3.2.3 and when I tried to deploy the same SAR I got:
Code:
15:45:32,675 INFO [SARDeployer] nested deployment: file:/C:/jboss/server/arsol/
tmp/deploy/tmp4641arsol.ear-contents/arsol.sar-contents/postgres-ds.xml
15:45:34,363 WARN [ServiceConfigurator] Failed to complete install
java.lang.ClassNotFoundException: No ClassLoaders found for: net.sf.hibernate.jm
x.HibernateService
at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:161)
at org.jboss.mx.loading.UnifiedClassLoader3.loadClassImpl(UnifiedClassLo
ader3.java:169)
at org.jboss.mx.loading.UnifiedClassLoader3.loadClass(UnifiedClassLoader
3.java:123)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:
819)
at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:
291)
at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:
318)
at org.jboss.system.ServiceCreator.install(ServiceCreator.java:98)
at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigura
tor.java:151)
( ... )
15:45:34,410 ERROR [MainDeployer] could not create deployment: file:/C:/jboss/se
rver/arsol/tmp/deploy/tmp4641arsol.ear-contents/arsol.sar
org.jboss.deployment.DeploymentException: create operation failed for package fi
le:/C:/jboss/server/arsol/tmp/deploy/tmp4641arsol.ear-contents/arsol.sar; - nest
ed throwable: (javax.management.InstanceNotFoundException: jboss.jca:service=Ars
olHibernateFactory, name=ArsolHibernateFactory is no
t registered.)
at org.jboss.deployment.SARDeployer.create(SARDeployer.java:202)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:786)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:778)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:641)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:605)
at sun.reflect.GeneratedMethodAccessor20.invoke(Unknown Source)
( ... )
The SAR is in my EAR and is the following (jboss-serice.xml):
Code:
<server>
<mbean code="net.sf.hibernate.jmx.HibernateService" name="jboss.jca:service=ArsolHibernateFactory,
name=ArsolHibernateFactory">
<depends>jboss.jca:service=RARDeployer</depends>
<depends>jboss.jca:service=LocalTxCM,name=arsolDS</depends>
<!-- Make it deploy ONLY after DataSource had been started -->
<attribute name="MapResources">
mapping/Mis.hbm.xml,
mapping/Mp.hbm.xml,
mapping/Pa.hbm.xml,
mapping/Pec.hbm.xml
</attribute>
<attribute name="JndiName">java:/hibernate/ArsolHibernateFactory</attribute>
<attribute name="Datasource">java:/arsolDS</attribute>
<attribute name="Dialect">net.sf.hibernate.dialect.PostgreSQLDialect</attribute>
<attribute name="TransactionStrategy">net.sf.hibernate.transaction.JTATransactionFactory</attribute>
<attribute name="TransactionManagerLookupStrategy">net.sf.hibernate.transaction.JBossTransactionManagerLookup</attribute>
<attribute name="UseOuterJoin">false</attribute>
<attribute name="ShowSql">false</attribute>
<attribute name="UserTransactionName">UserTransaction</attribute>
</mbean>
</server>
Was there any change regarding the SAR format?
Thanks in advance.