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="cirrus.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">cirrus.hibernate.sql.PostgreSQLDialect</attribute>
<!-- attribute name="TransactionStrategy">cirrus.hibernate.transaction.JTATransactionFactory</attribute
-->
<attribute name="TransactionManagerLookupStrategy">cirrus.hibernate.transaction.JBossTransactionManagerLookup</attribute>
<!-- attribute name="UseOuterJoin">false</attribute
-->
<attribute name="ShowSql">false</attribute>
<!-- attribute name="UserTransactionName">java:/UserTransaction</attribute
-->
</mbean>
</server>
when i was going to deploy the application following eoorrs occur.
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)
111205 [ScannerThread] DEBUG org.jboss.deployment.SARDeployer - create operatio
n failed for package file:/E:/jboss-3.0.6_tomcat-4.1.18/server/default/deploy/hi
bernate.sar
javax.management.InstanceNotFoundException: jboss.jca:service=HibernateFactory,n
ame=HibernateFactory is not registered. at org.jboss.mx.server.registry.BasicMBeanRegistry.get(BasicMBeanRegistr
y.java:362)
at org.jboss.mx.server.MBeanServerImpl.getMBeanInfo(MBeanServerImpl.java
:528)
at org.jboss.system.ServiceController.getServiceProxy(ServiceController.
java:763)
at org.jboss.system.ServiceController.create(ServiceController.java:290)
at org.jboss.system.ServiceController.create(ServiceController.java:253)
at sun.reflect.GeneratedMethodAccessor1.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.create(Unknown Source)
at org.jboss.deployment.SARDeployer.create(SARDeployer.java:197)
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)
111236 [ScannerThread] DEBUG org.jboss.deployment.SARDeployer - destroying mbea
n jboss.jca:service=HibernateFactory,name=HibernateFactory
111236 [ScannerThread] DEBUG org.jboss.system.ServiceController - destroying se
rvice: jboss.jca:service=HibernateFactory,name=HibernateFactory
111236 [ScannerThread] DEBUG org.jboss.deployment.SARDeployer - removing mbean
jboss.jca:service=HibernateFactory,name=HibernateFactory
111236 [ScannerThread] DEBUG org.jboss.system.ServiceController - removing serv
ice: jboss.jca:service=HibernateFactory,name=HibernateFactory
111236 [ScannerThread] DEBUG org.jboss.system.ServiceController - no need to re
move jboss.jca:service=HibernateFactory,name=HibernateFactory from server
111236 [ScannerThread] DEBUG org.jboss.deployment.SARDeployer - Unregistering s
ervice UCL=jmx.loading:UCL=156e5ed
12:49:20,464 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: jboss.jca:service=HibernateFactory,nam
e=HibernateFactory is not registered.; - nested throwable: (javax.management.Ins
tanceNotFoundException: jboss.jca:service=HibernateFactory,name=HibernateFactory
is not registered.)
at org.jboss.deployment.SARDeployer.create(SARDeployer.java:208)
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: javax.management.InstanceNotFoundException: jboss.jca:service=Hiberna
teFactory,name=HibernateFactory is not registered.
at org.jboss.mx.server.registry.BasicMBeanRegistry.get(BasicMBeanRegistr
y.java:362)
at org.jboss.mx.server.MBeanServerImpl.getMBeanInfo(MBeanServerImpl.java
:528)
at org.jboss.system.ServiceController.getServiceProxy(ServiceController.
java:763)
at org.jboss.system.ServiceController.create(ServiceController.java:290)
at org.jboss.system.ServiceController.create(ServiceController.java:253)
at sun.reflect.GeneratedMethodAccessor1.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.create(Unknown Source)
at org.jboss.deployment.SARDeployer.create(SARDeployer.java:197)
... 15 more
111236 [ScannerThread] ERROR org.jboss.deployment.MainDeployer - could not crea
te deployment: file:/E:/jboss-3.0.6_tomcat-4.1.18/server/default/deploy/hibernat
e.sar
org.jboss.deployment.DeploymentException: jboss.jca:service=HibernateFactory,nam
e=HibernateFactory is not registered.; - nested throwable: (javax.management.Ins
tanceNotFoundException: jboss.jca:service=HibernateFactory,name=HibernateFactory
is not registered.)
at org.jboss.deployment.SARDeployer.create(SARDeployer.java:208)
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: javax.management.InstanceNotFoundException: jboss.jca:service=Hiberna
teFactory,name=HibernateFactory is not registered.
at org.jboss.mx.server.registry.BasicMBeanRegistry.get(BasicMBeanRegistr
y.java:362)
at org.jboss.mx.server.MBeanServerImpl.getMBeanInfo(MBeanServerImpl.java
:528)
at org.jboss.system.ServiceController.getServiceProxy(ServiceController.
java:763)
at org.jboss.system.ServiceController.create(ServiceController.java:290)
at org.jboss.system.ServiceController.create(ServiceController.java:253)
at sun.reflect.GeneratedMethodAccessor1.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.create(Unknown Source)
at org.jboss.deployment.SARDeployer.create(SARDeployer.java:197)
... 15 more
12:49:20,558 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=10947124364
31 }
org.jboss.deployment.DeploymentException: jboss.jca:service=HibernateFactory,nam
e=HibernateFactory is not registered.; - nested throwable: (javax.management.Ins
tanceNotFoundException: jboss.jca:service=HibernateFactory,name=HibernateFactory
is not registered.)
at org.jboss.deployment.SARDeployer.create(SARDeployer.java:208)
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: javax.management.InstanceNotFoundException: jboss.jca:service=Hiberna
teFactory,name=HibernateFactory is not registered.
at org.jboss.mx.server.registry.BasicMBeanRegistry.get(BasicMBeanRegistr
y.java:362)
at org.jboss.mx.server.MBeanServerImpl.getMBeanInfo(MBeanServerImpl.java
:528)
at org.jboss.system.ServiceController.getServiceProxy(ServiceController.
java:763)
at org.jboss.system.ServiceController.create(ServiceController.java:290)
at org.jboss.system.ServiceController.create(ServiceController.java:253)
at sun.reflect.GeneratedMethodAccessor1.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.create(Unknown Source)
at org.jboss.deployment.SARDeployer.create(SARDeployer.java:197)
... 15 more
111330 [ScannerThread] ERROR org.jboss.deployment.scanner.URLDeploymentScanner
- Failed to deploy: org.jboss.deployment.scanner.URLDeploymentScanner$DeployedUR
L@f0105f4a{ url=file:/E:/jboss-3.0.6_tomcat-4.1.18/server/default/deploy/hiberna
te.sar, deployedLastModified=1094712436431 }
org.jboss.deployment.DeploymentException: jboss.jca:service=HibernateFactory,nam
e=HibernateFactory is not registered.; - nested throwable: (javax.management.Ins
tanceNotFoundException: jboss.jca:service=HibernateFactory,name=HibernateFactory
is not registered.)
at org.jboss.deployment.SARDeployer.create(SARDeployer.java:208)
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: javax.management.InstanceNotFoundException: jboss.jca:service=Hiberna
teFactory,name=HibernateFactory is not registered.
at org.jboss.mx.server.registry.BasicMBeanRegistry.get(BasicMBeanRegistr
y.java:362)
at org.jboss.mx.server.MBeanServerImpl.getMBeanInfo(MBeanServerImpl.java
:528)
at org.jboss.system.ServiceController.getServiceProxy(ServiceController.
java:763)
at org.jboss.system.ServiceController.create(ServiceController.java:290)
at org.jboss.system.ServiceController.create(ServiceController.java:253)
at sun.reflect.GeneratedMethodAccessor1.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.create(Unknown Source)
at org.jboss.deployment.SARDeployer.create(SARDeployer.java:197)
... 15 more
303160 [Thread-12] DEBUG org.jboss.ejb.plugins.LRUEnterpriseContextCachePolicy
- Resized cache for bean com.umt.service.GISFacade: old capacity = 1000000, new
capacity = 50
thx and regards
gimhan