Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Jdev 12.2.1.4 : Another EJB has already bound an interface to that name

user1068289Aug 14 2021 — edited Aug 16 2021

An ADF Application was deployed as EAR to expose Model as a WebService. Now, we need to reuse same code to another ADF application as ADF Library.
Deploying the application that uses the ADF Library is failing. The error is:
Unable to bind Business Interface to the JNDI name <jndi name> [EJB:011224] Unable to bind the interface <interface name>" Another EJB has already bound an interface to that name.
I understand the ADF Library is letting the EJB (from the Business Component Service Interface) be deployed again with same name.
Question: How can we create deployment profiles to have ADF application as a Business Component Service Interface and as a ADF Library, and not having this deployment issue?
We tried packaging many ways, but only the ADF Library can expose the Application Module Data Control. I can manually remove, from ADF Library JAR, all files related to the EJB, and it works. But, this approach is not good as all the time we need to do the same thing.
I hope someone can help.

Comments
Post Details
Added on Aug 14 2021
0 comments
465 views