[ http://jira.codehaus.org/browse/MEAR-104?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Stephane Nicoll closed MEAR-104. -------------------------------- Resolution: Fixed Fixed. Added it 057 > wrong jboss-app.xml > ------------------- > > Key: MEAR-104 > URL: http://jira.codehaus.org/browse/MEAR-104 > Project: Maven 2.x Ear Plugin > Issue Type: Bug > Affects Versions: 2.3.2 > Environment: Jboss 4.2.1/ server/ all > Reporter: Balogh Zoltán > Assignee: Stephane Nicoll > Fix For: 2.3.3 > > > 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> -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira