-->
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: NoClassLoadersfound4 : net.sf.hibernate.jmx.HibernateService
PostPosted: Wed Jun 27, 2007 12:49 am 
Newbie

Joined: Fri May 25, 2007 3:43 am
Posts: 4
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.


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.