6 Replies Latest reply on Jun 16, 2011 4:03 PM by Strong Liu

    Facing error with JBoss 6.0.0 Final intergration with Hibernate 3.6.5 Final

    Ariram K Newbie

      Folks,

           We are using JBoss 6.0.0 Final version for our application and i am facing following issue while intergrating with Hibernate 3.6.5 Final

       

       

      21:26:46,937 INFO  [Version] Hibernate Commons Annotations 3.2.0.Final

      21:26:46,953 INFO  [Environment] Hibernate 3.6.5.Final

      21:26:46,968 INFO  [Environment] hibernate.properties not found

      21:26:46,968 INFO  [Environment] Bytecode provider name : javassist

      21:26:46,984 INFO  [Environment] using JDK 1.4 java.sql.Timestamp handling

      21:26:47,265 INFO  [STDOUT] HibernateUtil - /sds/db.properties

      21:26:47,265 INFO  [STDOUT] propertyFile - /sds/db.properties

      21:26:47,265 INFO  [STDOUT] is - java.io.FileInputStream@18957f4

      21:26:47,265 INFO  [STDOUT] configFile - /sds/sqlserver

      21:26:47,265 INFO  [Configuration] configuring from resource: hibernate.cfg.xml

      21:26:47,265 INFO  [Configuration] Configuration resource: hibernate.cfg.xml

      21:26:47,296 INFO  [Configuration] Reading mappings from resource : hbm/common/CustomPrimaryIdGenerator.hbm.xml

      21:26:47,375 INFO  [Configuration] Reading mappings from resource : hbm/common/AuditTrail.hbm.xml

      21:26:47,437 INFO  [Configuration] Reading mappings from resource : hbm/common/Label.hbm.xml

      21:26:47,531 INFO  [Configuration] Reading mappings from resource : hbm/common/Language.hbm.xml

      21:26:47,625 INFO  [Configuration] Reading mappings from resource : hbm/common/Module.hbm.xml

      21:26:47,672 INFO  [Configuration] Reading mappings from resource : hbm/common/Operation.hbm.xml

      21:26:47,687 INFO  [Configuration] Reading mappings from resource : hbm/common/SdsSiteMaster.hbm.xml

      21:26:47,734 INFO  [Configuration] Reading mappings from resource : hbm/common/Version.hbm.xml

      21:26:47,765 INFO  [Configuration] Configured SessionFactory: null

      21:26:48,062 INFO  [HbmBinder] Mapping class: gam.db.common.CustomPrimaryIdGenerator -> CUSTOM_PRIMARY_ID_GENERATOR

      21:26:48,125 INFO  [HbmBinder] Mapping class:gam.db.common.AuditTrail -> AUDIT_TRAIL

      21:26:48,140 INFO  [HbmBinder] Mapping class:gam.db.common.Label -> LABEL

      21:26:48,156 INFO  [HbmBinder] Mapping class:gam.db.common.Language -> LANGUAGE

      21:26:48,156 INFO  [HbmBinder] Mapping class:gam.db.common.Module -> MODULE

      21:26:48,156 INFO  [HbmBinder] Mapping class:gam.db.common.Operation -> OPERATION

      21:26:48,156 INFO  [HbmBinder] Mapping class:gam.db.common.Master -> MASTER

      21:26:48,172 INFO  [HbmBinder] Mapping class:gam.db.common.Version -> VERSION

      21:26:48,390 INFO  [Version] Hibernate Validator 3.1.0.GA

      21:26:48,890 INFO  [Version] Hibernate Validator 4.1.0.Final

      21:26:49,172 INFO  [DefaultTraversableResolver] Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.

      21:26:50,250 INFO  [DefaultTraversableResolver] Instantiated an instance of org.hibernate.validator.engine.resolver.JPATraversableResolver.

      21:26:50,265 INFO  [HibernateSearchEventListenerRegister] Unable to find org.hibernate.search.event.FullTextIndexEventListener on the classpath. Hibernate Search is not enabled.

      21:26:50,281 INFO  [NamingHelper] JNDI InitialContext properties:{java.naming.provider.url=jnp://10.2.100.132:11099, java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory}

      21:26:52,250 ERROR [DatasourceConnectionProvider] Could not find datasource: MSSQLDS: javax.naming.NamingException: Could not dereference object [Root exception is java.lang.ClassNotFoundException: org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy]

              at org.jnp.interfaces.NamingContext.getObjectInstanceWrapFailure(NamingContext.java:1508) [:5.0.5.Final]

              at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:824) [:5.0.5.Final]

              at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:688) [:5.0.5.Final]

              at javax.naming.InitialContext.lookup(InitialContext.java:392) [:1.6.0_20]

              at org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:75) [:3.6.5.Final]

              at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:143) [:3.6.5.Final]

              at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:84) [:3.6.5.Final]

              at org.hibernate.cfg.SettingsFactory.createConnectionProvider(SettingsFactory.java:459) [:3.6.5.Final]

              at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:90) [:3.6.5.Final]

              at org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2863) [:3.6.5.Final]

              at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2859) [:3.6.5.Final]

              at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1870) [:3.6.5.Final]

              at com.ballydev.gam.db.HibernateUtil.<clinit>(Unknown Source) [:1.0.1-b1]

              at com.ballydev.gam.ini.InitServelet.init(InitServelet.java:22) [:]

              at javax.servlet.GenericServlet.init(GenericServlet.java:242) [:1.0.0.Final]

              at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1208) [:6.0.0.Final]

              at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1108) [:6.0.0.Final]

              at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3628) [:6.0.0.Final]

              at org.apache.catalina.core.StandardContext.start(StandardContext.java:3851) [:6.0.0.Final]

              at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:294) [:6.0.0.Final]

              at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:146) [:6.0.0.Final]

              at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:477) [:6.0.0.Final]

              at org.jboss.web.deployers.WebModule.startModule(WebModule.java:118) [:6.0.0.Final]

              at org.jboss.web.deployers.WebModule.start(WebModule.java:95) [:6.0.0.Final]

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_20]

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [:1.6.0_20]

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [:1.6.0_20]

              at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_20]

              at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157) [:6.0.0.GA]

              at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96) [:6.0.0.GA]

              at org.jboss.mx.server.Invocation.invoke(Invocation.java:88) [:6.0.0.GA]

              at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:271) [:6.0.0.GA]

              at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:670) [:6.0.0.GA]

              at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206) [:2.2.0.GA]

              at $Proxy41.start(Unknown Source)       at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:53) [:2.2.0.GA]

              at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:41) [:2.2.0.GA]

              at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62) [jboss-dependency.jar:2.2.0.GA]

              at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71) [jboss-dependency.jar:2.2.0.GA]

              at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51) [jboss-dependency.jar:2.2.0.GA]

              at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379) [jboss-dependency.jar:2.2.0.GA]

              at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:301) [:2.2.0.GA]

              at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044) [jboss-dependency.jar:2.2.0.GA]

              at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083) [jboss-dependency.jar:2.2.0.GA]

              at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322) [jboss-dependency.jar:2.2.0.GA]

              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246) [jboss-dependency.jar:2.2.0.GA]

              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139) [jboss-dependency.jar:2.2.0.GA]

              at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:894) [jboss-dependency.jar:2.2.0.GA]

              at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:641) [jboss-dependency.jar:2.2.0.GA]

              at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:182) [:2.2.0.GA]

              at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:58) [:2.2.0.GA]

              at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62) [:2.2.0.GA]

              at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:55) [:2.2.0.GA]

              at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:179) [:2.2.0.GA]

              at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1832) [:2.2.0.GA]

              at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1550) [:2.2.0.GA]

              at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1571) [:2.2.0.GA]

              at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:1491) [:2.2.0.GA]

              at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379) [jboss-dependency.jar:2.2.0.GA]

              at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044) [jboss-dependency.jar:2.2.0.GA]

              at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083) [jboss-dependency.jar:2.2.0.GA]

              at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322) [jboss-dependency.jar:2.2.0.GA]

              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246) [jboss-dependency.jar:2.2.0.GA]

              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139) [jboss-dependency.jar:2.2.0.GA]

              at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939) [jboss-dependency.jar:2.2.0.GA]

              at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654) [jboss-dependency.jar:2.2.0.GA]

              at org.jboss.deployers.plugins.deployers.DeployersImpl.change(DeployersImpl.java:1983) [:2.2.0.GA]

              at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:1076) [:2.2.0.GA]

              at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:679) [:2.2.0.GA]

              at org.jboss.system.server.profileservice.deployers.MainDeployerPlugin.process(MainDeployerPlugin.java:106) [:6.0.0.Final]

              at org.jboss.profileservice.dependency.ProfileControllerContext$DelegateDeployer.process(ProfileControllerContext.java:143) [:0.2.2]

              at org.jboss.profileservice.dependency.ProfileDeployAction.deploy(ProfileDeployAction.java:151) [:0.2.2]

              at org.jboss.profileservice.dependency.ProfileDeployAction.installActionInternal(ProfileDeployAction.java:94) [:0.2.2]

              at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54) [jboss-kernel.jar:2.2.0.GA]

              at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42) [jboss-kernel.jar:2.2.0.GA]

              at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62) [jboss-dependency.jar:2.2.0.GA]

              at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71) [jboss-dependency.jar:2.2.0.GA]

              at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51) [jboss-dependency.jar:2.2.0.GA]

              at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:379) [jboss-dependency.jar:2.2.0.GA]

              at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:2044) [jboss-dependency.jar:2.2.0.GA]

              at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:1083) [jboss-dependency.jar:2.2.0.GA]

              at org.jboss.dependency.plugins.AbstractController.executeOrIncrementStateDirectly(AbstractController.java:1322) [jboss-dependency.jar:2.2.0.GA]

              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1246) [jboss-dependency.jar:2.2.0.GA]

              at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1139) [jboss-dependency.jar:2.2.0.GA]

              at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:939) [jboss-dependency.jar:2.2.0.GA]

              at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:654) [jboss-dependency.jar:2.2.0.GA]

              at org.jboss.profileservice.dependency.ProfileActivationWrapper$BasicProfileActivation.start(ProfileActivationWrapper.java:190) [:0.2.2]

              at org.jboss.profileservice.dependency.ProfileActivationWrapper.start(ProfileActivationWrapper.java:87) [:0.2.2]

              at org.jboss.profileservice.dependency.ProfileActivationService.activateProfile(ProfileActivationService.java:215) [:0.2.2]

              at org.jboss.profileservice.dependency.ProfileActivationService.activate(ProfileActivationService.java:159) [:0.2.2]

              at org.jboss.profileservice.bootstrap.AbstractProfileServiceBootstrap.activate(AbstractProfileServiceBootstrap.java:112) [:0.2.2]

              at org.jboss.profileservice.resolver.BasicResolverFactory$ProfileResolverFacade.deploy(BasicResolverFactory.java:87) [:0.2.2]

              at org.jboss.profileservice.bootstrap.AbstractProfileServiceBootstrap.start(AbstractProfileServiceBootstrap.java:91) [:0.2.2]

              at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:132) [:6.0.0.Final]

              at org.jboss.system.server.profileservice.bootstrap.BasicProfileServiceBootstrap.start(BasicProfileServiceBootstrap.java:56) [:6.0.0.Final]

              at org.jboss.bootstrap.impl.base.server.AbstractServer.startBootstraps(AbstractServer.java:827) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-5]

              at org.jboss.bootstrap.impl.base.server.AbstractServer$StartServerTask.run(AbstractServer.java:417) [jboss-bootstrap-impl-base.jar:2.1.0-alpha-5]

              at java.lang.Thread.run(Thread.java:619) [:1.6.0_20]

      Caused by: java.lang.ClassNotFoundException: org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy

              at java.net.URLClassLoader$1.run(URLClassLoader.java:202) [:1.6.0_20]

              at java.security.AccessController.doPrivileged(Native Method) [:1.6.0_20]

              at java.net.URLClassLoader.findClass(URLClassLoader.java:190) [:1.6.0_20]

              at java.lang.ClassLoader.loadClass(ClassLoader.java:307) [:1.6.0_20]

              at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) [:1.6.0_20]

              at java.lang.ClassLoader.loadClass(ClassLoader.java:248) [:1.6.0_20]

              at java.lang.Class.forName0(Native Method) [:1.6.0_20]

              at java.lang.Class.forName(Class.java:247) [:1.6.0_20]

              at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:284) [jboss-classloader.jar:2.2.0.GA]

              at org.jboss.classloader.spi.base.BaseClassLoaderDomain.loadClass(BaseClassLoaderDomain.java:1152) [jboss-classloader.jar:2.2.0.GA]

              at org.jboss.classloader.spi.base.BaseClassLoader.loadClassFromDomain(BaseClassLoader.java:886) [jboss-classloader.jar:2.2.0.GA]

              at org.jboss.classloader.spi.base.BaseClassLoader.doLoadClass(BaseClassLoader.java:505) [jboss-classloader.jar:2.2.0.GA]

              at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:450) [jboss-classloader.jar:2.2.0.GA]

              at java.lang.ClassLoader.loadClass(ClassLoader.java:248) [:1.6.0_20]

              at java.lang.Class.forName0(Native Method) [:1.6.0_20]

              at java.lang.Class.forName(Class.java:247) [:1.6.0_20]

              at java.io.ObjectInputStream.resolveClass(ObjectInputStream.java:604) [:1.6.0_20]

              at java.io.ObjectInputStream.readNonProxyDesc(ObjectInputStream.java:1575) [:1.6.0_20]

              at java.io.ObjectInputStream.readClassDesc(ObjectInputStream.java:1496) [:1.6.0_20]

              at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1732) [:1.6.0_20]

              at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329) [:1.6.0_20]

              at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351) [:1.6.0_20]

              at java.util.HashMap.readObject(HashMap.java:1030) [:1.6.0_20]

              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [:1.6.0_20]

              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [:1.6.0_20]

              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [:1.6.0_20]

              at java.lang.reflect.Method.invoke(Method.java:597) [:1.6.0_20]

              at java.io.ObjectStreamClass.invokeReadObject(ObjectStreamClass.java:974) [:1.6.0_20]

              at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1849) [:1.6.0_20]

              at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753) [:1.6.0_20]

              at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329) [:1.6.0_20]

              at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947) [:1.6.0_20]

              at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871) [:1.6.0_20]

              at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753) [:1.6.0_20]

              at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329) [:1.6.0_20]

              at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351) [:1.6.0_20]

              at org.jboss.proxy.ClientContainer.readExternal(ClientContainer.java:158) [:6.0.0.Final]

              at java.io.ObjectInputStream.readExternalData(ObjectInputStream.java:1792) [:1.6.0_20]

              at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1751) [:1.6.0_20]

              at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329) [:1.6.0_20]

              at java.io.ObjectInputStream.defaultReadFields(ObjectInputStream.java:1947) [:1.6.0_20]

              at java.io.ObjectInputStream.readSerialData(ObjectInputStream.java:1871) [:1.6.0_20]

              at java.io.ObjectInputStream.readOrdinaryObject(ObjectInputStream.java:1753) [:1.6.0_20]

              at java.io.ObjectInputStream.readObject0(ObjectInputStream.java:1329) [:1.6.0_20]

              at java.io.ObjectInputStream.readObject(ObjectInputStream.java:351) [:1.6.0_20]

              at org.jboss.resource.adapter.jdbc.remote.DataSourceFactory.getObjectInstance(DataSourceFactory.java:74) [:6.0.0.Final]

              at javax.naming.spi.NamingManager.getObjectInstance(NamingManager.java:304) [:1.6.0_20]

              at org.jnp.interfaces.NamingContext.getObjectInstance(NamingContext.java:1483) [:5.0.5.Final]

              at org.jnp.interfaces.NamingContext.getObjectInstanceWrapFailure(NamingContext.java:1500) [:5.0.5.Final]

              ... 97 more

       

      21:26:52,281 ERROR [STDERR] Hibernate Session Factory Creation failedorg.hibernate.HibernateException: Could not find datasource

       

      I am unable to resolve the above issue.

       

      Could you please help me on this?