JBossXBException: Failed to parse source: Expected content of Host is unordered_sequence: Listener* Valve* Alias* Realm? attributes?
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, tools, and much more.