In order to do this the SEO-friendly and correct way so that Google does not identify you as having two different domains -- you need to use a specific HTTP 301 Redirect Code.
The only tricky way I found to do this in Tomcat was to use a Custom 404 Page implementation.
Add a new host entry in $CATALINA_BASE/server.xml as follows
Code:
<Host name="newhost" debug="0" appBase="appbase" unpackWARs="true">
<Context path="" docBase="docBase" debug="0">
</Context>
</Host>
Create a file $CATALINA_BASE/appbase/docBase/WEB-INF/web.xml as follows
Code:
<web-app>
<error-page>
<error-code>404</error-code>
<location>/404.jsp</location>
</error-page>
</web-app>
Create a file $CATALINA_BASE/appbase/docBase/404.jsp as follows
Code:
<%
response.setStatus(301);
response.setHeader( "Location", "newbaseURL" + (String)request.getAttribute("javax.servlet.forward.request_uri") );
response.setHeader( "Connection", "close" );
%>