-->
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.  [ 3 posts ] 
Author Message
 Post subject: Problems deploying SAR in JBoss 3.2.3
PostPosted: Wed Feb 18, 2004 12:43 pm 
Pro
Pro

Joined: Wed Oct 08, 2003 10:31 am
Posts: 247
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.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 18, 2004 5:52 pm 
Expert
Expert

Joined: Fri Nov 07, 2003 4:24 am
Posts: 315
Location: Cape Town, South Africa
The HibernateService class is included in the hibernate jar.

Have you put the hibernate jar (hibernate2.jar) in the lib directory of the server that you are running?

i.e. in JBOSS_HOME/server/[your server config - eg default]/lib

Justin


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 18, 2004 5:59 pm 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
I have the sar and the hibernate jars in an ear, with the manifest file of the sar having a CLASSPATH entry which lists the hibernate jar files. Works fine.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

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.