hericles 289 Master Poster Featured Poster

I'm trying to catch the incoming request to my Tomcat server and redirect to another page (a servlet). I don't have Apache installed so no mod_rewrite will work (as I understand it). I need to redirect the incoming request aimed at a standard URL http://www.somesite.com and send it to the localhost:80/someServlet

I installed urlrewritefilter and placed this text in the web.xml file


And then in the urlrewrite.xml

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE urlrewrite PUBLIC "-//tuckey.org//DTD UrlRewrite 3.2//EN"


            Catch incoming request and redirect to track/Track servlet
        <to type="redirect">track/Track</to>

There was also the jar file which I put into the lib folder in the same directory as urlrewrite.xml. But Tomcat simply stopped working. Any advice?

Thanks in advance,

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.