URLrewrite Error: Conf failed to load

176 views
Skip to first unread message

VenkataPrasad Regula

unread,
Jun 29, 2011, 4:33:22 AM6/29/11
to UrlRewrite
As I am running my spring web flow application , I am getting the
following error. Could someone help me comeout od this. I am not good
at regexp. I am pasting my urlrewrite.xml file below the errors.
Thanks in advance.

Jun 29, 2011 1:51:00 PM org.apache.catalina.core.ApplicationContext
log
INFO: org.tuckey.web.filters.urlrewrite.Rule ERROR: Rule Rule 1 had
error: from (/**) is an invalid regular expression - Dangling meta
character '*' near index 2
/**
^
Jun 29, 2011 1:51:00 PM org.apache.catalina.core.ApplicationContext
log
INFO: org.tuckey.web.filters.urlrewrite.RuleBase ERROR: from (/**) is
an invalid regular expression - Dangling meta character '*' near index
2
/**
^
Jun 29, 2011 1:51:00 PM org.apache.catalina.core.ApplicationContext
log
INFO: org.tuckey.web.filters.urlrewrite.OutboundRule ERROR: Outbound
Rule Outbound Rule 0 had error: from (/app/**) is an invalid regular
expression - Dangling meta character '*' near index 6
/app/**
^
Jun 29, 2011 1:51:00 PM org.apache.catalina.core.ApplicationContext
log
INFO: org.tuckey.web.filters.urlrewrite.RuleBase ERROR: from (/app/**)
is an invalid regular expression - Dangling meta character '*' near
index 6
/app/**
^
Jun 29, 2011 1:51:00 PM org.apache.catalina.core.ApplicationContext
log
INFO: org.tuckey.web.filters.urlrewrite.UrlRewriteFilter ERROR: Conf
failed to load

My urlrewrite.xml file is as below.

<?xml version="1.0" encoding="utf-8"?>

<!--
<!DOCTYPE urlrewrite PUBLIC "-//tuckey.org//DTD UrlRewrite 3.2//EN"
"http://tuckey.org/res/dtds/
urlrewrite3.2.dtd">
-->
<!DOCTYPE urlrewrite PUBLIC "-//tuckey.org//DTD UrlRewrite 3.2//EN"
"/home/rmvprasad/eclipse_programs/
sample_programs/webflow/FirstWebFlow/src/main/webapp/WEB-INF/
urlrewrite3.2.dtd">

<urlrewrite default-match-type="wildcard">
<rule>
<from>/</from>
<to>/app/welcome</to>
</rule>
<rule>
<from>/**</from>
<to>/app/$1</to>
</rule>
<outbound-rule>
<from>/app/**</from>
<to>/$1</to>
</outbound-rule>
</urlrewrite>

Wim De Smet

unread,
Jun 30, 2011, 5:26:37 AM6/30/11
to urlre...@googlegroups.com
It seems like the match type set on the root element is being ignored
for some reason. Try if it works if you set it explicitly on the
rules, i.e.:
<rule match-type="wildcard">
...

> --
> You received this message because you are subscribed to the Google Groups "UrlRewrite" group.
> To post to this group, send email to urlre...@googlegroups.com.
> To unsubscribe from this group, send email to urlrewrite+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/urlrewrite?hl=en.
>
>

Reply all
Reply to author
Forward
0 new messages