glassfish
  1. glassfish
  2. GLASSFISH-12150

ScattereArchive fails to deploy with 1 ejb module without ejb-jar.xml

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.1
    • Fix Version/s: 3.1
    • Component/s: embedded
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      12,150

      Description

      The problem is not seen if the ejb-jar.xml is present or if ScattereArchive is
      not used.

      To reproduce use attached jar, and do:

      Collection<URL> archives = new ArrayList<URL>();
      archives.add(...attached jar...);
      archives.add(some non-ejb jar);
      ScatteredArchive sa = new
      ScatteredArchive.Builder("XXX",Collections.unmodifiableCollection(archives)).buildJar();

      Then deploy 'sa'.

      The error:

      [java] java.lang.RuntimeException: Archive
      [ejb-ejb31-embedded-testclose-ejb] was deployed as a Java EE archive while it
      does not contain any valid Java EE components. Please check the packaging of the
      archive.
      [java] at
      org.glassfish.javaee.core.deployment.DolProvider.load(DolProvider.java:125)
      [java] at
      org.glassfish.javaee.core.deployment.DolProvider.load(DolProvider.java:79)
      [java] at
      com.sun.enterprise.v3.server.ApplicationLifecycle.loadDeployer(ApplicationLifecycle.java:628)
      [java] at
      com.sun.enterprise.v3.server.ApplicationLifecycle.setupContainerInfos(ApplicationLifecycle.java:570)
      [java] at
      com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:277)
      [java] at
      org.glassfish.kernel.embedded.EmbeddedDeployerImpl.deploy(EmbeddedDeployerImpl.java:215)
      [java] at
      org.glassfish.ejb.embedded.EJBContainerImpl.deploy(EJBContainerImpl.java:136)

        Issue Links

          Activity

          Hide
          marina vatkina added a comment -

          Created an attachment (id=4407)
          ejb module jar

          Show
          marina vatkina added a comment - Created an attachment (id=4407) ejb module jar
          Hide
          sirajg added a comment -

          Fixed by returning correct entry size for jar entries.

          Show
          sirajg added a comment - Fixed by returning correct entry size for jar entries.

            People

            • Assignee:
              sirajg
              Reporter:
              marina vatkina
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: