-
1. Re: Loading dependencies from external pom.xml
rm0han Jul 30, 2015 3:46 AM (in response to rm0han)I am following this(Arquillian test with real EAR from build) procedure in order to work with the existing EAR.
My DataSource is like this for testing.
<?xml version="1.0" encoding="UTF-8"?>
<datasources xmlns="http://www.jboss.org/ironjacamar/schema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://www.jboss.org/ironjacamar/schema
http://docs.jboss.org/ironjacamar/schema/datasources_1_0.xsd">
<datasource enabled="true"
jndi-name="jndi/SCOS_DS"
pool-name="ArquillianEmbeddedH2Pool">
<connection-url>jdbc:h2:mem:arquillian;DB_CLOSE_DELAY=-1</connection-url>
<driver>h2</driver>
</datasource>
</datasources>
What else is needed to avoid this error ?
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'SessionScheduler': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.hrg.storecard.businessservice.DeviceService com.hrg.storecard.businessservice.impl.SessionSchedulerImpl.deviceService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'deviceServiceImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private com.hrg.storecard.businessservice.MessageSenderService com.hrg.storecard.businessservice.impl.DeviceServiceImpl.messageSenderService; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'messageSenderServiceImpl': Injection of autowired dependencies failed; nested exception is org.springframework.beans.factory.BeanCreationException: Could not autowire field: private org.springframework.jms.core.JmsTemplate com.hrg.storecard.businessservice.impl.MessageSenderServiceImpl.regResponseJmsTemplate; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jmsTemplate' defined in file [D:\\arquillian\\wildfly-9.0.0.Final\\wildfly-9.0.0.Final\\standalone\\tmp\\vfs\\deployment\\deploymentb060a197a69196c9\\SCOS-Web.war-86d57a94b24f22f5\\WEB-INF\\applicationContext-listener.xml]: Cannot resolve reference to bean 'jmsQueueConnectionFactory' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jmsQueueConnectionFactory' defined in file [D:\\arquillian\\wildfly-9.0.0.Final\\wildfly-9.0.0.Final\\standalone\\tmp\\vfs\\deployment\\deploymentb060a197a69196c9\\SCOS-Web.war-86d57a94b24f22f5\\WEB-INF\\applicationContext-listener.xml]: Cannot resolve reference to bean 'jmsInternalQueueConnectionFactory' while setting bean property 'targetConnectionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jmsInternalQueueConnectionFactory' defined in file [D:\\arquillian\\wildfly-9.0.0.Final\\wildfly-9.0.0.Final\\standalone\\tmp\\vfs\\deployment\\deploymentb060a197a69196c9\\SCOS-Web.war-86d57a94b24f22f5\\WEB-INF\\applicationContext-listener.xml]: Cannot resolve reference to bean 'jndiTemplate' while setting bean property 'jndiTemplate'; nested exception is org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'jndiTemplate' is defined
Mohan