]
Carlo de Wolf updated EJBTHREE-2226:
------------------------------------
Attachment: test.zip
DuplicateBindException for two same named EJBs coming from different
modules
----------------------------------------------------------------------------
Key: EJBTHREE-2226
URL:
https://issues.jboss.org/browse/EJBTHREE-2226
Project: EJB 3.0
Issue Type: Bug
Reporter: jaikiran pai
Priority: Critical
Attachments: test.zip
Attached .zip contains the following EAR:
myapp.ear
|
|-- one.jar
|
|-- two.jar
Both contain the following EJB:
@Stateless
@Remote (Echo.class)
public class SimpleSLSB implements Echo
{
public void doNothing()
{
// do nothing
}
@Override
public String echo(String msg)
{
System.out.println("Echoing message: " + msg);
return msg;
}
}
public interface Echo extends Serializable
{
String echo(String msg);
}
Fails to deploy with:
19:49:26,600 ERROR [org.jboss.kernel.plugins.dependency.AbstractKernelController] Error
installing to Start:
name=jboss.j2ee:ear=myapp.ear,jar=two.jar,name=SimpleSLSB,service=EJB3 state=Create:
java.lang.RuntimeException: org.jboss.ejb3.common.registrar.spi.DuplicateBindException:
Could not register
org.jboss.ejb3.proxy.impl.factory.session.stateless.StatelessSessionRemoteProxyFactory@1da1a47
under an already registered key,
"ProxyFactory/myapp/SimpleSLSB/myapp/SimpleSLSB/remote" for EJB SimpleSLSB
at
org.jboss.ejb3.proxy.impl.jndiregistrar.JndiSessionRegistrarBase.createJndiReferenceBindingSet(JndiSessionRegistrarBase.java:253)
[:1.0.11]
at
org.jboss.ejb3.proxy.impl.jndiregistrar.JndiSessionRegistrarBase.bindEjb(JndiSessionRegistrarBase.java:156)
[:1.0.11]
at org.jboss.ejb3.session.SessionContainer.lockedStart(SessionContainer.java:223)
[:1.7.17]
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: