Getting the error "Deployment failed due to a SAXParseException (The element type *** must be terminated by the matching end-tag)" while deploying an app in Red Hat JBoss Enterprise Application Platform 6.x or in Red Hat JBoss Fuse Service Works 6.x

Solution Verified - Updated -

Issue

Using CLI to deploy a jar file the following error happened:

Unexpected HTTP response: 500

Request
{
    "address" => [("deployment" => "MYJAR.jar")],
    "operation" => "deploy"
}

Response

Internal Server Error
{
    "outcome" => "failed",
    "failure-description" => {"JBAS014671: Failed services" => {"jboss.deployment.unit.\"MYJAR.jar\".PARSE" => "org.jboss.msc.service.StartException in service jboss.deployment.unit.\"MYJAR.jar\".PARSE: JBAS018733: Failed to process phase PARSE of deployment \"MYJAR.jar\"
    Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: SAXException parsing vfs:/content/MYJAR.jar/META-INF/beans.xml
    Caused by: org.xml.sax.SAXParseException; systemId: http://xmlns.jcp.org/xml/ns/javaee/beans_1_1.xsd; lineNumber: 41; columnNumber: 7; The element type \"link\" must be terminated by the matching end-tag \"\"."}},
    "rolled-back" => true
}

The beans.xml file doesn't have a line 41 and the link element declared in it.

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP) 6.x
  • Red Hat Fuse Service Works (FSW) 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content