File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Servlets and the fly likes URLRewriteFilter issues Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "URLRewriteFilter issues" Watch "URLRewriteFilter issues" New topic
Author

URLRewriteFilter issues

Michael Cropper
Ranch Hand

Joined: Sep 30, 2009
Posts: 137
Hi, I am having a few issues when building my web application - when it is running it works as expected, but when I am building it (in Netbeans) I am getting errors which I am unable to figure out what they mean.

The setup I have got is for all requests /* to be pushed through URLRewriteFilter which only has one rule



Then I have got a welcome file which is set to "my-servlet-two.do" (and the corresponding servlet mappings for that URL are also set up).

When I run the scripts in my browser they both work as expected.

But when I am building the applications in Netbeans I get the error "MonitorFilter::WARNING: the monitor filter must be the first filter in the chain."

From the huge list of errors being produced here, it appears that when I am building the application 'something' is being pushed through the "my-servlet-one" script one after the other which is flagging all of these errors - even though the end result once the application is build is the "my-servlet-two" being run through and displayed in the browser.

Looking through several help files online, this seems to be an issue with the order in which the information is contained either within the URLRewrite.xml file or web.xml file - although I am unsure what the correct order should be as they didn't go that far.

Does all that make sense? If so has anyone any ideas what the possible solution could be here, or anything I could try to aim to debug this issue.

Thanks
Michael



Thanks
Michael
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: URLRewriteFilter issues