[jboss-jira] [JBoss JIRA] Created: (EJBTHREE-2224) .ear containing 2 jars with the same bean fails to deploy

jaikiran pai (JIRA) jira-events at lists.jboss.org
Thu Dec 23 09:28:17 EST 2010


.ear containing 2 jars with the same bean fails to deploy
---------------------------------------------------------

                 Key: EJBTHREE-2224
                 URL: https://issues.jboss.org/browse/EJBTHREE-2224
             Project: EJB 3.0
          Issue Type: Bug
          Components: proxy-impl
    Affects Versions: depchain-1.0.0-alpha-25
            Reporter: jaikiran pai


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 at 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: http://www.atlassian.com/software/jira

        


More information about the jboss-jira mailing list