Uploaded image for project: 'Arquillian'
  1. Arquillian
  2. ARQ-2004

arquillian-wls-embedded-12.1 doesn't support Ear deployment

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 1.0.1.Final
    • WebLogic Containers
    • None

    Description

      For weblogic, I need to deploy a ear to embed datasource definition. However when creating a ear archive I get a "Could not determine the module name for <ear name>". By digging in the code I have noticed that the ear is deployed as an EJB. Maybe that it's a limitation of the embeddable API but it wasn't clear if embedded container support ear deployment or not:

      @Deployment
      public static Archive<?> createDeploymentPackage() {
              EnterpriseArchive ea=ShrinkWrap.create(org.jboss.shrinkwrap.api.spec.EnterpriseArchive.class, "m.ear").
                      addAsManifestResource(new FileAsset(new File("META-INF/weblogic-application.xml")), "weblogic-application.xml").
                      setApplicationXML("META-INF/application.xml").
                      addAsResource(new FileAsset(new File("datasources/minfin.ccff.fwk.core.db.SharedDataSource-jdbc.xml")), "datasources/minfin.ccff.fwk.core.db.SharedDataSource-jdbc.xml").
                      addAsResource(new FileAsset(new File("datasources/minfin.ccff.fwk.core.db.SharedDataSourceTx-jdbc.xml")), "datasources/minfin.ccff.fwk.core.db.SharedDataSourceTx-jdbc.xml");
              JavaArchive jar= ShrinkWrap.create(JavaArchive.class,"idgeneratorTest.jar")
                      .addClass(IDDAO.class)
                      .addClass(IDDAOTestEJB.class).
                              addAsManifestResource(new FileAsset(new File("META-INF/ejb-jar.xml")), "ejb-jar.xml");
              ea.addAsModule(jar);
              return ea;
          }
      

      Attachments

        Activity

          People

            vineet.reynolds_jira Vineet Reynolds (Inactive)
            clibois.work Claude Libois (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: