0 Replies Latest reply on Jan 7, 2010 11:59 AM by pavan kumar

    i get this exception,while deploying seam web application

    pavan kumar Newbie
           at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:89)
           ... 105 more
      Caused by: org.jboss.resource.JBossResourceException: Failed to register driver for: C:\Java\mysql.jar; - nested throwable: (java.lang.ClassNotFoundException: No ClassLoaders found for: C:\Java\mysql.jar)
           at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.getDriver(LocalManagedConnectionFactory.java:298)
           at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.createManagedConnection(LocalManagedConnectionFactory.java:171)
           ... 113 more
      Caused by: java.lang.ClassNotFoundException: No ClassLoaders found for: C:\Java\mysql.jar
           at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:306)
           at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:521)
           at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:415)
           at java.lang.ClassLoader.loadClass(Unknown Source)
           at java.lang.ClassLoader.loadClassInternal(Unknown Source)
           at java.lang.Class.forName0(Native Method)
           at java.lang.Class.forName(Unknown Source)
           at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.getDriver(LocalManagedConnectionFactory.java:283)
           ... 114 more
      16:16:53,642 ERROR [SchemaValidator] could not complete schema validation
      org.jboss.util.NestedSQLException: Could not create connection; - nested throwable: (org.jboss.resource.JBossResourceException: Failed to register driver for: C:\Java\mysql.jar; - nested throwable: (java.lang.ClassNotFoundException: No ClassLoaders found for: C:\Java\mysql.jar)); - nested throwable: (org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (org.jboss.resource.JBossResourceException: Failed to register driver for: C:\Java\mysql.jar; - nested throwable: (java.lang.ClassNotFoundException: No ClassLoaders found for: C:\Java\mysql.jar)))
           at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:95)
           at org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider.getConnection(InjectedDataSourceConnectionProvider.java:47)
           at org.hibernate.tool.hbm2ddl.SuppliedConnectionProviderConnectionHelper.prepare(SuppliedConnectionProviderConnectionHelper.java:27)
           at org.hibernate.tool.hbm2ddl.SchemaValidator.validate(SchemaValidator.java:107)
           at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:317)
           at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1294)
           at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:713)
           at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:127)
           at org.jboss.ejb3.entity.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:246)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
           at java.lang.reflect.Method.invoke(Unknown Source)
           at org.jboss.ejb3.ServiceDelegateWrapper.startService(ServiceDelegateWrapper.java:103)
           at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
           at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
           at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
           at java.lang.reflect.Method.invoke(Unknown Source)
           at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
           at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
           at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
           at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
           at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
           at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
           at $Proxy0.start(Unknown Source)
           at org.jboss.system.ServiceController.start(ServiceController.java:417)
           at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
           at java.lang.reflect.Method.invoke(Unknown Source)
           at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
           at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
           at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
           at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
           at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
           at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
           at $Proxy67.start(Unknown Source)
           at org.jboss.ejb3.JmxKernelAbstraction.install(JmxKernelAbstraction.java:120)
           at org.jboss.ejb3.Ejb3Deployment.startPersistenceUnits(Ejb3Deployment.java:627)
           at org.jboss.ejb3.Ejb3Deployment.start(Ejb3Deployment.java:351)
           at org.jboss.ejb3.Ejb3Module.startService(Ejb3Module.java:91)
           at org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
           at org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
           at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
           at java.lang.reflect.Method.invoke(Unknown Source)
           at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
           at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
           at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
           at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
           at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
           at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
           at $Proxy0.start(Unknown Source)
           at org.jboss.system.ServiceController.start(ServiceController.java:417)
           at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
           at java.lang.reflect.Method.invoke(Unknown Source)
           at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
           at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
           at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
           at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
           at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
           at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
           at $Proxy33.start(Unknown Source)
           at org.jboss.ejb3.EJB3Deployer.start(EJB3Deployer.java:512)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
           at java.lang.reflect.Method.invoke(Unknown Source)
           at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
           at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
           at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
           at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
           at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
           at org.jboss.mx.interceptor.DynamicInterceptor.invoke(DynamicInterceptor.java:97)
           at org.jboss.system.InterceptorServiceMBeanSupport.invokeNext(InterceptorServiceMBeanSupport.java:238)
           at org.jboss.wsf.container.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:87)
           at org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
           at org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
           at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
           at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
           at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
           at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
           at $Proxy34.start(Unknown Source)
           at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
           at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1015)
           at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
           at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
           at sun.reflect.GeneratedMethodAccessor24.invoke(Unknown Source)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
           at java.lang.reflect.Method.invoke(Unknown Source)
           at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
           at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
           at org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
           at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
           at org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
           at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
           at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
           at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
           at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
           at $Proxy9.deploy(Unknown Source)
           at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
           at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
           at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
           at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(AbstractDeploymentScanner.java:274)
           at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(AbstractDeploymentScanner.java:225)
      Caused by: org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (org.jboss.resource.JBossResourceException: Failed to register driver for: C:\Java\mysql.jar; - nested throwable: (java.lang.ClassNotFoundException: No ClassLoaders found for: C:\Java\mysql.jar))
           at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.createManagedConnection(LocalManagedConnectionFactory.java:190)
           at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.createConnectionEventListener(InternalManagedConnectionPool.java:619)
           at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.getConnection(InternalManagedConnectionPool.java:264)
           at org.jboss.resource.connectionmanager.JBossManagedConnectionPool$BasePool.getConnection(JBossManagedConnectionPool.java:575)
           at org.jboss.resource.connectionmanager.BaseConnectionManager2.getManagedConnection(BaseConnectionManager2.java:347)
           at org.jboss.resource.connectionmanager.TxConnectionManager.getManagedConnection(TxConnectionManager.java:330)
           at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:402)
           at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:849)
           at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:89)
           ... 105 more
      Caused by: org.jboss.resource.JBossResourceException: Failed to register driver for: C:\Java\mysql.jar; - nested throwable: (java.lang.ClassNotFoundException: No ClassLoaders found for: C:\Java\mysql.jar)
           at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.getDriver(LocalManagedConnectionFactory.java:298)
           at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.createManagedConnection(LocalManagedConnectionFactory.java:171)
           ... 113 more
      Caused by: java.lang.ClassNotFoundException: No ClassLoaders found for: C:\Java\mysql.jar
           at org.jboss.mx.loading.LoadMgr3.beginLoadTask(LoadMgr3.java:306)
           at org.jboss.mx.loading.RepositoryClassLoader.loadClassImpl(RepositoryClassLoader.java:521)
           at org.jboss.mx.loading.RepositoryClassLoader.loadClass(RepositoryClassLoader.java:415)
           at java.lang.ClassLoader.loadClass(Unknown Source)
           at java.lang.ClassLoader.loadClassInternal(Unknown Source)
           at java.lang.Class.forName0(Native Method)
           at java.lang.Class.forName(Unknown Source)
           at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.getDriver(LocalManagedConnectionFactory.java:283)
           ... 114 more
      6:17:07,501 INFO  [EARDeployer] Started J2EE application: file:/C:/Java/jboss-4.2.3.GA/server/default/deploy/registration.ear
      16:17:07,517 ERROR [URLDeploymentScanner] Incomplete Deployment listing:

      --- MBeans waiting for other MBeans ---
      ObjectName: jboss.ejb:service=EJBTimerService,persistencePolicy=database
        State: CONFIGURED
        I Depend On:
          jboss.jca:service=DataSourceBinding,name=DefaultDS

      ObjectName: jboss.mq:service=InvocationLayer,type=HTTP
        State: CONFIGURED
        I Depend On:
          jboss.mq:service=Invoker
          jboss.web:service=WebServer

      ObjectName: jboss:service=KeyGeneratorFactory,type=HiLo
        State: CONFIGURED
        I Depend On:
          jboss:service=TransactionManager
          jboss.jca:service=DataSourceBinding,name=DefaultDS

      ObjectName: jboss.mq:service=StateManager
        State: CONFIGURED
        I Depend On:
          jboss.jca:service=DataSourceBinding,name=DefaultDS
        Depends On Me:
          jboss.mq:service=DestinationManager

      ObjectName: jboss.mq:service=DestinationManager
        State: CONFIGURED
        I Depend On:
          jboss.mq:service=MessageCache
          jboss.mq:service=PersistenceManager
          jboss.mq:service=StateManager
          jboss.mq:service=ThreadPool
          jboss:service=Naming
        Depends On Me:
          jboss.mq.destination:service=Topic,name=testTopic
          jboss.mq.destination:service=Topic,name=securedTopic
          jboss.mq.destination:service=Topic,name=testDurableTopic
          jboss.mq.destination:service=Queue,name=testQueue
          jboss.mq.destination:service=Queue,name=A
          jboss.mq.destination:service=Queue,name=B
          jboss.mq.destination:service=Queue,name=C
          jboss.mq.destination:service=Queue,name=D
          jboss.mq.destination:service=Queue,name=ex
          jboss.mq:service=SecurityManager
          jboss.mq.destination:service=Queue,name=DLQ

      ObjectName: jboss.mq:service=PersistenceManager
        State: CONFIGURED
        I Depend On:
          jboss.jca:service=DataSourceBinding,name=DefaultDS
        Depends On Me:
          jboss.mq:service=DestinationManager

      ObjectName: jboss.mq.destination:service=Topic,name=testTopic
        State: CONFIGURED
        I Depend On:
          jboss.mq:service=DestinationManager
          jboss.mq:service=SecurityManager

      ObjectName: jboss.mq.destination:service=Topic,name=securedTopic
        State: CONFIGURED
        I Depend On:
          jboss.mq:service=DestinationManager
          jboss.mq:service=SecurityManager

      ObjectName: jboss.mq.destination:service=Topic,name=testDurableTopic
        State: CONFIGURED
        I Depend On:
          jboss.mq:service=DestinationManager
          jboss.mq:service=SecurityManager

      ObjectName: jboss.mq.destination:service=Queue,name=testQueue
        State: CONFIGURED
        I Depend On:
          jboss.mq:service=DestinationManager
          jboss.mq:service=SecurityManager

      ObjectName: jboss.mq.destination:service=Queue,name=A
        State: CONFIGURED
        I Depend On:
          jboss.mq:service=DestinationManager

      ObjectName: jboss.mq.destination:service=Queue,name=B
        State: CONFIGURED
        I Depend On:
          jboss.mq:service=DestinationManager

      ObjectName: jboss.mq.destination:service=Queue,name=C
        State: CONFIGURED
        I Depend On:
          jboss.mq:service=DestinationManager

      ObjectName: jboss.mq.destination:service=Queue,name=D
        State: CONFIGURED
        I Depend On:
          jboss.mq:service=DestinationManager

      ObjectName: jboss.mq.destination:service=Queue,name=ex
        State: CONFIGURED
        I Depend On:
          jboss.mq:service=DestinationManager

      ObjectName: jboss.mq:service=Invoker
        State: CONFIGURED
        I Depend On:
          jboss.mq:service=TracingInterceptor
          jboss:service=Naming
        Depends On Me:
          jboss.mq:service=InvocationLayer,type=HTTP
          jboss.mq:service=InvocationLayer,type=JVM
          jboss.mq:service=InvocationLayer,type=UIL2

      ObjectName: jboss.mq:service=TracingInterceptor
        State: CONFIGURED
        I Depend On:
          jboss.mq:service=SecurityManager
        Depends On Me:
          jboss.mq:service=Invoker

      ObjectName: jboss.mq:service=SecurityManager
        State: CONFIGURED
        I Depend On:
          jboss.security:service=JaasSecurityManager
          jboss.mq:service=DestinationManager
        Depends On Me:
          jboss.mq.destination:service=Topic,name=testTopic
          jboss.mq.destination:service=Topic,name=securedTopic
          jboss.mq.destination:service=Topic,name=testDurableTopic
          jboss.mq.destination:service=Queue,name=testQueue
          jboss.mq:service=TracingInterceptor
          jboss.mq.destination:service=Queue,name=DLQ

      ObjectName: jboss.mq.destination:service=Queue,name=DLQ
        State: CONFIGURED
        I Depend On:
          jboss.mq:service=DestinationManager
          jboss.mq:service=SecurityManager

      ObjectName: jboss.mq:service=InvocationLayer,type=JVM
        State: CONFIGURED
        I Depend On:
          jboss.mq:service=Invoker

      ObjectName: jboss.mq:service=InvocationLayer,type=UIL2
        State: CONFIGURED
        I Depend On:
          jboss.mq:service=Invoker

      ObjectName: jboss.jca:service=DataSourceBinding,name=DefaultDS
        State: CONFIGURED
        I Depend On:
          jboss.jca:service=LocalTxCM,name=DefaultDS

      ObjectName: jboss.j2ee:ear=registration.ear,jar=jboss-seam.jar,name=TimerServiceDispatcher,service=EJB3
        State: FAILED
        Reason: java.lang.NullPointerException

      --- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
      ObjectName: jboss.jca:service=LocalTxCM,name=DefaultDS
        State: NOTYETINSTALLED
        Depends On Me:
          jboss.jca:service=DataSourceBinding,name=DefaultDS

      ObjectName: jboss.jca:service=DataSourceBinding,name=DefaultDS
        State: NOTYETINSTALLED
        Depends On Me:
          jboss.ejb:service=EJBTimerService,persistencePolicy=database
          jboss:service=KeyGeneratorFactory,type=HiLo
          jboss.mq:service=StateManager
          jboss.mq:service=PersistenceManager

      ObjectName: jboss.j2ee:ear=registration.ear,jar=jboss-seam.jar,name=TimerServiceDispatcher,service=EJB3
        State: FAILED
        Reason: java.lang.NullPointerException