Hi,
I tried to deploy a hibernate application with Servlet as a Managed service in Jboss application server. I am getting the following error when starting the server,
"Caused by: java.lang.ClassNotFoundException: No ClassLoaders found for: net.sf.hibernate.jmx.HibernateService at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:198)"
I deployed the application as an EAR file with the following directory structure,
ite.EAR
--- META-INF
--------- Manifest.mft
--------- application.xml
--------- jboss-app.xml
--- lib
-------- hibernate3.jar
--- Hib.SAR
------- lib
--------- hibernate3.jar
------- META-INF
--------- Manifest.mft
--------- jboss-service.xml
------- UserDefined Package
--------- HBM & POJO
--- Serv.WAR
------- WEB-INF
--------- classes
----------- ServletClass
--------- web.xml
------- META-INF
--------- Manifest.mft
--------- application.xml
jboss-service.xml
<?xml version="1.0"?>
<server>
<mbean code="net.sf.hibernate.jmx.HibernateService" name="jboss.jca:service=Hibernate">
<depends>jboss.jca:service=RARDeployer</depends>
<attribute name="MapResources">
persistance\work\Work.hbm.xml,
persistance\work\Dependency.hbm.xml,
</attribute>
<attribute name="JndiName">java:/HibernateFactory</attribute>
<attribute name="Datasource">java:/WorkDS</attribute>
<attribute name="Dialect">net.sf.hibernate.dialect.OracleDialect</attribute>
<attribute name="ShowSql">true</attribute>
<attribute name="TransactionStrategy">net.sf.hibernate.transaction.JTATransactionFactory</attribute>
<attribute name="TransactionManagerLookupStrategy">net.sf.hibernate.transaction.JBossTransactionManagerLookup</attribute>
</mbean>
</server>
application.xml
<?xml version="1.0" encoding="ISO-8859-1"?>
<application>
<display-name>Work Allocator</display-name>
<module>
<web>
<web-uri>Serv.war</web-uri>
<context-root>/work</context-root>
</web>
</module>
</application>
jboss-app.xml
<!DOCTYPE
jboss-app PUBLIC "-//JBoss//DTD J2EE Application 1.4//EN"
"http://www.jboss.org/j2ee/dtd/jboss-app_4_0.dtd">
<jboss-app>
<module>
<service>Hib.sar</service>
</module>
</jboss-app>
can anyone tell me the solution for this issue?
Thanks in advance.
|