JBossXBException: Failed to parse source: Expected content of Host is unordered_sequence: Listener* Valve* Alias* Realm? attributes?

Solution Verified - Updated -

Issue

  • After editing my Host or setting up a new virtual host in my server.xml, JBoss fails to start with the following error:
    ERROR [AbstractKernelController] Error installing to Start: name=WebServer state=Create
    org.jboss.xb.binding.JBossXBException: Failed to parse source: foo cannot appear in this position. Expected content of Host is unordered_sequence: Listener* Valve* Alias* Realm? attributes?
         at org.jboss.xb.binding.parser.sax.SaxJBossXBParser.parse(SaxJBossXBParser.java:203)
    ...
            at java.lang.Thread.run(Thread.java:636)
    Caused by: org.jboss.xb.binding.JBossXBRuntimeException: test cannot appear in this position. Expected content of Host is unordered_sequence: Listener* Valve* Alias* Realm? attributes?
         at org.jboss.xb.binding.sunday.unmarshalling.SundayContentHandler.startElement(SundayContentHandler.java:449)
    ...
    

Environment

  • JBoss Enterprise Application Platform (EAP)

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.