Appian 17.2 : JBAS018014: Failed to parse XML descriptor "/opt/appian/appian/ear/suite.ear/web.war/WEB-INF/web.xml" at [1322,4]

A Score Level 1

Configured 17.2 environment with JBoss & Apache service. Referred URL : https://docs.appian.com/suite/help/17.2/Configuring_Apache_Web_Server_with_JBoss.html 

As per configuration steps, I added http method "CONNECT "in web.xml as it was missing. Path : Appian_Home/ear/suite.ear/web.war/WEB-INF/web.xml

 

After completing the configuration I was getting below error & unable to start JBoss service. 

To resolve this issue, I simply removed the http method "CONNECT" from web.xml & JBoss service started & working fine. 

My query is : I wanted to know whether I followed correct steps or not. On forum, it is not mentioned where to check HTTP methods are enabled or not while configuring JBoss.

Refer : https://docs.appian.com/suite/help/17.2/Configuring_Apache_Web_Server_with_JBoss.html#configure-jboss 

Error Log : 

Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS018014: Failed to parse XML descriptor "/opt/appian/appian/ear/suite.ear/web.war/WEB-INF/web.xml" at [1322,4]
at org.jboss.as.web.deployment.WebParsingDeploymentProcessor.deploy(WebParsingDeploymentProcessor.java:116)
at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:159) [jboss-as-server-7.5.0.Final-redhat-21.jar:7.5.0.Final-redhat-21]
... 5 more
Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1322,4]
Message: Unexpected element '{java.sun.com/.../javaee}http_method' encountered
at org.jboss.metadata.parser.util.MetaDataElementParser.unexpectedElement(MetaDataElementParser.java:109)
at org.jboss.metadata.parser.servlet.WebResourceCollectionMetaDataParser.parse(WebResourceCollectionMetaDataParser.java:100)
at org.jboss.metadata.parser.servlet.SecurityConstraintMetaDataParser.parse(SecurityConstraintMetaDataParser.java:71)
at org.jboss.metadata.parser.servlet.WebCommonMetaDataParser.parse(WebCommonMetaDataParser.java:147)
at org.jboss.metadata.parser.servlet.WebMetaDataParser.parse(WebMetaDataParser.java:175)
at org.jboss.metadata.parser.servlet.WebMetaDataParser.parse(WebMetaDataParser.java:55)
at org.jboss.as.web.deployment.WebParsingDeploymentProcessor.deploy(WebParsingDeploymentProcessor.java:91)
... 6 more

14:18:00,600 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) JBAS014612: Operation ("deploy") failed - address: ([("deployment" => "suite.ear")]) - failure description: {"JBAS014671: Failed services" => {"jboss.deployment.subunit.\"suite.ear\".\"web.war\".PARSE" => "org.jboss.msc.service.StartException in service jboss.deployment.subunit.\"suite.ear\".\"web.war\".PARSE: JBAS018733: Failed to process phase PARSE of subdeployment \"web.war\" of deployment \"suite.ear\"
Caused by: org.jboss.as.server.deployment.DeploymentUnitProcessingException: JBAS018014: Failed to parse XML descriptor \"/opt/appian/appian/ear/suite.ear/web.war/WEB-INF/web.xml\" at [1322,4]
Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[1322,4]
Message: Unexpected element '{java.sun.com/.../javaee}http_method' encountered"}}
14:18:00,639 INFO [org.jboss.as.server] (ServerService Thread Pool -- 30) JBAS015859: Deployed "appian-mysql-ds.xml" (runtime-name : "appian-mysql-ds.xml")
14:18:00,639 INFO [org.jboss.as.server] (ServerService Thread Pool -- 30) JBAS015859: Deployed "suite.ear" (runtime-name : "suite.ear")
14:18:00,650 INFO [org.jboss.as.controller] (Controller Boot Thread) JBAS014774: Service status report
JBAS014777: Services which failed to start: service jboss.deployment.subunit."suite.ear"."web.war".PARSE: org.jboss.msc.service.StartException in service jboss.deployment.subunit."suite.ear"."web.war".PARSE: JBAS018733: Failed to process phase PARSE of subdeployment "web.war" of deployment "suite.ear"

14:18:00,671 INFO [org.jboss.as] (Controller Boot Thread) JBAS015961: Http management interface listening on 127.0.0.1:9990/management
14:18:00,672 INFO [org.jboss.as] (Controller Boot Thread) JBAS015951: Admin console listening on http://127.0.0.1:9990
14:18:00,672 ERROR [org.jboss.as] (Controller Boot Thread) JBAS015875: JBoss EAP 6.4.0.GA (AS 7.5.0.Final-redhat-21) started (with errors) in 10522ms - Started 237 of 281 services (7 services failed or missing dependencies, 66 services are lazy, passive or on-demand)
14:18:00,898 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-3) JBAS010409: Unbound data source [jdbc/PrimaryDS]
14:18:01,015 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015858: Undeployed "appian-mysql-ds.xml" (runtime-name: "appian-mysql-ds.xml")
14:18:01,016 INFO [org.jboss.as.server] (DeploymentScanner-threads - 2) JBAS015858: Undeployed "suite.ear" (runtime-name: "suite.ear")
14:18:01,016 INFO [org.jboss.as.controller] (DeploymentScanner-threads - 2) JBAS014774: Service status report
JBAS014777: Services which failed to start: service jboss.deployment.subunit."suite.ear"."web.war".PARSE

  Discussion posts and replies are publicly visible

  • We can see from the error that the XML failed validation:

    Failed to parse XML descriptor "/opt/appian/appian/ear/suite.ear/web.war/WEB-INF/web.xml"

    You did not mention what exactly you added to the web.xml, but note that the section of documentation you referred to is regarding configuring <JBOSS_HOME>/standalone/configuration/standalone.xml.
  • two things:
    1. Invalid tags in web.xml....you might have a tab like <web> without a closing connector </web.xml> inside that file for some config.
    2. You edited that file in windows os notepad or some other editor and deployed it to Unix os. Windows and Unix have different file endings...easy fix is to do dos2unix command to convert that file from windows to unix..