[wildfly-dev] Injection of persistence dependencies failed; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'jcsqlpu' is defined
wildflyuser
elayaraja.s at gmail.com
Wed Jun 20 07:30:43 EDT 2018
Upgade from jboss-as-7.1.1.Final to wildfly-9.0.2.Final we are facing below
issue
Caused by: java.lang.RuntimeException:
org.springframework.beans.factory.access.BootstrapException: Unable to
initialize group definition. Group resource name
[classpath*:beanRefContext.xml], factory key [ear.context]; nested exception
is org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'ear.context' defined in URL
[vfs:/d01/wildfly-9.0.2.Final/standalone/deployments/app.ear/lib/advanced-api.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 'importResourceController': Injection of autowired dependencies
failed; nested exception is
org.springframework.beans.factory.BeanCreationException: Could not autowire
field: private com.jamcracker.iaascommon.repository.ResourceTypeRepository
com.jamcracker.importresources.controller.ImportResourceControler.resourceTypeRepository;
nested exception is org.springframework.beans.factory.BeanCreationException:
Error creating bean with name 'defaultResourceTypeRepository': Injection of
persistence dependencies failed; nested exception is
org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean
named 'jcsqlpu' is defined
Related cause: org.springframework.beans.factory.BeanCreationException:
Error creating bean with name
'org.springframework.beans.factory.config.MethodInvokingFactoryBean#12'
defined in
"/d01/wildfly-9.0.2.Final/standalone/deployments/app.ear/lib/coreservice-serviceImpl-1.18-SNAPSHOT.jar/spring-context/coreservice-service-context.xml":
Invocation of init method failed; nested exception is
java.lang.IllegalStateException: Singleton instance not initialized yet
Related cause: org.springframework.beans.factory.BeanCreationException:
Error creating bean with name
'org.springframework.beans.factory.config.MethodInvokingFactoryBean#12'
defined in
"/d01/wildfly-9.0.2.Final/standalone/deployments/app.ear/lib/coreservice-serviceImpl-1.18-SNAPSHOT.jar/spring-context/coreservice-service-context.xml":
Invocation of init method failed; nested exception is
java.lang.IllegalStateException: Singleton instance not initialized yet
Related cause: org.springframework.beans.factory.BeanCreationException:
Error creating bean with name
'org.springframework.beans.factory.config.MethodInvokingFactoryBean#12'
in persistence.xml, i have proper entry, nost sure its working in
jboss-as-7.1.1.Final but not working in wildfly-9.0.2.Final
<persistence-unit name="jcsqlpu" transaction-type="JTA" >
<provider>org.hibernate.ejb.HibernatePersistence</provider>
------------------
----------------------
-------------------
</persistence-unit>
--
Sent from: http://wildfly-development.1055759.n5.nabble.com/
More information about the wildfly-dev
mailing list