glassfish
  1. glassfish
  2. GLASSFISH-10465

Direct EAR deployment fails - problems with DI

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Blocker Blocker
    • Resolution: Won't Fix
    • Affects Version/s: V3
    • Fix Version/s: V3
    • Component/s: deployment
    • Labels:
      None
    • Environment:

      Operating System: Mac OS X
      Platform: Macintosh

    • Issuezilla Id:
      10,465

      Description

      Glassfish v3 b67.

      Dependency injection between MDB and local EJB 3.1 doesn't work by copying the EAR into
      /glassfish/domains/domain1/autodeploy. The error is:


      [#|2009-10-
      21T12:03:44.376+0200|SEVERE|glassfish|javax.enterprise.system.core.com.sun.enterprise.v3.server|_T
      hreadID=41;_ThreadName=Thread-3;|Exception while deploying the app
      java.lang.RuntimeException: Cannot resolve reference Remote ejb-ref
      name=com.abien.mdb.TextMessageListener/receiver,Remote 3.x interface
      =com.abien.mdb.MessageReceiver,ejb-link=null,lookup=null,mappedName=,jndi-
      name=,refType=Session because there are 2 ejbs in the application with interface
      com.abien.mdb.MessageReceiver
      at com.sun.enterprise.deployment.util.EjbBundleValidator.accept(EjbBundleValidator.java:568)
      at com.sun.enterprise.deployment.EjbDescriptor.visit(EjbDescriptor.java:2344)
      at com.sun.enterprise.deployment.EjbBundleDescriptor.visit(EjbBundleDescriptor.java:726)
      at com.sun.enterprise.deployment.Application.visit(Application.java:1733)
      at
      com.sun.enterprise.deployment.archivist.ApplicationArchivist.validate(ApplicationArchivist.java:767)
      at
      com.sun.enterprise.deployment.archivist.ApplicationArchivist.openWith(ApplicationArchivist.java:253)
      at
      com.sun.enterprise.deployment.archivist.ApplicationFactory.openWith(ApplicationFactory.java:222)
      at org.glassfish.javaee.core.deployment.DolProvider.load(DolProvider.java:103)
      at org.glassfish.javaee.core.deployment.DolProvider.load(DolProvider.java:41)
      at com.sun.enterprise.v3.server.ApplicationLifecycle.loadDeployer(ApplicationLifecycle.java:580)
      at
      com.sun.enterprise.v3.server.ApplicationLifecycle.setupContainerInfos(ApplicationLifecycle.java:522)
      at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:233)
      at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:169)
      at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:275)
      at com.sun.enterprise.v3.admin.CommandRunnerImpl$1.execute(CommandRunnerImpl.java:310)
      at
      com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:320)
      at
      com.sun.enterprise.v3.admin.CommandRunnerImpl.doCommand(CommandRunnerImpl.java:1154)
      at com.sun.enterprise.v3.admin.CommandRunnerImpl.access$900(CommandRunnerImpl.java:83)
      at
      com.sun.enterprise.v3.admin.CommandRunnerImpl$ExecutionContext.execute(CommandRunnerImpl.ja
      va:1213)
      at org.glassfish.deployment.autodeploy.AutoOperation.run(AutoOperation.java:141)
      at org.glassfish.deployment.autodeploy.AutoDeployer.deploy(AutoDeployer.java:573)
      at org.glassfish.deployment.autodeploy.AutoDeployer.deployAll(AutoDeployer.java:459)
      at org.glassfish.deployment.autodeploy.AutoDeployer.run(AutoDeployer.java:391)
      at org.glassfish.deployment.autodeploy.AutoDeployer.run(AutoDeployer.java:376)
      at org.glassfish.deployment.autodeploy.AutoDeployService$1.run(AutoDeployService.java:195)
      at java.util.TimerThread.mainLoop(Timer.java:512)
      at java.util.TimerThread.run(Timer.java:462)

      #]

      The NetBeans 6.8m is attached.

        Activity

        Hide
        abien added a comment -

        Created an attachment (id=3576)
        MdbInjection.ear (repro)

        Show
        abien added a comment - Created an attachment (id=3576) MdbInjection.ear (repro)
        Hide
        abien added a comment -

        Created an attachment (id=3577)
        NetBeans Project / Source Code

        Show
        abien added a comment - Created an attachment (id=3577) NetBeans Project / Source Code
        Hide
        Hong Zhang added a comment -

        See NetBeans issue: http://www.netbeans.org/issues/show_bug.cgi?id=173195
        I believe the latest NetBeans has already had the fix which is removing the
        Class-Path entry from the war.

        You can work around the issue in a similar way, removing the Class-Path entry in
        war manifest in your application: Class-Path: MdbInjection-ejb.jar

        Show
        Hong Zhang added a comment - See NetBeans issue: http://www.netbeans.org/issues/show_bug.cgi?id=173195 I believe the latest NetBeans has already had the fix which is removing the Class-Path entry from the war. You can work around the issue in a similar way, removing the Class-Path entry in war manifest in your application: Class-Path: MdbInjection-ejb.jar

          People

          • Assignee:
            Hong Zhang
            Reporter:
            abien
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: