hi all
i am using jboss 3 with hibernate 2.1.2 and mysql
i have followed the
http://www.hibernate.org/66.html and was trying to deploy a hibernate application in to the jboss
i created .sar as tutorial mentioned. and also i put the musql-service.xml file in to the jboss_home/deploy/default..
here is my jboss-service.xml
<server>
<mbean code="net.sf.hibernate.jmx.HibernateService" name="jboss.jca:service=HibernateFactory,name=HibernateFactory">
<depends>jboss.jca:service=RARDeployer</depends>
<!-- Make it deploy ONLY after DataSource had been started
-->
<depends>jboss.jca:service=LocalTxCM,name=MySqlDS</depends>
<attribute name="MapResources">com/virtusa/example/data/Order.hbm.xml,com/virtusa/example/data/OrderItem.hbm.xml,com/virtusa/example/data/Product.hbm.xml,com/virtusa/example/data/Use.hbm.xml</attribute>
<attribute name="JndiName">java:/hibernate/HibernateFactory</attribute>
<attribute name="Datasource">java:/MySqlDS</attribute>
<attribute name="Dialect">net.sf.hibernate.transaction.MySQLDialect</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>
when i was going to deploy the application following eoorrs occur.
at org.jboss.deployment.SARDeployer.parseDocument(SARDeployer.java:612)
... 16 more
13:23:57,694 INFO [MainDeployer] Starting deployment of package: file:/E:/jboss
-3.0.6_tomcat-4.1.18/server/default/deploy/hibernate.sar
2188466 [ScannerThread] INFO org.jboss.deployment.MainDeployer - Starting deplo
yment of package: file:/E:/jboss-3.0.6_tomcat-4.1.18/server/default/deploy/hiber
nate.sar
2188466 [ScannerThread] DEBUG org.jboss.deployment.MainDeployer - Starting depl
oyment (init step) of package at: file:/E:/jboss-3.0.6_tomcat-4.1.18/server/defa
ult/deploy/hibernate.sar
2188481 [ScannerThread] DEBUG org.jboss.mx.loading.UnifiedClassLoader - New jmx
UCL with url file:/E:/jboss-3.0.6_tomcat-4.1.18/server/default/tmp/deploy/serve
r/default/deploy/hibernate.sar/27.hibernate.sar
2188481 [ScannerThread] DEBUG org.jboss.mx.loading.UnifiedLoaderRepository3 - A
dding org.jboss.mx.loading.UnifiedClassLoader3@8de972{ url=file:/E:/jboss-3.0.6_
tomcat-4.1.18/server/default/tmp/deploy/server/default/deploy/hibernate.sar/27.h
ibernate.sar ,addedOrder=0}
2188481 [ScannerThread] DEBUG org.jboss.mx.loading.ClassLoaderUtils - Multiple
class loaders found for pkg: com.virtusa.example.data
2188481 [ScannerThread] DEBUG org.jboss.mx.loading.ClassLoaderUtils - Multiple
class loaders found for pkg: com.virtusa.example
2188481 [ScannerThread] DEBUG org.jboss.mx.loading.ClassLoaderUtils - Multiple
class loaders found for pkg: com
2188481 [ScannerThread] DEBUG org.jboss.mx.loading.ClassLoaderUtils - Multiple
class loaders found for pkg: com.virtusa
2188481 [ScannerThread] DEBUG org.jboss.deployment.MainDeployer - using deploye
r org.jboss.deployment.SARDeployer@c832d2
2188481 [ScannerThread] DEBUG org.jboss.deployment.SARDeployer - about to copy
0 local directories
2188481 [ScannerThread] DEBUG org.jboss.deployment.MainDeployer - found 0 subpa
ckages of file:/E:/jboss-3.0.6_tomcat-4.1.18/server/default/deploy/hibernate.sar
2188481 [ScannerThread] DEBUG org.jboss.deployment.MainDeployer - Watching new
file: file:/E:/jboss-3.0.6_tomcat-4.1.18/server/default/deploy/hibernate.sar
2188481 [ScannerThread] DEBUG org.jboss.deployment.MainDeployer - create step f
or deployment file:/E:/jboss-3.0.6_tomcat-4.1.18/server/default/deploy/hibernate
.sar
2188481 [ScannerThread] DEBUG org.jboss.deployment.SARDeployer - Deploying SAR,
create step: url file:/E:/jboss-3.0.6_tomcat-4.1.18/server/default/deploy/hiber
nate.sar
2188481 [ScannerThread] DEBUG org.jboss.deployment.SARDeployer - Registering se
rvice UCL=jmx.loading:UCL=8de972
2188481 [ScannerThread] DEBUG org.jboss.system.ServiceCreator - About to create
bean: jboss.jca:service=HibernateFactory,name=HibernateFactory
2188481 [ScannerThread] DEBUG org.jboss.system.ServiceCreator - code: net.sf.hi
bernate.jmx.HibernateService
13:23:57,725 ERROR [MainDeployer] could not create deployment: file:/E:/jboss-3.
0.6_tomcat-4.1.18/server/default/deploy/hibernate.sar
org.jboss.deployment.DeploymentException: instantiating net.sf.hibernate.jmx.Hib
ernateService failed: java.lang.NoClassDefFoundError: org/apache/commons/logging
/LogFactory; - nested throwable: (RuntimeErrorException: instantiating net.sf.hi
bernate.jmx.HibernateService failed: java.lang.NoClassDefFoundError: org/apache/
commons/logging/LogFactory
Cause: java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory)
at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java
:153)
at org.jboss.system.ServiceController.install(ServiceController.java:231
)
at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
nDispatcher.java:284)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
at $Proxy2.install(Unknown Source)
at org.jboss.deployment.SARDeployer.create(SARDeployer.java:189)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:766)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:626)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:591)
at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
nDispatcher.java:284)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
at $Proxy3.deploy(Unknown Source)
at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymen
tScanner.java:435)
at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentS
canner.java:561)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
doScan(AbstractDeploymentScanner.java:212)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
loop(AbstractDeploymentScanner.java:225)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
run(AbstractDeploymentScanner.java:202)
Caused by: RuntimeErrorException: instantiating net.sf.hibernate.jmx.HibernateSe
rvice failed: java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFact
ory
Cause: java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
at org.jboss.mx.server.MBeanServerImpl.handleInstantiateExceptions(MBean
ServerImpl.java:883)
at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:
816)
at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:
266)
at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:
293)
at org.jboss.system.ServiceCreator.install(ServiceCreator.java:86)
at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigura
tor.java:165)
at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java
:128)
... 24 more
2188497 [ScannerThread] ERROR org.jboss.deployment.MainDeployer - could not cre
ate deployment: file:/E:/jboss-3.0.6_tomcat-4.1.18/server/default/deploy/hiberna
te.sar
org.jboss.deployment.DeploymentException: instantiating net.sf.hibernate.jmx.Hib
ernateService failed: java.lang.NoClassDefFoundError: org/apache/commons/logging
/LogFactory; - nested throwable: (RuntimeErrorException: instantiating net.sf.hi
bernate.jmx.HibernateService failed: java.lang.NoClassDefFoundError: org/apache/
commons/logging/LogFactory
Cause: java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory)
at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java
:153)
at org.jboss.system.ServiceController.install(ServiceController.java:231
)
at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
nDispatcher.java:284)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
at $Proxy2.install(Unknown Source)
at org.jboss.deployment.SARDeployer.create(SARDeployer.java:189)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:766)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:626)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:591)
at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
nDispatcher.java:284)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
at $Proxy3.deploy(Unknown Source)
at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymen
tScanner.java:435)
at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentS
canner.java:561)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
doScan(AbstractDeploymentScanner.java:212)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
loop(AbstractDeploymentScanner.java:225)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
run(AbstractDeploymentScanner.java:202)
Caused by: RuntimeErrorException: instantiating net.sf.hibernate.jmx.HibernateSe
rvice failed: java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFact
ory
Cause: java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
at org.jboss.mx.server.MBeanServerImpl.handleInstantiateExceptions(MBean
ServerImpl.java:883)
at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:
816)
at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:
266)
at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:
293)
at org.jboss.system.ServiceCreator.install(ServiceCreator.java:86)
at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigura
tor.java:165)
at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java
:128)
... 24 more
13:23:57,725 ERROR [URLDeploymentScanner] Failed to deploy: org.jboss.deployment
.scanner.URLDeploymentScanner$DeployedURL@f0105f4a{ url=file:/E:/jboss-3.0.6_tom
cat-4.1.18/server/default/deploy/hibernate.sar, deployedLastModified=10947144198
00 }
org.jboss.deployment.DeploymentException: instantiating net.sf.hibernate.jmx.Hib
ernateService failed: java.lang.NoClassDefFoundError: org/apache/commons/logging
/LogFactory; - nested throwable: (RuntimeErrorException: instantiating net.sf.hi
bernate.jmx.HibernateService failed: java.lang.NoClassDefFoundError: org/apache/
commons/logging/LogFactory
Cause: java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory)
at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java
:153)
at org.jboss.system.ServiceController.install(ServiceController.java:231
)
at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
nDispatcher.java:284)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
at $Proxy2.install(Unknown Source)
at org.jboss.deployment.SARDeployer.create(SARDeployer.java:189)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:766)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:626)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:591)
at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
nDispatcher.java:284)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
at $Proxy3.deploy(Unknown Source)
at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymen
tScanner.java:435)
at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentS
canner.java:561)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
doScan(AbstractDeploymentScanner.java:212)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
loop(AbstractDeploymentScanner.java:225)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
run(AbstractDeploymentScanner.java:202)
Caused by: RuntimeErrorException: instantiating net.sf.hibernate.jmx.HibernateSe
rvice failed: java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFact
ory
Cause: java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
at org.jboss.mx.server.MBeanServerImpl.handleInstantiateExceptions(MBean
ServerImpl.java:883)
at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:
816)
at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:
266)
at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:
293)
at org.jboss.system.ServiceCreator.install(ServiceCreator.java:86)
at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigura
tor.java:165)
at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java
:128)
... 24 more
2188497 [ScannerThread] ERROR org.jboss.deployment.scanner.URLDeploymentScanner
- Failed to deploy: org.jboss.deployment.scanner.URLDeploymentScanner$DeployedU
RL@f0105f4a{ url=file:/E:/jboss-3.0.6_tomcat-4.1.18/server/default/deploy/hibern
ate.sar, deployedLastModified=1094714419800 }
org.jboss.deployment.DeploymentException: instantiating net.sf.hibernate.jmx.Hib
ernateService failed: java.lang.NoClassDefFoundError: org/apache/commons/logging
/LogFactory; - nested throwable: (RuntimeErrorException: instantiating net.sf.hi
bernate.jmx.HibernateService failed: java.lang.NoClassDefFoundError: org/apache/
commons/logging/LogFactory
Cause: java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory)
at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java
:153)
at org.jboss.system.ServiceController.install(ServiceController.java:231
)
at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
nDispatcher.java:284)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
at $Proxy2.install(Unknown Source)
at org.jboss.deployment.SARDeployer.create(SARDeployer.java:189)
at org.jboss.deployment.MainDeployer.create(MainDeployer.java:766)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:626)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:591)
at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:324)
at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
nDispatcher.java:284)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:517)
at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
at $Proxy3.deploy(Unknown Source)
at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymen
tScanner.java:435)
at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentS
canner.java:561)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
doScan(AbstractDeploymentScanner.java:212)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
loop(AbstractDeploymentScanner.java:225)
at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.
run(AbstractDeploymentScanner.java:202)
Caused by: RuntimeErrorException: instantiating net.sf.hibernate.jmx.HibernateSe
rvice failed: java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFact
ory
Cause: java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
at org.jboss.mx.server.MBeanServerImpl.handleInstantiateExceptions(MBean
ServerImpl.java:883)
at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:
816)
at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:
266)
at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:
293)
at org.jboss.system.ServiceCreator.install(ServiceCreator.java:86)
at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigura
tor.java:165)
at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java
:128)
... 24 more
thx and regards