Hi,
While deploying an ear application file(containing EJB and WAR),
I facing the error: java.lang.IllegalStateException : ActivationSpec was never registered with ResourceAdapter ResourceAdapter is not of type: org.activemq.ra.ActiveMQResourceAdapter
The deployment plan file of the mdb looks like this:
<enterprise-beans>
<message-driven>
<ejb-name>CoreBusRequestListener</ejb-name>
<resource-adapter>
<resource-link>ActiveMQ RA</resource-link>
</resource-adapter>
</message-driven>
</enterprise-beans>
The application.xml of the ear:
<?xml version="1.0" encoding="UTF-8"?>
<application xmlns="http://java.sun.com/xml/ns/j2ee "
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance "
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/application_1_4.xsd"
version="1.4">
<display-name>Syndeo2.5</display-name>
<module>
<web>
<web-uri>ger-syndeo-war.war</web-uri>
<context-root>Syndeo2.5</context-root>
</web>
</module>
<module>
<ejb>ger-syndeo-ejb.jar</ejb>
</module>
</application>
The EAR deployment(geronimo-application.xml) file of the application looks like:
<?xml version="1.0" encoding="UTF-8"?>
<application
xmlns="http://geronimo.apache.org/xml/ns/j2ee/application-1.0 "
configId="MyAPP">
<dependency>
<uri>myapp/activemq-ra/3.2.1/jar</uri>
</dependency>
<dependency>
<uri>myapp/activemq-core/3.2.1/jar</uri>
</dependency>
<module>
<ejb>myejb.jar</ejb>
<alt-dd>openejb-jar.xml</alt-dd>
</module>
<module>
<web>mywar.war</web>
<web-app
xmlns=" http://geronimo.apache.org/xml/ns/j2ee/web-1.0"
xmlns:naming=" http://geronimo.apache.org/xml/ns/naming-1.0"
configId="mywar">
<naming:resource-ref>
<naming:ref-name>orcl_ds</naming:ref-name>
<naming:resource-link>orcl_pool</naming:resource-link>
</naming:resource-ref>
<naming:resource-ref>
<naming:ref-name>QueueCF1</naming:ref-name>
<naming:resource-link>QueueCF1</naming:resource-link>
</naming:resource-ref>
<naming:resource-ref>
<naming:ref-name>QueueCF2</naming:ref-name>
<naming:resource-link>QueueCF2</naming:resource-link>
</naming:resource-ref>
</web-app>
</module>
</application>
Can any body tell whar extra configuration do I need to mention?
Warm Regards,
Anshuk Pal Chaudhuri