Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.3.2
    • Fix Version/s: 2.4
    • Labels:
      None
    • Environment:
      Jboss 4.2.1/ server/ all
    • Number of attachments :
      0

      Description

      Hi!

      I have problem with generated jboss-app.xml because it is not accepted by Jboss.

      pom.xml

      <groupId>org.apache.maven.plugins</groupId>
      <artifactId>maven-ear-plugin</artifactId>
      <version>2.3.2</version>
      <configuration>
      <defaultLibBundleDir>APP-INF/lib</defaultLibBundleDir>
      <!-- <resourcesDir>src/main/resources</resourcesDir> -->
      <artifactTypeMappings>
      <artifactTypeMapping type="har" mapping="jar" />
      </artifactTypeMappings>
      <jboss>
      <version>4.2</version>
      <loader-repository>
      com.fornax.stolpan.backoffice:loader=StolpanEJP.ear
      </loader-repository>
      <loader-repository-config>
      java2ParentDelegation=true
      </loader-repository-config> -
      <module-order>strict</module-order>
      <library-directory>APP-INF/lib</library-directory>
      </jboss>

      generated by Maven:

      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE jboss-app PUBLIC
      "-//JBoss//DTD J2EE Application 1.4//EN"
      "http://www.jboss.org/j2ee/dtd/jboss-app_4_2.dtd">
      <jboss-app>
      <library-directory>APP-INF/lib</library-directory>
      <module-order>strict</module-order>
      <loader-repository>com.fornax.stolpan.backoffice:loader=StolpanEJP.ear<loader-repository-config>java2ParentDelegation=true</loader-repository-config>
      </loader-repository>
      <module>
      <har>StolpanBoDBM-0.0.1.har</har>
      </module>
      <module>
      <har>StolpanSPDB-0.0.1.har</har>
      </module>
      </jboss-app>

      jboss error msg:

      org.xml.sax.SAXParseException: The content of element type "jboss-app" must match "(module-order?,security-domain?,unauthenticated-principal?,loader-repository?,jmx-name?,module*,security-role*)".)

      if I change the jboss-app.xml manually as you see below the deploy is successful:

      <?xml version='1.0' encoding='UTF-8'?>
      <!DOCTYPE jboss-app PUBLIC "-//JBoss//DTD J2EE Application 4.2//EN" "http://www.jboss.org/j2ee/dtd/jboss-app_4_2.dtd">
      <jboss-app>
      <module-order>strict</module-order>
      <loader-repository>com.fornax.stolpan.backoffice:loader=StolpanEJPT.ear
      <loader-repository-config>java2ParentDelegation=true</loader-repository-config>
      </loader-repository>
      <library-directory>APP-INF/lib</library-directory>
      <module>
      <har>StolpanBoDBM-0.0.1.har</har>
      </module>
      <module>
      <har>StolpanSPDB-0.0.1.har</har>
      </module>
      </jboss-app>

        Activity

        Hide
        Stéphane Nicoll added a comment -

        Fixed. Added it 057

        Show
        Stéphane Nicoll added a comment - Fixed. Added it 057

          People

          • Assignee:
            Stéphane Nicoll
            Reporter:
            Balogh Zoltán
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: