rac-tech [
http://community.jboss.org/people/rac-tech] created the discussion
"javax.naming.NameNotFoundException: persistence not bound"
To view the discussion, visit:
http://community.jboss.org/message/576880#576880
--------------------------------------------------------------
Hi
I have an ear that consists of a ejb module and a war module. The
SpringInitialisationServiceImpl (ejb) listed in the following jboss xml is in a jar
file(sss.jar). The sss.jar file is in the lib folder in the ear root(ear/lib) . When this
is deployed in JBoss 5, an exception is thrown(list at the bottom).
I can see that just after this exception is thrown, the persistent unit is loading.
Is this a loading sequence issue?
------------------------------------
12:04:55,542 INFO [PersistenceUnitDeployment] Starting persistence unit
persistence.unit:unitName=Services-ProCat.ear/Services-ProCat.jar#smalllake-bopc
12:04:55,589 INFO [Version] Hibernate Annotations 3.4.0.GA
12:04:55,589 INFO [Environment] Hibernate 3.3.1.GA
12:04:55,605 INFO [Environment] hibernate.properties not found
12:04:55,605 INFO [Environment] Bytecode provider name : javassist
12:04:55,605 INFO [Environment] using JDK 1.4 java.sql.Timestamp handling
12:04:55,667 INFO [Version] Hibernate Commons Annotations 3.1.0.GA
12:04:55,667 INFO [Version] Hibernate EntityManager 3.4.0.GA
12:04:55,683 INFO [Ejb3Configuration] Processing PersistenceUnitInfo [
name: smalllake-bopc
-----------------------------------
Any help would be highly appreciated.
The more required details are listed below.
--------------------------------------------------------------------------------------
Struture
-----------
ear/lib
- sss.jar
........
........
ear/META-INF
-application.xml
-jboss-app.xml
ear/abc.jar
-com
-META-INF
-jboss.xml
-persistence.xml
ear/abc.war
---------------------------------------------------------------------------------------
jboss.xml
--------------
<?xml version='1.0' encoding='UTF-8' ?>
<jboss
xmlns="
http://www.jboss.com/xml/ns/javaee http://www.jboss.com/xml/ns/javaee"
xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance
http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://www.jboss.com/xml/ns/javaee
http://www.jboss.com/xml/ns/javaee
http://www.jboss.org/j2ee/schema/jboss_5_0.xsd
http://www.jboss.org/j2ee/schema/jboss_5_0.xsd"
version="3.0">
<webservices>
<context-root>@APPLICATION_NAME@/ws</context-root>
</webservices>
<enterprise-beans>
<service>
<ejb-name>SpringInitialisationService</ejb-name>
<ejb-class>com.smalllake.services.util.SpringInitialisationServiceImpl</ejb-class>
<object-name>@APPLICATION_NAME@:service=SpringInitialisationService</object-name>
<management>com.smalllake.services.util.SpringInitialisationService</management>
</service>
</enterprise-beans>
</jboss>
-----------------------------------------------------------------------------------------
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at
org.jboss.ejb3.service.ServiceContainer.invokeOptionalMethod(ServiceContainer.java:381)
at org.jboss.ejb3.service.ServiceContainer.create(ServiceContainer.java:206)
....
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
at
org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)
at
org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)
at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
at org.jboss.Main.boot(Main.java:221)
at org.jboss.Main$1.run(Main.java:556)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.reflect.InvocationTargetException
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.service.ServiceContainer.invokeOptionalMethod(ServiceContainer.java:369)
... 61 more
Caused by: org.springframework.beans.factory.access.BootstrapException: Unable to
initialize group definition. Group resource name [classpath*:beanRefContext.xml], factory
key [null]; nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'factoryKey' defined in URL
[vfszip:/D:/JavaDev/software/jboss-5.1.0.GA/server/default/deploy/Services-ProductCatalogue.ear/Services-ProductCatalogue.jar/beanRefContext.xml]:
Instantiation of bean failed; nested exception is
org.springframework.beans.BeanInstantiationException: Could not instantiate bean class
[org.springframework.context.support.ClassPathXmlApplicationContext]: Constructor threw
exception; nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'service.productCatalogue' defined in class path
resource [spring-conf.xml]: Cannot resolve reference to bean
'delegate.productCatalogue' while setting bean property 'delegate'; nested
exception is org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'delegate.productCatalogue' defined in class path resource
[spring-conf.xml]: Cannot resolve reference to bean 'dao.productOffering' while
setting bean property 'productOfferingDao'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name
'dao.productOffering': Injection of persistence dependencies failed; nested
exception is org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'smalllake-bopc': Invocation of init method failed; nested exception is
javax.naming.NameNotFoundException: persistence not bound
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'smalllake-bopc': Invocation of init method failed; nested
exception is javax.naming.NameNotFoundException: persistence not bound
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'smalllake-bopc': Invocation of init method failed; nested
exception is javax.naming.NameNotFoundException: persistence not bound
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'checkDatabaseHealthCmd' defined in class path resource
[spring-service-commands-conf.xml]: Cannot create inner bean
'com.smalllake.services.products.util.healthcheck.command.CheckDatabaseConnectivityHealthCommand#e873b1'
of type
[com.smalllake.services.products.util.healthcheck.command.CheckDatabaseConnectivityHealthCommand]
while setting bean property 'target'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name
'com.smalllake.services.products.util.healthcheck.command.CheckDatabaseConnectivityHealthCommand#e873b1':
Injection of persistence dependencies failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name
'smalllake-bopc': Invocation of init method failed; nested exception is
javax.naming.NameNotFoundException: persistence not bound
at
org.springframework.beans.factory.access.SingletonBeanFactoryLocator.useBeanFactory(SingletonBeanFactoryLocator.java:389)
at
com.smalllake.services.util.SpringInitialisationServiceImpl.create(SpringInitialisationServiceImpl.java:25)
... 66 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'factoryKey' defined in URL
[vfszip:/D:/JavaDev/software/jboss-5.1.0.GA/server/default/deploy/Services-ProductCatalogue.ear/Services-ProductCatalogue.jar/beanRefContext.xml]:
Instantiation of bean failed; nested exception is
org.springframework.beans.BeanInstantiationException: Could not instantiate bean class
[org.springframework.context.support.ClassPathXmlApplicationContext]: Constructor threw
exception; nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'service.productCatalogue' defined in class path
resource [spring-conf.xml]: Cannot resolve reference to bean
'delegate.productCatalogue' while setting bean property 'delegate'; nested
exception is org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'delegate.productCatalogue' defined in class path resource
[spring-conf.xml]: Cannot resolve reference to bean 'dao.productOffering' while
setting bean property 'productOfferingDao'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name
'dao.productOffering': Injection of persistence dependencies failed; nested
exception is org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'smalllake-bopc': Invocation of init method failed; nested exception is
javax.naming.NameNotFoundException: persistence not bound
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'smalllake-bopc': Invocation of init method failed; nested
exception is javax.naming.NameNotFoundException: persistence not bound
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'smalllake-bopc': Invocation of init method failed; nested
exception is javax.naming.NameNotFoundException: persistence not bound
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'checkDatabaseHealthCmd' defined in class path resource
[spring-service-commands-conf.xml]: Cannot create inner bean
'com.smalllake.services.products.util.healthcheck.command.CheckDatabaseConnectivityHealthCommand#e873b1'
of type
[com.smalllake.services.products.util.healthcheck.command.CheckDatabaseConnectivityHealthCommand]
while setting bean property 'target'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name
'com.smalllake.services.products.util.healthcheck.command.CheckDatabaseConnectivityHealthCommand#e873b1':
Injection of persistence dependencies failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name
'smalllake-bopc': Invocation of init method failed; nested exception is
javax.naming.NameNotFoundException: persistence not bound
at
org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:281)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:984)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:888)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:479)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:450)
at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:290)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:287)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:189)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:562)
at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:871)
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:423)
at
org.springframework.context.access.ContextSingletonBeanFactoryLocator.initializeDefinition(ContextSingletonBeanFactoryLocator.java:143)
at
org.springframework.beans.factory.access.SingletonBeanFactoryLocator.useBeanFactory(SingletonBeanFactoryLocator.java:384)
... 67 more
Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate
bean class [org.springframework.context.support.ClassPathXmlApplicationContext]:
Constructor threw exception; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name
'service.productCatalogue' defined in class path resource [spring-conf.xml]:
Cannot resolve reference to bean 'delegate.productCatalogue' while setting bean
property 'delegate'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name
'delegate.productCatalogue' defined in class path resource [spring-conf.xml]:
Cannot resolve reference to bean 'dao.productOffering' while setting bean property
'productOfferingDao'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name
'dao.productOffering': Injection of persistence dependencies failed; nested
exception is org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'smalllake-bopc': Invocation of init method failed; nested exception is
javax.naming.NameNotFoundException: persistence not bound
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'smalllake-bopc': Invocation of init method failed; nested
exception is javax.naming.NameNotFoundException: persistence not bound
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'smalllake-bopc': Invocation of init method failed; nested
exception is javax.naming.NameNotFoundException: persistence not bound
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'checkDatabaseHealthCmd' defined in class path resource
[spring-service-commands-conf.xml]: Cannot create inner bean
'com.smalllake.services.products.util.healthcheck.command.CheckDatabaseConnectivityHealthCommand#e873b1'
of type
[com.smalllake.services.products.util.healthcheck.command.CheckDatabaseConnectivityHealthCommand]
while setting bean property 'target'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name
'com.smalllake.services.products.util.healthcheck.command.CheckDatabaseConnectivityHealthCommand#e873b1':
Injection of persistence dependencies failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name
'smalllake-bopc': Invocation of init method failed; nested exception is
javax.naming.NameNotFoundException: persistence not bound
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:141)
at
org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:107)
at
org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:273)
... 80 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'service.productCatalogue' defined in class path resource
[spring-conf.xml]: Cannot resolve reference to bean 'delegate.productCatalogue'
while setting bean property 'delegate'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name
'delegate.productCatalogue' defined in class path resource [spring-conf.xml]:
Cannot resolve reference to bean 'dao.productOffering' while setting bean property
'productOfferingDao'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name
'dao.productOffering': Injection of persistence dependencies failed; nested
exception is org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'smalllake-bopc': Invocation of init method failed; nested exception is
javax.naming.NameNotFoundException: persistence not bound
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'smalllake-bopc': Invocation of init method failed; nested
exception is javax.naming.NameNotFoundException: persistence not bound
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'smalllake-bopc': Invocation of init method failed; nested
exception is javax.naming.NameNotFoundException: persistence not bound
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'checkDatabaseHealthCmd' defined in class path resource
[spring-service-commands-conf.xml]: Cannot create inner bean
'com.smalllake.services.products.util.healthcheck.command.CheckDatabaseConnectivityHealthCommand#e873b1'
of type
[com.smalllake.services.products.util.healthcheck.command.CheckDatabaseConnectivityHealthCommand]
while setting bean property 'target'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name
'com.smalllake.services.products.util.healthcheck.command.CheckDatabaseConnectivityHealthCommand#e873b1':
Injection of persistence dependencies failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name
'smalllake-bopc': Invocation of init method failed; nested exception is
javax.naming.NameNotFoundException: persistence not bound
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1308)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1067)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:511)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:450)
at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:290)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:287)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:189)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:562)
at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:871)
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:423)
at
org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
at
org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:93)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:126)
... 82 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'delegate.productCatalogue' defined in class path resource
[spring-conf.xml]: Cannot resolve reference to bean 'dao.productOffering' while
setting bean property 'productOfferingDao'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name
'dao.productOffering': Injection of persistence dependencies failed; nested
exception is org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'smalllake-bopc': Invocation of init method failed; nested exception is
javax.naming.NameNotFoundException: persistence not bound
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1308)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1067)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:511)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:450)
at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:290)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:287)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:189)
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)
... 101 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'dao.productOffering': Injection of persistence dependencies failed;
nested exception is org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'smalllake-bopc': Invocation of init method failed; nested
exception is javax.naming.NameNotFoundException: persistence not bound
at
org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.postProcessPropertyValues(PersistenceAnnotationBeanPostProcessor.java:341)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1055)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:511)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:450)
at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:290)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:287)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:189)
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)
... 111 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'smalllake-bopc': Invocation of init method failed; nested exception is
javax.naming.NameNotFoundException: persistence not bound
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1403)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:513)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:450)
at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:290)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:287)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
at
org.springframework.orm.jpa.EntityManagerFactoryUtils.findEntityManagerFactory(EntityManagerFactoryUtils.java:108)
at
org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.findNamedEntityManagerFactory(PersistenceAnnotationBeanPostProcessor.java:510)
at
org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.findEntityManagerFactory(PersistenceAnnotationBeanPostProcessor.java:492)
at
org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor$PersistenceElement.resolveEntityManager(PersistenceAnnotationBeanPostProcessor.java:656)
at
org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor$PersistenceElement.getResourceToInject(PersistenceAnnotationBeanPostProcessor.java:629)
at
org.springframework.beans.factory.annotation.InjectionMetadata$InjectedElement.inject(InjectionMetadata.java:147)
at
org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:84)
at
org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.postProcessPropertyValues(PersistenceAnnotationBeanPostProcessor.java:338)
... 119 more
Caused by: javax.naming.NameNotFoundException: persistence not bound
at org.jnp.server.NamingServer.getBinding(NamingServer.java:771)
at org.jnp.server.NamingServer.getBinding(NamingServer.java:779)
at org.jnp.server.NamingServer.getObject(NamingServer.java:785)
at org.jnp.server.NamingServer.lookup(NamingServer.java:396)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:726)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:686)
at javax.naming.InitialContext.lookup(Unknown Source)
at org.springframework.jndi.JndiTemplate$1.doInContext(JndiTemplate.java:154)
at org.springframework.jndi.JndiTemplate.execute(JndiTemplate.java:87)
at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:152)
at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:178)
at org.springframework.jndi.JndiLocatorSupport.lookup(JndiLocatorSupport.java:95)
at org.springframework.jndi.JndiObjectLocator.lookup(JndiObjectLocator.java:105)
at
org.springframework.jndi.JndiObjectFactoryBean.lookupWithFallback(JndiObjectFactoryBean.java:201)
at
org.springframework.jndi.JndiObjectFactoryBean.afterPropertiesSet(JndiObjectFactoryBean.java:187)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1460)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1400)
... 133 more
Error
-------
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
at
org.jboss.ejb3.service.ServiceContainer.invokeOptionalMethod(ServiceContainer.java:381)
at org.jboss.ejb3.service.ServiceContainer.create(ServiceContainer.java:206)
....
at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:553)
at
org.jboss.system.server.profileservice.repository.AbstractProfileService.activateProfile(AbstractProfileService.java:306)
at
org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:271)
at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:461)
at org.jboss.Main.boot(Main.java:221)
at org.jboss.Main$1.run(Main.java:556)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.reflect.InvocationTargetException
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.service.ServiceContainer.invokeOptionalMethod(ServiceContainer.java:369)
... 61 more
Caused by: org.springframework.beans.factory.access.BootstrapException: Unable to
initialize group definition. Group resource name [classpath*:beanRefContext.xml], factory
key [null]; nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'factoryKey' defined in URL
[vfszip:/D:/JavaDev/software/jboss-5.1.0.GA/server/default/deploy/Services-ProCat.ear/Services-ProCat.jar/beanRefContext.xml]:
Instantiation of bean failed; nested exception is
org.springframework.beans.BeanInstantiationException: Could not instantiate bean class
[org.springframework.context.support.ClassPathXmlApplicationContext]: Constructor threw
exception; nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'service.ProCat' defined in class path resource
[spring-conf.xml]: Cannot resolve reference to bean 'delegate.ProCat' while
setting bean property 'delegate'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name
'delegate.ProCat' defined in class path resource [spring-conf.xml]: Cannot resolve
reference to bean 'dao.productOffering' while setting bean property
'productOfferingDao'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name
'dao.productOffering': Injection of persistence dependencies failed; nested
exception is org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'smalllake-bopc': Invocation of init method failed; nested exception is
javax.naming.NameNotFoundException: persistence not bound
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'smalllake-bopc': Invocation of init method failed; nested
exception is javax.naming.NameNotFoundException: persistence not bound
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'smalllake-bopc': Invocation of init method failed; nested
exception is javax.naming.NameNotFoundException: persistence not bound
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'checkDatabaseHealthCmd' defined in class path resource
[spring-service-commands-conf.xml]: Cannot create inner bean
'com.smalllake.services.products.util.healthcheck.command.CheckDatabaseConnectivityHealthCommand#e873b1'
of type
[com.smalllake.services.products.util.healthcheck.command.CheckDatabaseConnectivityHealthCommand]
while setting bean property 'target'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name
'com.smalllake.services.products.util.healthcheck.command.CheckDatabaseConnectivityHealthCommand#e873b1':
Injection of persistence dependencies failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name
'smalllake-bopc': Invocation of init method failed; nested exception is
javax.naming.NameNotFoundException: persistence not bound
at
org.springframework.beans.factory.access.SingletonBeanFactoryLocator.useBeanFactory(SingletonBeanFactoryLocator.java:389)
at
com.smalllake.services.util.SpringInitialisationServiceImpl.create(SpringInitialisationServiceImpl.java:25)
... 66 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'factoryKey' defined in URL
[vfszip:/D:/JavaDev/software/jboss-5.1.0.GA/server/default/deploy/Services-ProCat.ear/Services-ProCat.jar/beanRefContext.xml]:
Instantiation of bean failed; nested exception is
org.springframework.beans.BeanInstantiationException: Could not instantiate bean class
[org.springframework.context.support.ClassPathXmlApplicationContext]: Constructor threw
exception; nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'service.ProCat' defined in class path resource
[spring-conf.xml]: Cannot resolve reference to bean 'delegate.ProCat' while
setting bean property 'delegate'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name
'delegate.ProCat' defined in class path resource [spring-conf.xml]: Cannot resolve
reference to bean 'dao.productOffering' while setting bean property
'productOfferingDao'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name
'dao.productOffering': Injection of persistence dependencies failed; nested
exception is org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'smalllake-bopc': Invocation of init method failed; nested exception is
javax.naming.NameNotFoundException: persistence not bound
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'smalllake-bopc': Invocation of init method failed; nested
exception is javax.naming.NameNotFoundException: persistence not bound
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'smalllake-bopc': Invocation of init method failed; nested
exception is javax.naming.NameNotFoundException: persistence not bound
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'checkDatabaseHealthCmd' defined in class path resource
[spring-service-commands-conf.xml]: Cannot create inner bean
'com.smalllake.services.products.util.healthcheck.command.CheckDatabaseConnectivityHealthCommand#e873b1'
of type
[com.smalllake.services.products.util.healthcheck.command.CheckDatabaseConnectivityHealthCommand]
while setting bean property 'target'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name
'com.smalllake.services.products.util.healthcheck.command.CheckDatabaseConnectivityHealthCommand#e873b1':
Injection of persistence dependencies failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name
'smalllake-bopc': Invocation of init method failed; nested exception is
javax.naming.NameNotFoundException: persistence not bound
at
org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:281)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:984)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:888)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:479)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:450)
at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:290)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:287)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:189)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:562)
at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:871)
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:423)
at
org.springframework.context.access.ContextSingletonBeanFactoryLocator.initializeDefinition(ContextSingletonBeanFactoryLocator.java:143)
at
org.springframework.beans.factory.access.SingletonBeanFactoryLocator.useBeanFactory(SingletonBeanFactoryLocator.java:384)
... 67 more
Caused by: org.springframework.beans.BeanInstantiationException: Could not instantiate
bean class [org.springframework.context.support.ClassPathXmlApplicationContext]:
Constructor threw exception; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name
'service.ProCat' defined in class path resource [spring-conf.xml]: Cannot resolve
reference to bean 'delegate.ProCat' while setting bean property
'delegate'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name
'delegate.ProCat' defined in class path resource [spring-conf.xml]: Cannot resolve
reference to bean 'dao.productOffering' while setting bean property
'productOfferingDao'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name
'dao.productOffering': Injection of persistence dependencies failed; nested
exception is org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'smalllake-bopc': Invocation of init method failed; nested exception is
javax.naming.NameNotFoundException: persistence not bound
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'smalllake-bopc': Invocation of init method failed; nested
exception is javax.naming.NameNotFoundException: persistence not bound
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'smalllake-bopc': Invocation of init method failed; nested
exception is javax.naming.NameNotFoundException: persistence not bound
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'checkDatabaseHealthCmd' defined in class path resource
[spring-service-commands-conf.xml]: Cannot create inner bean
'com.smalllake.services.products.util.healthcheck.command.CheckDatabaseConnectivityHealthCommand#e873b1'
of type
[com.smalllake.services.products.util.healthcheck.command.CheckDatabaseConnectivityHealthCommand]
while setting bean property 'target'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name
'com.smalllake.services.products.util.healthcheck.command.CheckDatabaseConnectivityHealthCommand#e873b1':
Injection of persistence dependencies failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name
'smalllake-bopc': Invocation of init method failed; nested exception is
javax.naming.NameNotFoundException: persistence not bound
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:141)
at
org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:107)
at
org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:273)
... 80 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'service.ProCat' defined in class path resource [spring-conf.xml]:
Cannot resolve reference to bean 'delegate.ProCat' while setting bean property
'delegate'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name
'delegate.ProCat' defined in class path resource [spring-conf.xml]: Cannot resolve
reference to bean 'dao.productOffering' while setting bean property
'productOfferingDao'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name
'dao.productOffering': Injection of persistence dependencies failed; nested
exception is org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'smalllake-bopc': Invocation of init method failed; nested exception is
javax.naming.NameNotFoundException: persistence not bound
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'smalllake-bopc': Invocation of init method failed; nested
exception is javax.naming.NameNotFoundException: persistence not bound
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'smalllake-bopc': Invocation of init method failed; nested
exception is javax.naming.NameNotFoundException: persistence not bound
Related cause: org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'checkDatabaseHealthCmd' defined in class path resource
[spring-service-commands-conf.xml]: Cannot create inner bean
'com.smalllake.services.products.util.healthcheck.command.CheckDatabaseConnectivityHealthCommand#e873b1'
of type
[com.smalllake.services.products.util.healthcheck.command.CheckDatabaseConnectivityHealthCommand]
while setting bean property 'target'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name
'com.smalllake.services.products.util.healthcheck.command.CheckDatabaseConnectivityHealthCommand#e873b1':
Injection of persistence dependencies failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name
'smalllake-bopc': Invocation of init method failed; nested exception is
javax.naming.NameNotFoundException: persistence not bound
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1308)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1067)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:511)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:450)
at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:290)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:287)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:189)
at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:562)
at
org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:871)
at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:423)
at
org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
at
org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:93)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at org.springframework.beans.BeanUtils.instantiateClass(BeanUtils.java:126)
... 82 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'delegate.ProCat' defined in class path resource [spring-conf.xml]:
Cannot resolve reference to bean 'dao.productOffering' while setting bean property
'productOfferingDao'; nested exception is
org.springframework.beans.factory.BeanCreationException: Error creating bean with name
'dao.productOffering': Injection of persistence dependencies failed; nested
exception is org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'smalllake-bopc': Invocation of init method failed; nested exception is
javax.naming.NameNotFoundException: persistence not bound
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1308)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1067)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:511)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:450)
at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:290)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:287)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:189)
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)
... 101 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'dao.productOffering': Injection of persistence dependencies failed;
nested exception is org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'smalllake-bopc': Invocation of init method failed; nested
exception is javax.naming.NameNotFoundException: persistence not bound
at
org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.postProcessPropertyValues(PersistenceAnnotationBeanPostProcessor.java:341)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1055)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:511)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:450)
at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:290)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:287)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:189)
at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)
... 111 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean
with name 'smalllake-bopc': Invocation of init method failed; nested exception is
javax.naming.NameNotFoundException: persistence not bound
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1403)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:513)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:450)
at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:290)
at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at
org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:287)
at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:193)
at
org.springframework.orm.jpa.EntityManagerFactoryUtils.findEntityManagerFactory(EntityManagerFactoryUtils.java:108)
at
org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.findNamedEntityManagerFactory(PersistenceAnnotationBeanPostProcessor.java:510)
at
org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.findEntityManagerFactory(PersistenceAnnotationBeanPostProcessor.java:492)
at
org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor$PersistenceElement.resolveEntityManager(PersistenceAnnotationBeanPostProcessor.java:656)
at
org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor$PersistenceElement.getResourceToInject(PersistenceAnnotationBeanPostProcessor.java:629)
at
org.springframework.beans.factory.annotation.InjectionMetadata$InjectedElement.inject(InjectionMetadata.java:147)
at
org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:84)
at
org.springframework.orm.jpa.support.PersistenceAnnotationBeanPostProcessor.postProcessPropertyValues(PersistenceAnnotationBeanPostProcessor.java:338)
... 119 more
Caused by: javax.naming.NameNotFoundException: persistence not bound
at org.jnp.server.NamingServer.getBinding(NamingServer.java:771)
at org.jnp.server.NamingServer.getBinding(NamingServer.java:779)
at org.jnp.server.NamingServer.getObject(NamingServer.java:785)
at org.jnp.server.NamingServer.lookup(NamingServer.java:396)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:726)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:686)
at javax.naming.InitialContext.lookup(Unknown Source)
at org.springframework.jndi.JndiTemplate$1.doInContext(JndiTemplate.java:154)
at org.springframework.jndi.JndiTemplate.execute(JndiTemplate.java:87)
at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:152)
at org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:178)
at org.springframework.jndi.JndiLocatorSupport.lookup(JndiLocatorSupport.java:95)
at org.springframework.jndi.JndiObjectLocator.lookup(JndiObjectLocator.java:105)
at
org.springframework.jndi.JndiObjectFactoryBean.lookupWithFallback(JndiObjectFactoryBean.java:201)
at
org.springframework.jndi.JndiObjectFactoryBean.afterPropertiesSet(JndiObjectFactoryBean.java:187)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1460)
at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1400)
... 133 more
--------------------------------------------------------------
Reply to this message by going to Community
[
http://community.jboss.org/message/576880#576880]
Start a new discussion in JNDI and Naming at Community
[
http://community.jboss.org/choose-container!input.jspa?contentType=1&...]