Uploaded image for project: 'EJB 3.0'
  1. EJB 3.0
  2. EJBTHREE-2224

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

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Major
    • None
    • depchain-1.0.0-alpha-43
    • proxy-impl
    • None

    Description

      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]

      Attachments

        Activity

          People

            Unassigned Unassigned
            jaikiran Jaikiran Pai (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: