• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Netscape Server to Tomcat - NameTrans equivalent

 
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am tasked with moving a web application from an OLD OLD Netscape server to Tomcat. Many of the image files in the JSPs are referenced by a path that is set up in a "redirect" to another directory. In the "obj.conf" file for the NS server, it uses a statement like:

NameTrans fn="pfx2dir" from="/appimages" dir="/opt/Company/app/images"

I am wondering if there is an equivalent type process in Tomcat or in the web.xml file (which would make it nice to be able to configure for each web app individually or multiple different server types).

Thanks ahead of time.


Stephen McConnell

 
Saloon Keeper
Posts: 22483
151
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the JavaRanch, Stephen!

I think you'll find it easier to front tomcat with something like the Apache httpd server. You can set it up to redirect URLs and do much more besides.

And if I'm not mistaken, Apache is more like the Netscape server than Tomcat is.

You'll still need Tomcat to handle the JSP and other J2EE stuff, but Apache can forward those requests to Tomcat.
 
Stephen McConnell
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the quick reply.

I was sort of hoping that there might have been something in Tomcat that I overlooked and hoping to not have to do that. I'm not in charge of the "server", but will have to ask the "systems" people to set it up with a Apache/Tomcat connector.... in a large company, you have to have all kinds of justification etc etc.... and it may take a month.... but what the hey.... I'm only a consultant.

I've done what you suggest on my personal system and the combination works, getting Tomcat to serve up JSP/Servlets and Apache to server up the static stuff...

Thanks

Stephen McConnell
 
JavaMonitor Support
Posts: 251
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Stephen,

There is a URL rewriter for Tomcat: http://java-monitor.com/forum/showthread.php?t=266

I am sure you can find more, just http://www.google.com/search?q=mod_rewrite+tomcat

Kees Jan
 
Stephen McConnell
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you very much...

Looking into it now.

Stephen McConnell
 
if you think brussel sprouts are yummy, you should try any other food. And this tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic