aspose file tools*
The moose likes Other Open Source Projects and the fly likes URL rewrite errors Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "URL rewrite errors" Watch "URL rewrite errors" New topic
Author

URL rewrite errors

Mimi Tam
Ranch Hand

Joined: Mar 05, 2010
Posts: 121
Dear all,

I need some help.

I am running Eclipse 3.4, Spring 3, Hibernate 3 and Tomcat 6 with maven2.

I am getting these run time errors below and not sure how to fix it. Any info/help will be greatly appreciated.



Here's my urlrewrite.xml


Looking forward to some help.

Many Thanks in advance.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60072
    
  65

Please be sure to ask IDE questions in the IDEs forum. I have moved this post there for you.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Mimi Tam
Ranch Hand

Joined: Mar 05, 2010
Posts: 121
Hi Bear,

Thank you but I don't think that this is an IDE problem. I could be wrong.

To me, this problem is very likely caused by incorrect config in urlrewrite.xml and I need Spring/Hibernate/Maven guru's help.

What do you think?

Thanks
Mimi Tam
Ranch Hand

Joined: Mar 05, 2010
Posts: 121

Actually, I should have added the following chuck of trace as well.

It says "org.tuckey.web.filters.urlrewrite.UrlRewriteFilter ERROR: Conf failed to load" after complaining about "invalid expressions".

Which forum will give me a better chance to be helped?

Thanks...

Mimi Tam
Ranch Hand

Joined: Mar 05, 2010
Posts: 121


Bear Bibeault wrote:Please be sure to ask IDE questions in the IDEs forum. I have moved this post there for you.



Hi Bear Bibeault,

Is it possible for you to move my previous questions back to this forum please?

Thanks.
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

This has nothing to do with Spring, Hibernate, or Maven.

Maven is a build system. Hibernate is a persistence mechanism. Spring is everything.

You're obviously using http://tuckey.org/urlrewrite/manual/2.6/, and the value contained in the <from> element is supposed to be a regex. A regex with two ** in a row is a malformed regex, precisely as the exception message states.
Mimi Tam
Ranch Hand

Joined: Mar 05, 2010
Posts: 121
Thank you very much, David.


You're obviously using http://tuckey.org/urlrewrite/manual/2.6/, and the value contained in the <from> element is supposed to be a regex. A regex with two ** in a row is a malformed regex, precisely as the exception message states.


I am a newbie in this. Can you elaborate on how I can fix this, please? I have urlrewrite-2.5.2. Do I need a newer version of urlrewrite? What is the best way to go? Change the expression or change the urlrewrite version?

Many Thanks
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

The manual I linked to is a newer version that yours. I'd recommend reading said documentation, and staying within the confines of what it can do--what gave you the idea you could do what you're trying?
Mimi Tam
Ranch Hand

Joined: Mar 05, 2010
Posts: 121

Thank you very much, David.

My problem was solved. I knew it should work if I did it correctly because I ran the Roo version of this project. Then, I created my own Roo version of the same project and trying to make it work.

I am however, working on a Maven project that I want to make it RESTFUL and the Roo sample gave me some ideas. Although the urlrewrite problem went away, I am now facing the core problems.

I tried to find relevant info about a problem to read as much as possible and then thru trial-&-error to solve it. Posting questions here is always my last resort and if I could not find relevant info or code template to follow.... I am really grateful for this forum in getting help from folks like yourself.

Sincerely...thanks.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: URL rewrite errors
 
Similar Threads
Urlrewrite logic
Error in FilterStart Struts 2 web app
Page not found
Missing CharacterEncodingFilter, UrlRewriteFilter?
htaccess and mod_rewrite issue