jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
Signup
Maven 2.x Ear Plugin
  • Maven 2.x Ear Plugin
  • MEAR-104

wrong jboss-app.xml

  • Log In
  • Views
    • XML
    • Word
    • Printable

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

  • All
  • Comments
  • Work Log
  • History
  • Activity
Hide
Permalink
Stéphane Nicoll added a comment - 24/Apr/09 11:18 PM

Fixed. Added it 057

Show
Stéphane Nicoll added a comment - 24/Apr/09 11:18 PM Fixed. Added it 057

People

  • Assignee:
    Stéphane Nicoll
    Reporter:
    Balogh Zoltán
Vote (0)
Watch (0)

Dates

  • Created:
    25/Mar/09 5:04 AM
    Updated:
    27/Feb/12 10:19 AM
    Resolved:
    24/Apr/09 11:18 PM
  • Atlassian JIRA (v5.2.7#850-sha1:b2af0c8)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.