Deployment of Resource Adapter on Wildfly WFLYJCA0046 / IJ020066 Code Answer

Hello Developer, Hope you guys are doing great. Today at Tutorial Guruji Official website, we are sharing the answer of Deployment of Resource Adapter on Wildfly WFLYJCA0046 / IJ020066 without wasting too much if your time.

The question is published on by Tutorial Guruji team.

Based on the Trading Connector example from the JEE 7 Tutorials, I’ve tried to create my own Resource adapter. It worked fine with glassfish.

I’m trying to deploy my .EAR to a wildfly 10. It doesn’t work, and is throwing the message below. I am kinda lost on where to start looking, as the only mention of the error code is in the source code of wildfly itself and I’d rather not read all the Wildfly code now (but I’m at it).

The Resource Adapter is part of a .ear file, in that ear file I have an ejb project that is client to this RA, in order for the ejb to compile I create a ra-lib.jar alongside the rar that contains only the entries from the api package.

Structure of the .rar:


Head of Connection Factory:

import javax.resource.Referenceable;
import root.project.ra.api.DummyRAConnectionFactory;

public class DummyRAConnectionFactoryImpl implements DummyRAConnectionFactory, Serializable, Referenceable {

Error message:

08:30:21,440 ERROR [] (ResourceAdapterDeploymentService Thread Pool -- 1) MSC000001: Failed to start service jboss.raactivator.java_comp_env_eis_DummyRAConnectionFactory: org.jboss.msc.service.StartException in service jboss.raactivator.java_comp_env_eis_DummyRAConnectionFactory: WFLYJCA0046: Failed to start RA deployment [java_comp_env_eis_DummyRAConnectionFactory]
        at java.util.concurrent.ThreadPoolExecutor.runWorker(
        at java.util.concurrent.ThreadPoolExecutor$
    Caused by: org.jboss.jca.deployers.common.DeployException: IJ020066: Connection factory implementation (root.project.projects.dummy.ra.connection.DummyRAConnectionFactoryImpl) doesn't implement connection factory interface (root.project.ra.api.DummyRAConnectionFactory)
        at org.jboss.jca.deployers.common.AbstractResourceAdapterDeployer.createObjectsAndInjectValue(
        at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(
        at org.jboss.msc.service.ServiceControllerImpl$
        at java.util.concurrent.ThreadPoolExecutor.runWorker(
        at java.util.concurrent.ThreadPoolExecutor$

I can see no reason that a ClassLoader that can see the ConnectionFactoryImpl can not also see the interface. I had the interface in a different jar earlier (so that I don’t need to produce a jar from the rar for the clients) and that yielded the same error.

I’ve kept this short, so please ask when something is missing, I will add it promptly.


The problem was that I needed the Interface classes in the EJB that has a client to this RA. there, I didn’t specify the .jar that I created from the .rar as <scope>provided</scope> so in the final .ear I had the ra-api.jar and the ra.rar that BOTH contained the Interface .class.

We are here to answer your question about Deployment of Resource Adapter on Wildfly WFLYJCA0046 / IJ020066 - If you find the proper solution, please don't forgot to share this with your team members.

Related Posts

Tutorial Guruji