This is an XML parsing issue, as evidenced by the javax.xml.stream.XMLStreamException: ParseError error message. The parsing for this particular line is Unexpected element{urn:jboss:domain:web:1.4}subsystem .
You can look at XML schema documents to find out these types of XML parsing problems. Schemes are located under the WildFly docs folder.
By the way, you should use the version of WildFly-9.0.1.Final build, as this is the latest version of the candidate release.
You will most likely need to make changes to the subsystem of the subsystem. I updated the example below:
<subsystem xmlns="urn:jboss:domain:undertow:2.0"> <buffer-cache name="default"/> <server name="default-server"> <http-listener name="default" socket-binding="http" redirect-socket="https"/> <host name="default-host" alias="localhost"> <location name="/" handler="welcome-content"/> <filter-ref name="server-header"/> <filter-ref name="x-powered-by-header"/> </host> </server> <servlet-container name="default"> <jsp-config development="true" check-interval="1" modification-test-interval="1" recompile-on-fail="true"/> <websockets/> </servlet-container> <handlers> <file name="welcome-content" path="${jboss.home.dir}/welcome-content"/> </handlers> <filters> <response-header name="server-header" header-name="Server" header-value="WildFly/9"/> <response-header name="x-powered-by-header" header-name="X-Powered-By" header-value="Undertow/1"/> </filters> </subsystem>
I highly recommend using the CLI to make these changes:
/subsystem=undertow/servlet-container=default/setting=jsp:write-attribute(name=development,value=true) /subsystem=undertow/servlet-container=default/setting=jsp:write-attribute(name=recompile-on-fail,value=true) /subsystem=undertow/servlet-container=default/setting=jsp:write-attribute(name=check-interval,value=1) /subsystem=undertow/servlet-container=default/setting=jsp:write-attribute(name=modification-test-interval,value=1)
This way you can avoid these XML parsing errors without having to find the exact XML schemas.
source share