[jboss-user] [EJB 3.0] - Re: jpa persistence deployment error
mpurdy1973
do-not-reply at jboss.com
Fri Nov 14 14:41:41 EST 2008
"jaikiran" wrote : anonymous wrote : @PersistenceContext(name="prj")
|
| This should be
|
| @PersistenceContext(unitName="prj")
|
thanx for the help; now i am getting another error deploying: (is there a hello world entity EJB3 example that i could look at? )
i am using jboss 5.0.0 RC2 using MySQL database; i am getting a null pointer exception for the data connection. However, if i use the data connection using EJB2 the connection works fine.
the error is:
| 14:16:36,671 INFO [ConnectionProviderFactory] Initializing connection provider: org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider
| 14:16:36,676 INFO [InjectedDataSourceConnectionProvider] Using provided datasource
| 14:16:36,685 WARN [JBossManagedConnectionPool] Throwable while attempting to get a new connection: null
| org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (org.jboss.resource.JBossResourceException: Failed to register drive
| r for: org.gjt.mm.mysql.Driver; - nested throwable: (java.lang.ClassNotFoundException: org.gjt.mm.mysql.Driver from BaseClassLoader at 8ecefb{VFSClassLoaderPolicy@
| 1b6d37d{name=vfszip:/C:/jboss500/server/default/deploy/prj.ear domain=ClassLoaderDomain at ea5461{name=DefaultDomain parentPolicy=BEFORE parent=org.jboss.system.No
| AnnotationURLClassLoader at b1c5fa} roots=[MemoryContextHandler at 32948673[path= context=vfsmemory://5c4o133-fux3z2-fnj7jxbg-1-fnj7o4ad-1u real=vfsmemory://5c4o133-f
| ux3z2-fnj7jxbg-1-fnj7o4ad-1u], DelegatingHandler at 19572617[path=prj.ear context=file:/C:/jboss500/server/default/deploy/ real=file:/C:/jboss500/server/default/de
| ploy/prj.ear], DelegatingHandler at 22881377[path=prj.ear/prjEJB.jar context=file:/C:/jboss500/server/default/deploy/ real=file:/C:/jboss500/server/default/deploy/
| prj.ear/prjEJB.jar]] delegates=null exported=[prj.ejb3, META-INF] <IMPORT-ALL>NON_EMPTY}}))
|
prj-ds.xml:
| <datasources>
| <local-tx-datasource>
| <jndi-name>prjDS</jndi-name>
| <connection-url>jdbc:mysql://localhost:3306/prj</connection-url>
| <driver-class>org.gjt.mm.mysql.Driver</driver-class>
| <user-name>prj</user-name>
| <password>prjuser</password>
| </local-tx-datasource>
|
| </datasources>
|
|
persistence.xml:
| <?xml version="1.0" encoding="UTF-8"?>
| <persistence xmlns="http://java.sun.com/xml/ns/persistence"
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
| version="1.0">
|
| <persistence-unit name="prj">
| <provider>org.hibernate.ejb.HibernatePersistence</provider>
| <jta-data-source>java:/prjDS</jta-data-source>
| <properties>
| <property name="hibernate.dialect" value="org.hibernate.dialect.MySQLDialect"/>
| </properties>
| </persistence-unit>
|
| </persistence>
|
complete stack trace:
| 14:16:36,077 INFO [PersistenceUnitDeployment] Starting persistence unit persistence.unit:unitName=prj.ear/prjEJB.jar#prj
| 14:16:36,138 INFO [Version] Hibernate Annotations 3.4.0.GA
| 14:16:36,155 INFO [Environment] Hibernate 3.3.1.GA
| 14:16:36,163 INFO [Environment] hibernate.properties not found
| 14:16:36,169 INFO [Environment] Bytecode provider name : javassist
| 14:16:36,175 INFO [Environment] using JDK 1.4 java.sql.Timestamp handling
| 14:16:36,251 INFO [Version] Hibernate Commons Annotations 3.1.0.GA
| 14:16:36,257 INFO [Version] Hibernate EntityManager 3.4.0.GA
| 14:16:36,301 WARN [Ejb3Configuration] Persistence provider caller does not implement the EJB3 spec correctly. PersistenceUnitInfo.getNewTempClassLoader() is nu
| ll.
| 14:16:36,385 INFO [AnnotationBinder] Binding entity from annotated class: prj.ejb3.HelloWorldEntityBean
| 14:16:36,434 INFO [EntityBinder] Bind entity prj.ejb3.HelloWorldEntityBean on table ejb3_helloWorld
| 14:16:36,509 INFO [Version] Hibernate Validator 3.1.0.GA
| 14:16:36,563 INFO [HibernateSearchEventListenerRegister] Unable to find org.hibernate.search.event.FullTextIndexEventListener on the classpath. Hibernate Searc
| h is not enabled.
| 14:16:36,671 INFO [ConnectionProviderFactory] Initializing connection provider: org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider
| 14:16:36,676 INFO [InjectedDataSourceConnectionProvider] Using provided datasource
| 14:16:36,685 WARN [JBossManagedConnectionPool] Throwable while attempting to get a new connection: null
| org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (org.jboss.resource.JBossResourceException: Failed to register drive
| r for: org.gjt.mm.mysql.Driver; - nested throwable: (java.lang.ClassNotFoundException: org.gjt.mm.mysql.Driver from BaseClassLoader at 8ecefb{VFSClassLoaderPolicy@
| 1b6d37d{name=vfszip:/C:/jboss500/server/default/deploy/prj.ear domain=ClassLoaderDomain at ea5461{name=DefaultDomain parentPolicy=BEFORE parent=org.jboss.system.No
| AnnotationURLClassLoader at b1c5fa} roots=[MemoryContextHandler at 32948673[path= context=vfsmemory://5c4o133-fux3z2-fnj7jxbg-1-fnj7o4ad-1u real=vfsmemory://5c4o133-f
| ux3z2-fnj7jxbg-1-fnj7o4ad-1u], DelegatingHandler at 19572617[path=prj.ear context=file:/C:/jboss500/server/default/deploy/ real=file:/C:/jboss500/server/default/de
| ploy/prj.ear], DelegatingHandler at 22881377[path=prj.ear/prjEJB.jar context=file:/C:/jboss500/server/default/deploy/ real=file:/C:/jboss500/server/default/deploy/
| prj.ear/prjEJB.jar]] delegates=null exported=[prj.ejb3, META-INF] <IMPORT-ALL>NON_EMPTY}}))
| at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.getLocalManagedConnection(LocalManagedConnectionFactory.java:225)
| at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.createManagedConnection(LocalManagedConnectionFactory.java:195)
| at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.createConnectionEventListener(InternalManagedConnectionPool.java:611)
| at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.getConnection(InternalManagedConnectionPool.java:257)
| at org.jboss.resource.connectionmanager.JBossManagedConnectionPool$BasePool.getConnection(JBossManagedConnectionPool.java:607)
| at org.jboss.resource.connectionmanager.BaseConnectionManager2.getManagedConnection(BaseConnectionManager2.java:354)
| at org.jboss.resource.connectionmanager.TxConnectionManager.getManagedConnection(TxConnectionManager.java:381)
| at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:409)
| at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:854)
| at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:89)
| at org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider.getConnection(InjectedDataSourceConnectionProvider.java:46)
| at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:111)
| at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2101)
| at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1325)
| at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:867)
| at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:669)
| at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:132)
| at org.jboss.jpa.deployment.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:281)
| 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:597)
| at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:59)
| at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:150)
| at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)
| at org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWrapper.execute(KernelControllerContextAction.java:241)
| at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:47)
| at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrapper(KernelControllerContextAction.java:109)
| at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:70)
| at org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInternal(LifecycleAction.java:221)
| at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54)
| at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42)
| at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
| at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
| at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
| at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
| at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
| at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
| at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:774)
| at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:540)
| at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:124)
| at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:51)
| at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
| at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
| at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:169)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1285)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1003)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1024)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1056)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:944)
| at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
| at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
| at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:627)
| at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:541)
| at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:290)
| at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:221)
| at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
| at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
| at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
| at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
| at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181)
| at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205)
| at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
| at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
| at java.lang.Thread.run(Thread.java:619)
| Caused by: org.jboss.resource.JBossResourceException: Failed to register driver for: org.gjt.mm.mysql.Driver; - nested throwable: (java.lang.ClassNotFoundExcept
| ion: org.gjt.mm.mysql.Driver from BaseClassLoader at 8ecefb{VFSClassLoaderPolicy at 1b6d37d{name=vfszip:/C:/jboss500/server/default/deploy/prj.ear domain=ClassLoaderD
| omain at ea5461{name=DefaultDomain parentPolicy=BEFORE parent=org.jboss.system.NoAnnotationURLClassLoader at b1c5fa} roots=[MemoryContextHandler at 32948673[path= contex
| t=vfsmemory://5c4o133-fux3z2-fnj7jxbg-1-fnj7o4ad-1u real=vfsmemory://5c4o133-fux3z2-fnj7jxbg-1-fnj7o4ad-1u], DelegatingHandler at 19572617[path=prj.ear context=fil
| e:/C:/jboss500/server/default/deploy/ real=file:/C:/jboss500/server/default/deploy/prj.ear], DelegatingHandler at 22881377[path=prj.ear/prjEJB.jar context=file:/C:
| /jboss500/server/default/deploy/ real=file:/C:/jboss500/server/default/deploy/prj.ear/prjEJB.jar]] delegates=null exported=[prj.ejb3, META-INF] <IMPORT-ALL>NON
| _EMPTY}})
| at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.getDriver(LocalManagedConnectionFactory.java:489)
| at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.getLocalManagedConnection(LocalManagedConnectionFactory.java:206)
| ... 71 more
| Caused by: java.lang.ClassNotFoundException: org.gjt.mm.mysql.Driver from BaseClassLoader at 8ecefb{VFSClassLoaderPolicy at 1b6d37d{name=vfszip:/C:/jboss500/server/de
| fault/deploy/prj.ear domain=ClassLoaderDomain at ea5461{name=DefaultDomain parentPolicy=BEFORE parent=org.jboss.system.NoAnnotationURLClassLoader at b1c5fa} roots=[Me
| moryContextHandler at 32948673[path= context=vfsmemory://5c4o133-fux3z2-fnj7jxbg-1-fnj7o4ad-1u real=vfsmemory://5c4o133-fux3z2-fnj7jxbg-1-fnj7o4ad-1u], DelegatingH
| andler at 19572617[path=prj.ear context=file:/C:/jboss500/server/default/deploy/ real=file:/C:/jboss500/server/default/deploy/prj.ear], DelegatingHandler at 22881377[
| path=prj.ear/prjEJB.jar context=file:/C:/jboss500/server/default/deploy/ real=file:/C:/jboss500/server/default/deploy/prj.ear/prjEJB.jar]] delegates=null expor
| ted=[prj.ejb3, META-INF] <IMPORT-ALL>NON_EMPTY}}
| at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:381)
| at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
| at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
| at java.lang.Class.forName0(Native Method)
| at java.lang.Class.forName(Class.java:247)
| at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.getDriver(LocalManagedConnectionFactory.java:474)
| ... 72 more
| 14:16:37,119 WARN [SettingsFactory] Could not obtain connection metadata
| org.jboss.util.NestedSQLException: Could not create connection; - nested throwable: (org.jboss.resource.JBossResourceException: Failed to register driver for: o
| rg.gjt.mm.mysql.Driver; - nested throwable: (java.lang.ClassNotFoundException: org.gjt.mm.mysql.Driver from BaseClassLoader at 8ecefb{VFSClassLoaderPolicy at 1b6d37d{
| name=vfszip:/C:/jboss500/server/default/deploy/prj.ear domain=ClassLoaderDomain at ea5461{name=DefaultDomain parentPolicy=BEFORE parent=org.jboss.system.NoAnnotati
| onURLClassLoader at b1c5fa} roots=[MemoryContextHandler at 32948673[path= context=vfsmemory://5c4o133-fux3z2-fnj7jxbg-1-fnj7o4ad-1u real=vfsmemory://5c4o133-fux3z2-fn
| j7jxbg-1-fnj7o4ad-1u], DelegatingHandler at 19572617[path=prj.ear context=file:/C:/jboss500/server/default/deploy/ real=file:/C:/jboss500/server/default/deploy/prj
| .ear], DelegatingHandler at 22881377[path=prj.ear/prjEJB.jar context=file:/C:/jboss500/server/default/deploy/ real=file:/C:/jboss500/server/default/deploy/prj.ear/
| prjEJB.jar]] delegates=null exported=[prj.ejb3, META-INF] <IMPORT-ALL>NON_EMPTY}})); - nested throwable: (org.jboss.resource.JBossResourceException: Could not
| create connection; - nested throwable: (org.jboss.resource.JBossResourceException: Failed to register driver for: org.gjt.mm.mysql.Driver; - nested throwable: (
| java.lang.ClassNotFoundException: org.gjt.mm.mysql.Driver from BaseClassLoader at 8ecefb{VFSClassLoaderPolicy at 1b6d37d{name=vfszip:/C:/jboss500/server/default/deplo
| y/prj.ear domain=ClassLoaderDomain at ea5461{name=DefaultDomain parentPolicy=BEFORE parent=org.jboss.system.NoAnnotationURLClassLoader at b1c5fa} roots=[MemoryContext
| Handler at 32948673[path= context=vfsmemory://5c4o133-fux3z2-fnj7jxbg-1-fnj7o4ad-1u real=vfsmemory://5c4o133-fux3z2-fnj7jxbg-1-fnj7o4ad-1u], DelegatingHandler at 1957
| 2617[path=prj.ear context=file:/C:/jboss500/server/default/deploy/ real=file:/C:/jboss500/server/default/deploy/prj.ear], DelegatingHandler at 22881377[path=prj.ea
| r/prjEJB.jar context=file:/C:/jboss500/server/default/deploy/ real=file:/C:/jboss500/server/default/deploy/prj.ear/prjEJB.jar]] delegates=null exported=[prj.ej
| b3, META-INF] <IMPORT-ALL>NON_EMPTY}})))
| at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:95)
| at org.hibernate.ejb.connection.InjectedDataSourceConnectionProvider.getConnection(InjectedDataSourceConnectionProvider.java:46)
| at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:111)
| at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2101)
| at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1325)
| at org.hibernate.cfg.AnnotationConfiguration.buildSessionFactory(AnnotationConfiguration.java:867)
| at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:669)
| at org.hibernate.ejb.HibernatePersistence.createContainerEntityManagerFactory(HibernatePersistence.java:132)
| at org.jboss.jpa.deployment.PersistenceUnitDeployment.start(PersistenceUnitDeployment.java:281)
| 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:597)
| at org.jboss.reflect.plugins.introspection.ReflectionUtils.invoke(ReflectionUtils.java:59)
| at org.jboss.reflect.plugins.introspection.ReflectMethodInfoImpl.invoke(ReflectMethodInfoImpl.java:150)
| at org.jboss.joinpoint.plugins.BasicMethodJoinPoint.dispatch(BasicMethodJoinPoint.java:66)
| at org.jboss.kernel.plugins.dependency.KernelControllerContextAction$JoinpointDispatchWrapper.execute(KernelControllerContextAction.java:241)
| at org.jboss.kernel.plugins.dependency.ExecutionWrapper.execute(ExecutionWrapper.java:47)
| at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchExecutionWrapper(KernelControllerContextAction.java:109)
| at org.jboss.kernel.plugins.dependency.KernelControllerContextAction.dispatchJoinPoint(KernelControllerContextAction.java:70)
| at org.jboss.kernel.plugins.dependency.LifecycleAction.installActionInternal(LifecycleAction.java:221)
| at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:54)
| at org.jboss.kernel.plugins.dependency.InstallsAwareAction.installAction(InstallsAwareAction.java:42)
| at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
| at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
| at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
| at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
| at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
| at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
| at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:774)
| at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:540)
| at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:124)
| at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:51)
| at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
| at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
| at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:169)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.doDeploy(DeployersImpl.java:1285)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1003)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1024)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:1056)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:944)
| at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
| at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1598)
| at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:934)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:1062)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:984)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:822)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:627)
| at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:541)
| at org.jboss.system.server.profileservice.hotdeploy.HDScanner.scan(HDScanner.java:290)
| at org.jboss.system.server.profileservice.hotdeploy.HDScanner.run(HDScanner.java:221)
| at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
| at java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
| at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
| at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
| at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:181)
| at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:205)
| at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
| at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
| at java.lang.Thread.run(Thread.java:619)
| Caused by: org.jboss.resource.JBossResourceException: Could not create connection; - nested throwable: (org.jboss.resource.JBossResourceException: Failed to reg
| ister driver for: org.gjt.mm.mysql.Driver; - nested throwable: (java.lang.ClassNotFoundException: org.gjt.mm.mysql.Driver from BaseClassLoader at 8ecefb{VFSClassLo
| aderPolicy at 1b6d37d{name=vfszip:/C:/jboss500/server/default/deploy/prj.ear domain=ClassLoaderDomain at ea5461{name=DefaultDomain parentPolicy=BEFORE parent=org.jbos
| s.system.NoAnnotationURLClassLoader at b1c5fa} roots=[MemoryContextHandler at 32948673[path= context=vfsmemory://5c4o133-fux3z2-fnj7jxbg-1-fnj7o4ad-1u real=vfsmemory:
| //5c4o133-fux3z2-fnj7jxbg-1-fnj7o4ad-1u], DelegatingHandler at 19572617[path=prj.ear context=file:/C:/jboss500/server/default/deploy/ real=file:/C:/jboss500/server
| /default/deploy/prj.ear], DelegatingHandler at 22881377[path=prj.ear/prjEJB.jar context=file:/C:/jboss500/server/default/deploy/ real=file:/C:/jboss500/server/defa
| ult/deploy/prj.ear/prjEJB.jar]] delegates=null exported=[prj.ejb3, META-INF] <IMPORT-ALL>NON_EMPTY}}))
| at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.getLocalManagedConnection(LocalManagedConnectionFactory.java:225)
| at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.createManagedConnection(LocalManagedConnectionFactory.java:195)
| at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.createConnectionEventListener(InternalManagedConnectionPool.java:611)
| at org.jboss.resource.connectionmanager.InternalManagedConnectionPool.getConnection(InternalManagedConnectionPool.java:257)
| at org.jboss.resource.connectionmanager.JBossManagedConnectionPool$BasePool.getConnection(JBossManagedConnectionPool.java:607)
| at org.jboss.resource.connectionmanager.BaseConnectionManager2.getManagedConnection(BaseConnectionManager2.java:354)
| at org.jboss.resource.connectionmanager.TxConnectionManager.getManagedConnection(TxConnectionManager.java:381)
| at org.jboss.resource.connectionmanager.BaseConnectionManager2.allocateConnection(BaseConnectionManager2.java:409)
| at org.jboss.resource.connectionmanager.BaseConnectionManager2$ConnectionManagerProxy.allocateConnection(BaseConnectionManager2.java:854)
| at org.jboss.resource.adapter.jdbc.WrapperDataSource.getConnection(WrapperDataSource.java:89)
| ... 62 more
| Caused by: org.jboss.resource.JBossResourceException: Failed to register driver for: org.gjt.mm.mysql.Driver; - nested throwable: (java.lang.ClassNotFoundExcept
| ion: org.gjt.mm.mysql.Driver from BaseClassLoader at 8ecefb{VFSClassLoaderPolicy at 1b6d37d{name=vfszip:/C:/jboss500/server/default/deploy/prj.ear domain=ClassLoaderD
| omain at ea5461{name=DefaultDomain parentPolicy=BEFORE parent=org.jboss.system.NoAnnotationURLClassLoader at b1c5fa} roots=[MemoryContextHandler at 32948673[path= contex
| t=vfsmemory://5c4o133-fux3z2-fnj7jxbg-1-fnj7o4ad-1u real=vfsmemory://5c4o133-fux3z2-fnj7jxbg-1-fnj7o4ad-1u], DelegatingHandler at 19572617[path=prj.ear context=fil
| e:/C:/jboss500/server/default/deploy/ real=file:/C:/jboss500/server/default/deploy/prj.ear], DelegatingHandler at 22881377[path=prj.ear/prjEJB.jar context=file:/C:
| /jboss500/server/default/deploy/ real=file:/C:/jboss500/server/default/deploy/prj.ear/prjEJB.jar]] delegates=null exported=[prj.ejb3, META-INF] <IMPORT-ALL>NON
| _EMPTY}})
| at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.getDriver(LocalManagedConnectionFactory.java:489)
| at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.getLocalManagedConnection(LocalManagedConnectionFactory.java:206)
| ... 71 more
| Caused by: java.lang.ClassNotFoundException: org.gjt.mm.mysql.Driver from BaseClassLoader at 8ecefb{VFSClassLoaderPolicy at 1b6d37d{name=vfszip:/C:/jboss500/server/de
| fault/deploy/prj.ear domain=ClassLoaderDomain at ea5461{name=DefaultDomain parentPolicy=BEFORE parent=org.jboss.system.NoAnnotationURLClassLoader at b1c5fa} roots=[Me
| moryContextHandler at 32948673[path= context=vfsmemory://5c4o133-fux3z2-fnj7jxbg-1-fnj7o4ad-1u real=vfsmemory://5c4o133-fux3z2-fnj7jxbg-1-fnj7o4ad-1u], DelegatingH
| andler at 19572617[path=prj.ear context=file:/C:/jboss500/server/default/deploy/ real=file:/C:/jboss500/server/default/deploy/prj.ear], DelegatingHandler at 22881377[
| path=prj.ear/prjEJB.jar context=file:/C:/jboss500/server/default/deploy/ real=file:/C:/jboss500/server/default/deploy/prj.ear/prjEJB.jar]] delegates=null expor
| ted=[prj.ejb3, META-INF] <IMPORT-ALL>NON_EMPTY}}
| at org.jboss.classloader.spi.base.BaseClassLoader.loadClass(BaseClassLoader.java:381)
| at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
| at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
| at java.lang.Class.forName0(Native Method)
| at java.lang.Class.forName(Class.java:247)
| at org.jboss.resource.adapter.jdbc.local.LocalManagedConnectionFactory.getDriver(LocalManagedConnectionFactory.java:474)
| ... 72 more
| 14:16:37,530 INFO [Dialect] Using dialect: org.hibernate.dialect.MySQLDialect
| 14:16:37,542 INFO [TransactionFactoryFactory] Transaction strategy: org.hibernate.ejb.transaction.JoinableCMTTransactionFactory
| 14:16:37,546 INFO [TransactionManagerLookupFactory] instantiating TransactionManagerLookup: org.hibernate.transaction.JBossTransactionManagerLookup
| 14:16:37,549 INFO [TransactionManagerLookupFactory] instantiated TransactionManagerLookup
| 14:16:37,550 INFO [SettingsFactory] Automatic flush during beforeCompletion(): disabled
| 14:16:37,550 INFO [SettingsFactory] Automatic session close at end of transaction: disabled
| 14:16:37,552 INFO [SettingsFactory] Scrollable result sets: disabled
| 14:16:37,552 INFO [SettingsFactory] JDBC3 getGeneratedKeys(): disabled
| 14:16:37,552 INFO [SettingsFactory] Connection release mode: auto
| 14:16:37,554 INFO [SettingsFactory] Maximum outer join fetch depth: 2
| 14:16:37,555 INFO [SettingsFactory] Default batch fetch size: 1
| 14:16:37,555 INFO [SettingsFactory] Generate SQL with comments: disabled
| 14:16:37,555 INFO [SettingsFactory] Order SQL updates by primary key: disabled
| 14:16:37,556 INFO [SettingsFactory] Order SQL inserts for batching: disabled
| 14:16:37,557 INFO [SettingsFactory] Query translator: org.hibernate.hql.ast.ASTQueryTranslatorFactory
| 14:16:37,570 INFO [ASTQueryTranslatorFactory] Using ASTQueryTranslatorFactory
| 14:16:37,571 INFO [SettingsFactory] Query language substitutions: {}
| 14:16:37,571 INFO [SettingsFactory] JPA-QL strict compliance: enabled
| 14:16:37,571 INFO [SettingsFactory] Second-level cache: enabled
| 14:16:37,572 INFO [SettingsFactory] Query cache: disabled
| 14:16:37,573 INFO [SettingsFactory] Cache region factory : org.hibernate.cache.impl.NoCachingRegionFactory
| 14:16:37,574 INFO [SettingsFactory] Optimize cache for minimal puts: disabled
| 14:16:37,574 INFO [SettingsFactory] Structured second-level cache entries: disabled
| 14:16:37,583 INFO [SettingsFactory] Statistics: disabled
| 14:16:37,583 INFO [SettingsFactory] Deleted entity synthetic identifier rollback: disabled
| 14:16:37,585 INFO [SettingsFactory] Default entity-mode: pojo
| 14:16:37,585 INFO [SettingsFactory] Named query checking : enabled
| 14:16:37,679 INFO [SessionFactoryImpl] building session factory
| 14:16:37,980 INFO [SessionFactoryObjectFactory] Factory name: persistence.unit:unitName=prj.ear/prjEJB.jar#prj
| 14:16:37,982 INFO [NamingHelper] JNDI InitialContext properties:{}
| 14:16:37,993 INFO [NamingHelper] Creating subcontext: persistence.unit:unitName=prj.ear
| 14:16:37,994 INFO [SessionFactoryObjectFactory] Bound factory to JNDI name: persistence.unit:unitName=prj.ear/prjEJB.jar#prj
| 14:16:37,994 WARN [SessionFactoryObjectFactory] InitialContext did not implement EventContext
| 14:16:37,995 INFO [NamingHelper] JNDI InitialContext properties:{}
| 14:16:38,534 INFO [SessionSpecContainer] Starting jboss.j2ee:ear=prj.ear,jar=prjEJB.jar,name=HelloWorldSessionBean,service=EJB3
| 14:16:38,541 INFO [EJBContainer] STARTED EJB: prj.ejb3.HelloWorldSessionBean ejbName: HelloWorldSessionBean
| 14:16:38,544 WARN [SessionSpecContainer] Populating JBoss-specific annotation metadata manually until done by deployers: jboss.j2ee:ear=prj.ear,jar=prjEJB.jar,
| name=HelloWorldSessionBean,service=EJB3
| 14:16:38,646 INFO [SessionSpecContainer] Starting jboss.j2ee:ear=prj.ear,jar=prjEJB.jar,name=HelloWorldSessionEJBCallingEntityEJBEntityBean,service=EJB3
| 14:16:38,651 INFO [EJBContainer] STARTED EJB: prj.ejb3.HelloWorldSessionEJBCallingEntityEJBEntityBean ejbName: HelloWorldSessionEJBCallingEntityEJBEntityBean
| 14:16:38,652 WARN [SessionSpecContainer] Populating JBoss-specific annotation metadata manually until done by deployers: jboss.j2ee:ear=prj.ear,jar=prjEJB.jar,
| name=HelloWorldSessionEJBCallingEntityEJBEntityBean,service=EJB3
| 14:16:38,696 INFO [TomcatDeployment] deploy, ctxPath=/prj, vfsUrl=prj.ear/prjWEB.war
|
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4189511#4189511
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4189511
More information about the jboss-user
mailing list