0 Replies Latest reply on Mar 30, 2006 11:13 AM by Rafi

    Switching Hibernate2 to Hibernate3 problem - need help

    Rafi Newbie

      Hello all,
      i use:
      1. Jboss 4.0.1RC1
      2. MySQL

      when run jboss server with build-in Hibernate2 all works fine.
      based to the migrating document i changed the hibernate2 to hibernate3.
      running the server i got this exception:
      17:59:54,226 INFO [Server] Starting JBoss (MX MicroKernel)...
      17:59:54,226 INFO [Server] Release ID: JBoss [Zion] 4.0.1RC1 (build: CVSTag=JBoss_4_0_1_RC1 date=200411041143)
      17:59:54,226 INFO [Server] Home Dir: C:\jboss-4.0.1RC1
      17:59:54,236 INFO [Server] Home URL: file:/C:/jboss-4.0.1RC1/
      17:59:54,236 INFO [Server] Library URL: file:/C:/jboss-4.0.1RC1/lib/
      17:59:54,236 INFO [Server] Patch URL: null
      17:59:54,236 INFO [Server] Server Name: default
      17:59:54,236 INFO [Server] Server Home Dir: C:\jboss-4.0.1RC1\server\default
      17:59:54,236 INFO [Server] Server Home URL: file:/C:/jboss-4.0.1RC1/server/default/
      17:59:54,236 INFO [Server] Server Data Dir: C:\jboss-4.0.1RC1\server\default\data
      17:59:54,246 INFO [Server] Server Temp Dir: C:\jboss-4.0.1RC1\server\default\tmp
      17:59:54,246 INFO [Server] Server Config URL: file:/C:/jboss-4.0.1RC1/server/default/conf/
      17:59:54,246 INFO [Server] Server Library URL: file:/C:/jboss-4.0.1RC1/server/default/lib/
      17:59:54,246 INFO [Server] Root Deployment Filename: jboss-service.xml
      17:59:54,246 INFO [Server] Starting General Purpose Architecture (GPA)...
      17:59:54,807 INFO [ServerInfo] Java version: 1.5.0_01,Sun Microsystems Inc.
      17:59:54,807 INFO [ServerInfo] Java VM: Java HotSpot(TM) Client VM 1.5.0_01-b08,Sun Microsystems Inc.
      17:59:54,807 INFO [ServerInfo] OS-System: Windows XP 5.1,x86
      17:59:55,228 INFO [Server] Core system initialized
      17:59:57,992 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:log4j.xml
      17:59:58,102 INFO [WebService] Using RMI server codebase: http://raphaele:8083/
      17:59:58,482 INFO [NamingService] Started jndi bootstrap jnpPort=1099, rmiPort=1098, backlog=50, bindAddress=/0.0.0.0, Client SocketFactory=null, Server SocketFactory=org.jboss.net.sockets.DefaultSocketFactory@ad093076
      18:00:09,668 ERROR [MainDeployer] could not create deployment: file:/C:/jboss-4.0.1RC1/server/default/deploy/jboss-hibernate.deployer/
      org.jboss.deployment.DeploymentException: - nested throwable: (java.lang.reflect.UndeclaredThrowableException)
      at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:143)
      at org.jboss.system.ServiceController.install(ServiceController.java:200)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:175)
      at $Proxy4.install(Unknown Source)
      at org.jboss.deployment.SARDeployer.create(SARDeployer.java:208)
      at org.jboss.deployment.MainDeployer.create(MainDeployer.java:898)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:754)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:718)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:122)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:131)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:175)
      at $Proxy8.deploy(Unknown Source)
      at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:305)
      at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:481)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:204)
      at org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:277)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:272)
      at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:222)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
      at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:891)
      at $Proxy0.start(Unknown Source)
      at org.jboss.system.ServiceController.start(ServiceController.java:416)
      at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:175)
      at $Proxy4.start(Unknown Source)
      at org.jboss.deployment.SARDeployer.start(SARDeployer.java:261)
      at org.jboss.deployment.MainDeployer.start(MainDeployer.java:944)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:755)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:718)
      at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:702)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:585)
      at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:144)
      at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
      at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:122)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
      at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:131)
      at org.jboss.mx.server.Invocation.invoke(Invocation.java:74)
      at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:249)
      at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
      at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:175)
      at $Proxy5.deploy(Unknown Source)
      at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:413)
      at org.jboss.system.server.ServerImpl.start(ServerImpl.java:310)
      at org.jboss.Main.boot(Main.java:151)
      at org.jboss.Main$1.run(Main.java:405)
      at java.lang.Thread.run(Thread.java:595)
      Caused by: java.lang.reflect.UndeclaredThrowableException
      at org.jboss.system.ServiceCreator.install(ServiceCreator.java:204)
      at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:153)
      at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:118)
      ... 82 more
      Caused by: java.lang.NoSuchMethodError: org.jboss.hibernate.har.HARDeployer.setSuffixes([Ljava/lang/String;)V
      at org.jboss.hibernate.har.HARDeployer.(HARDeployer.java:67)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
      at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
      at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:1212)
      at org.jboss.mx.server.MBeanServerImpl.instantiate(MBeanServerImpl.java:269)
      at org.jboss.mx.server.MBeanServerImpl.createMBean(MBeanServerImpl.java:327)
      at org.jboss.system.ServiceCreator.install(ServiceCreator.java:125)
      ... 84 more
      18:00:12,993 INFO [Embedded] Catalina naming disabled
      18:00:13,874 INFO [Http11Protocol] Initializing Coyote HTTP/1.1 on http-0.0.0.0-8080
      18:00:13,914 INFO [Catalina] Initialization processed in 831 ms
      18:00:13,914 INFO [StandardService] Starting service jboss.web
      18:00:13,925 INFO [StandardEngine] Starting Servlet Engine: Apache Tomcat/5.0.28
      18:00:13,975 INFO [StandardHost] XML validation disabled
      18:00:14,015 INFO [Catalina] Server startup in 101 ms
      18:00:14,285 INFO [TomcatDeployer] deploy, ctxPath=/ebxmlrr, warUrl=file:/C:/jboss-4.0.1RC1/server/default/deploy/ebxmlrr-service.sar/ebxmlrr.war/
      18:00:15,166 INFO [STDOUT] Initialized REST
      18:00:15,276 INFO [SAAJServlet] init
      18:00:15,997 INFO [SAAJServlet] init
      18:00:16,338 INFO [TomcatDeployer] deploy, ctxPath=/ws4ee, warUrl=file:/C:/jboss-4.0.1RC1/server/default/tmp/deploy/tmp45590jboss-ws4ee-exp.war/
      18:00:16,598 INFO [TomcatDeployer] deploy, ctxPath=/, warUrl=file:/C:/jboss-4.0.1RC1/server/default/deploy/jbossweb-tomcat50.sar/ROOT.war/
      18:00:17,920 INFO [STDOUT] [ jacorb.home unset! Will use '.' ]
      18:00:17,920 INFO [STDOUT] [ File .\jacorb.properties for configuration jacorb not found ]
      18:00:18,231 INFO [interceptors] InterceptorManager started with 2 SIs, 2 CIs and 4 IORIs
      18:00:18,471 INFO [orb] ORB run
      18:00:18,671 INFO [CorbaNamingService] Naming: [IOR:000000000000002B49444C3A6F6D672E6F72672F436F734E616D696E672F4E616D696E67436F6E746578744578743A312E3000000000000200000000000000E8000102000000000E3139322E3136382E322E313030000DC8000000114A426F73732F4E616D696E672F726F6F74000000000000060000000000000008000000004A414300000000010000001C0000000000010001000000010501000100010109000000010501000100000014000000080000001A00000DC9000000210000005000000000000000010000000000000024000000200000007E00000000000000010000000E3139322E3136382E322E313030000DC9000000000000000000000000000000000000000000000000000000000000002000000004000000000000001F000000040000000300000001000000440000000000000003000000010000001C000000000001000100000001050100010001010900000001050100010000002000000004000000000000001F0000000400000003]
      18:00:19,072 INFO [naming] re-Bound name: TransactionService
      18:00:19,072 INFO [CorbaTransactionService] TransactionFactory: [IOR:000000000000003049444C3A6F72672F6A626F73732F746D2F69696F702F5472616E73616374696F6E466163746F72794578743A312E30000000000200000000000000E8000102000000000E3139322E3136382E322E313030000DC8000000144A426F73732F5472616E73616374696F6E732F46000000060000000000000008000000004A414300000000010000001C0000000000010001000000010501000100010109000000010501000100000014000000080000001A00000DC9000000210000005000000000000000010000000000000024000000200000007E00000000000000010000000E3139322E3136382E322E313030000DC9000000000000000000000000000000000000000000000000000000000000002000000004000000000000001F000000040000000300000001000000440000000000000003000000010000001C000000000001000100000001050100010001010900000001050100010000002000000004000000000000001F0000000400000003]
      18:00:19,072 INFO [naming] re-Bound name: UserTransaction
      18:00:20,694 INFO [RARDeployment] Required license terms exist view the META-INF/ra.xml: file:/C:/jboss-4.0.1RC1/server/default/deploy/jboss-local-jdbc.rar
      18:00:20,905 INFO [RARDeployment] Required license terms exist view the META-INF/ra.xml: file:/C:/jboss-4.0.1RC1/server/default/deploy/jboss-xa-jdbc.rar
      18:00:21,115 INFO [RARDeployment] Required license terms exist view the META-INF/ra.xml: file:/C:/jboss-4.0.1RC1/server/default/deploy/jms/jms-ra.rar
      18:00:22,988 INFO [WrapperDataSourceService] Bound connection factory for resource adapter for ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS to JNDI name 'java:DefaultDS'
      18:00:23,709 INFO [ConnectionFactoryBindingService] Bound connection factory for resource adapter for ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA to JNDI name 'java:JmsXA'
      18:00:23,769 INFO [WrapperDataSourceService] Bound connection factory for resource adapter for ConnectionManager 'jboss.jca:service=DataSourceBinding,name=MySqlDS to JNDI name 'java:MySqlDS'
      18:00:24,750 INFO [A] Bound to JNDI name: queue/A
      18:00:24,760 INFO [B] Bound to JNDI name: queue/B
      18:00:24,760 INFO [C] Bound to JNDI name: queue/C
      18:00:24,770 INFO [D] Bound to JNDI name: queue/D
      18:00:24,770 INFO [ex] Bound to JNDI name: queue/ex
      18:00:25,391 INFO [testTopic] Bound to JNDI name: topic/testTopic
      18:00:25,401 INFO [securedTopic] Bound to JNDI name: topic/securedTopic
      18:00:25,401 INFO [testDurableTopic] Bound to JNDI name: topic/testDurableTopic
      18:00:25,421 INFO [testQueue] Bound to JNDI name: queue/testQueue
      18:00:25,441 INFO [DLQ] Bound to JNDI name: queue/DLQ
      18:00:26,052 INFO [UILServerILService] JBossMQ UIL service available at : /0.0.0.0:8093
      18:00:27,073 INFO [MailService] Mail Service bound to java:/Mail
      18:00:27,464 INFO [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=file:/C:/jboss-4.0.1RC1/server/default/deploy/jmx-console.war/
      18:00:27,865 INFO [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=file:/C:/jboss-4.0.1RC1/server/default/deploy/management/web-console.war/
      18:00:46,742 ERROR [URLDeploymentScanner] Incomplete Deployment listing:
      Incompletely deployed packages:
      org.jboss.deployment.DeploymentInfo@c6ace5e3 { url=file:/C:/jboss-4.0.1RC1/server/default/deploy/jboss-hibernate.deployer/antlr-2.7.5H3.jar }
      deployer: org.jboss.deployment.JARDeployer@1dfd868
      status: Created
      state: CREATED
      watch: file:/C:/jboss-4.0.1RC1/server/default/deploy/jboss-hibernate.deployer/antlr-2.7.5H3.jar
      altDD: null
      lastDeployed: 1143734408707
      lastModified: 1143734408607
      mbeans:

      org.jboss.deployment.DeploymentInfo@7fbe966 { url=file:/C:/jboss-4.0.1RC1/server/default/deploy/jboss-hibernate.deployer/asm-attrs.jar }
      deployer: org.jboss.deployment.JARDeployer@1dfd868
      status: Created
      state: CREATED
      watch: file:/C:/jboss-4.0.1RC1/server/default/deploy/jboss-hibernate.deployer/asm-attrs.jar
      altDD: null
      lastDeployed: 1143734408747
      lastModified: 1143734408737
      mbeans:

      org.jboss.deployment.DeploymentInfo@38803611 { url=file:/C:/jboss-4.0.1RC1/server/default/deploy/jboss-hibernate.deployer/asm.jar }
      deployer: org.jboss.deployment.JARDeployer@1dfd868
      status: Created
      state: CREATED
      watch: file:/C:/jboss-4.0.1RC1/server/default/deploy/jboss-hibernate.deployer/asm.jar
      altDD: null
      lastDeployed: 1143734408777
      lastModified: 1143734408767
      mbeans:

      org.jboss.deployment.DeploymentInfo@deca235f { url=file:/C:/jboss-4.0.1RC1/server/default/deploy/jboss-hibernate.deployer/cglib-2.1.jar }
      deployer: org.jboss.deployment.JARDeployer@1dfd868
      status: Created
      state: CREATED
      watch: file:/C:/jboss-4.0.1RC1/server/default/deploy/jboss-hibernate.deployer/cglib-2.1.jar
      altDD: null
      lastDeployed: 1143734408907
      lastModified: 1143734408817
      mbeans:

      org.jboss.deployment.DeploymentInfo@7e3e43c4 { url=file:/C:/jboss-4.0.1RC1/server/default/deploy/jboss-hibernate.deployer/hibernate-metadata.jar }
      deployer: org.jboss.deployment.JARDeployer@1dfd868
      status: Created
      state: CREATED
      watch: file:/C:/jboss-4.0.1RC1/server/default/deploy/jboss-hibernate.deployer/hibernate-metadata.jar
      altDD: null
      lastDeployed: 1143734408937
      lastModified: 1143734408927
      mbeans:

      org.jboss.deployment.DeploymentInfo@66dd421b { url=file:/C:/jboss-4.0.1RC1/server/default/deploy/jboss-hibernate.deployer/hibernate3.jar }
      deployer: org.jboss.deployment.JARDeployer@1dfd868
      status: Created
      state: CREATED
      watch: file:/C:/jboss-4.0.1RC1/server/default/deploy/jboss-hibernate.deployer/hibernate3.jar
      altDD: null
      lastDeployed: 1143734409398
      lastModified: 1143734409037
      mbeans:

      org.jboss.deployment.DeploymentInfo@5cd57ef2 { url=file:/C:/jboss-4.0.1RC1/server/default/deploy/jboss-hibernate.deployer/jboss-hibernate.jar }
      deployer: org.jboss.deployment.JARDeployer@1dfd868
      status: Created
      state: CREATED
      watch: file:/C:/jboss-4.0.1RC1/server/default/deploy/jboss-hibernate.deployer/jboss-hibernate.jar
      altDD: null
      lastDeployed: 1143734409438
      lastModified: 1143734409428
      mbeans:

      org.jboss.deployment.DeploymentInfo@b236f611 { url=file:/C:/jboss-4.0.1RC1/server/default/deploy/jboss-hibernate.deployer/odmg-3.0.jar }
      deployer: org.jboss.deployment.JARDeployer@1dfd868
      status: Created
      state: CREATED
      watch: file:/C:/jboss-4.0.1RC1/server/default/deploy/jboss-hibernate.deployer/odmg-3.0.jar
      altDD: null
      lastDeployed: 1143734409458
      lastModified: 1143734409448
      mbeans:

      org.jboss.deployment.DeploymentInfo@cafa7ccd { url=file:/C:/jboss-4.0.1RC1/server/default/deploy/jboss-hibernate.deployer/ }
      deployer: org.jboss.deployment.SARDeployer@1021f34
      status: Deployment FAILED reason: - nested throwable: (java.lang.reflect.UndeclaredThrowableException)
      state: FAILED
      watch: file:/C:/jboss-4.0.1RC1/server/default/deploy/jboss-hibernate.deployer/META-INF/jboss-service.xml
      altDD: null
      lastDeployed: 1143734409458
      lastModified: 1143733881319
      mbeans:


      18:00:47,052 INFO [Http11Protocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-8080
      18:00:47,483 INFO [ChannelSocket] JK2: ajp13 listening on /0.0.0.0:8009
      18:00:47,493 INFO [JkMain] Jk running ID=0 time=0/231 config=null
      18:00:47,503 INFO [Server] JBoss (MX MicroKernel) [4.0.1RC1 (build: CVSTag=JBoss_4_0_1_RC1 date=200411041143)] Started in 52s:736ms


      it seems the problem is in jboss-service.xml.
      can someone help?please.