Migrating application from EAP 4.x to EAP 5.x needs application.xml changes

Solution Verified - Updated -

Issue

Our Application.xml below work in JBoss EAP 4.3

<?xml version="1.0" encoding="UTF-8"?>
<application xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:application="http://java.sun.com/xml/ns/javaee/application_5.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/application_5.xsd" version="5">
  <display-name>fomento-ear</display-name>
  <module>
    <web>
      <web-uri>fomento-web.war</web-uri>
      <context-root>/fomento</context-root>
    </web>
  </module>
  <module>
    <ejb>fomento-ejb.ejb</ejb>
  </module>
  <library-directory>lib</library-directory>
</application>

But I got these exception when I try to deploy it at JBoss EAP 5.1

14:25:42,148 ERROR [ProfileDeployAction] Failed to add deployment: fomento-ear.ear
org.jboss.deployers.spi.DeploymentException: Exception determining structure: AbstractVFSDeployment(fomento-ear.ear)
     at org.jboss.deployers.spi.DeploymentException.rethrowAsDeploymentException(DeploymentException.java:49)
     at 
org.jboss.deployers.structure.spi.helpers.AbstractStructuralDeployers.determineStructure(AbstractStructuralDeployers.java:85)
     at org.jboss.deployers.plugins.main.MainDeployerImpl.determineStructure(MainDeployerImpl.java:1004)
     at org.jboss.deployers.plugins.main.MainDeployerImpl.determineDeploymentContext(MainDeployerImpl.java:440)
Caused by: java.lang.RuntimeException: Error determining structure: fomento-ear.ear
     at org.jboss.deployment.EARStructure.determineStructure(EARStructure.java:307)
     at org.jboss.deployers.vfs.plugins.structure.StructureDeployerWrapper.determineStructure(StructureDeployerWrapper.java:73)
        at 
org.jboss.deployers.vfs.plugins.structure.VFSStructuralDeployersImpl.doDetermineStructure(VFSStructuralDeployersImpl.java:196)
     at org.jboss.deployers.vfs.plugins.structure.VFSStructuralDeployersImpl.determineStructure(VFSStructuralDeployersImpl.java:221)
     at 
org.jboss.deployers.structure.spi.helpers.AbstractStructuralDeployers.determineStructure(AbstractStructuralDeployers.java:77)
     ... 21 more
Caused by: java.lang.RuntimeException: fomento-ejb.ejb module listed in 
application.xml is not a recognized deployment, .ear: fomento-ear.ear
     at org.jboss.deployment.EARStructure.determineStructure(EARStructure.java:279)
     ... 25 more

Environment

  • JBoss Enterprise Application Platform 5.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.