2

I have a war that also needs to serve jsp's from alternative external directories. In weblogic this is achieved with virtual directory mappings.

Is there a clean way to achieve this with Tomcat?

mgibsonbr
  • 21,755
  • 7
  • 70
  • 112
Pablojim
  • 8,542
  • 8
  • 45
  • 69

1 Answers1

1

Depends of the case:

  • If the entire context is in an external directory, you can have a context xml file that points at that directory(docBase="/external/directory")
  • If you have an open deploy (not war file) on any unix system, you can have a symbolic link to the external directory. Notice that redeploys may ruin this.
  • If you want just a single directory and doesn't want to (or can't) use symbolic links, the the answer is no.
David Rabinowitz
  • 29,904
  • 14
  • 93
  • 125