[
https://issues.jboss.org/browse/AS7-1762?page=com.atlassian.jira.plugin.s...
]
jefimm edited comment on AS7-1762 at 9/10/11 3:42 PM:
------------------------------------------------------
Adding condition make jboss to reject the configuration altogether:
<rewrite pattern="^/helloworld(.*)"
substitution="/helloworld/test.jsp">
<condition test="%{HTTPS}" pattern="off"
flags="NC"/>
</rewrite>
22:39:18,059 ERROR [stderr] Exception in thread "Controller Boot Thread"
java.lang.RuntimeException:
org.jboss.as.controller.persistence.ConfigurationPersistenceException: Failed to parse
configuration
22:39:18,061 ERROR [stderr] at
org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:89)
22:39:18,063 ERROR [stderr] at java.lang.Thread.run(Thread.java:662)
22:39:18,064 ERROR [stderr] Caused by:
org.jboss.as.controller.persistence.ConfigurationPersistenceException: Failed to parse
configuration
22:39:18,066 ERROR [stderr] at
org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:115)
22:39:18,067 ERROR [stderr] at
org.jboss.as.controller.AbstractControllerService.boot(AbstractControllerService.java:104)
22:39:18,069 ERROR [stderr] at
org.jboss.as.server.ServerService.boot(ServerService.java:193)
22:39:18,071 ERROR [stderr] at
org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:83)
22:39:18,072 ERROR [stderr] ... 1 more
22:39:18,074 ERROR [stderr] Caused by: javax.xml.stream.XMLStreamException: ParseError at
[row,col]:[431,9]
22:39:18,075 ERROR [stderr] Message: Unexpected element
'{urn:jboss:domain:webservices:1.0}subsystem' encountered
22:39:18,077 ERROR [stderr] at
org.jboss.as.controller.parsing.ParseUtils.unexpectedElement(ParseUtils.java:65)
22:39:18,080 ERROR [stderr] at
org.jboss.as.controller.parsing.ParseUtils.nextElement(ParseUtils.java:54)
22:39:18,084 ERROR [stderr] at
org.jboss.as.controller.parsing.StandaloneXml.readServerElement(StandaloneXml.java:164)
22:39:18,088 ERROR [stderr] at
org.jboss.as.controller.parsing.StandaloneXml.readElement(StandaloneXml.java:91)
22:39:18,091 ERROR [stderr] at
org.jboss.as.controller.parsing.StandaloneXml.readElement(StandaloneXml.java:79)
22:39:18,094 ERROR [stderr] at
org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:100)
22:39:18,097 ERROR [stderr] at
org.jboss.staxmapper.XMLMapperImpl.parseDocument(XMLMapperImpl.java:59)
22:39:18,099 ERROR [stderr] at
org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:107)
22:39:18,102 ERROR [stderr] ... 4 more
was (Author: jefimm):
Adding test make jboss to reject the configuration altogether:
<rewrite pattern="^/helloworld(.*)"
substitution="/helloworld/test.jsp">
<condition test="%{HTTPS}" pattern="off"
flags="NC"/>
</rewrite>
22:39:18,059 ERROR [stderr] Exception in thread "Controller Boot Thread"
java.lang.RuntimeException:
org.jboss.as.controller.persistence.ConfigurationPersistenceException: Failed to parse
configuration
22:39:18,061 ERROR [stderr] at
org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:89)
22:39:18,063 ERROR [stderr] at java.lang.Thread.run(Thread.java:662)
22:39:18,064 ERROR [stderr] Caused by:
org.jboss.as.controller.persistence.ConfigurationPersistenceException: Failed to parse
configuration
22:39:18,066 ERROR [stderr] at
org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:115)
22:39:18,067 ERROR [stderr] at
org.jboss.as.controller.AbstractControllerService.boot(AbstractControllerService.java:104)
22:39:18,069 ERROR [stderr] at
org.jboss.as.server.ServerService.boot(ServerService.java:193)
22:39:18,071 ERROR [stderr] at
org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:83)
22:39:18,072 ERROR [stderr] ... 1 more
22:39:18,074 ERROR [stderr] Caused by: javax.xml.stream.XMLStreamException: ParseError at
[row,col]:[431,9]
22:39:18,075 ERROR [stderr] Message: Unexpected element
'{urn:jboss:domain:webservices:1.0}subsystem' encountered
22:39:18,077 ERROR [stderr] at
org.jboss.as.controller.parsing.ParseUtils.unexpectedElement(ParseUtils.java:65)
22:39:18,080 ERROR [stderr] at
org.jboss.as.controller.parsing.ParseUtils.nextElement(ParseUtils.java:54)
22:39:18,084 ERROR [stderr] at
org.jboss.as.controller.parsing.StandaloneXml.readServerElement(StandaloneXml.java:164)
22:39:18,088 ERROR [stderr] at
org.jboss.as.controller.parsing.StandaloneXml.readElement(StandaloneXml.java:91)
22:39:18,091 ERROR [stderr] at
org.jboss.as.controller.parsing.StandaloneXml.readElement(StandaloneXml.java:79)
22:39:18,094 ERROR [stderr] at
org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:100)
22:39:18,097 ERROR [stderr] at
org.jboss.staxmapper.XMLMapperImpl.parseDocument(XMLMapperImpl.java:59)
22:39:18,099 ERROR [stderr] at
org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:107)
22:39:18,102 ERROR [stderr] ... 4 more
rewrite rule doesnt function
----------------------------
Key: AS7-1762
URL:
https://issues.jboss.org/browse/AS7-1762
Project: Application Server 7
Issue Type: Bug
Components: Web
Affects Versions: 7.0.1.Final
Reporter: jefimm
Assignee: Remy Maucherat
Attachments: helloworld.war
I have tried to add the following configuration to the standalone.xml
<virtual-server> node:
<virtual-server name="default-host">
<alias name="localhost"/>
<alias name="example.com"/>
<rewrite pattern="^/helloworld(.*)"
substitution="/helloworld/test.jsp"/>
</virtual-server>
and I have deployed the helloworld.war, however the rewrite does not work (I know I can
deploy war at the root context I just want to test the rewrite).
--
This message is automatically generated by JIRA.
For more information on JIRA, see:
http://www.atlassian.com/software/jira