Hi,
In short, how does one deploy a war file such that it looks
for content (/images/whatever.gif) in a configurable location
in the file system?
Configure the server to serve that WAR file with a context path of
(the empty string). This can be done in tomcat in three ways:
- Add a Context
Thanks once again. This is very helpful.
Now here's what I really want (it never ends, does it):
Is there a way, within a single context, to separate out
the static content to some other file system location.
I'd like to be able to deploy my war file with library jars,
configuration info,
Hi,
Is there a way, within a single context, to separate out
the static content to some other file system location.
Of course, there are many ways, none of them advised. You want to keep
your webapp as a whole, that's the whole point of a WAR file. You can
symlink (at the filesystem level) or
Yoav,
Let me describe a bit about our application, just in case you
(or anyone else) have some specific advice.
My client is a publisher, and the bulk of the site will be many
thousands of published articles and associated content such
as figure, tables, etc.
The HTML content, however, will be
Fred,
Thanks for the additional info about your app ... it makes it much
easier to talk about these things. :) There are many (valid) ways
to proceed, many of which vary in the amount of standards they
adhere to (how much you want to align yourself with Tomcat).
I'll just give you my thoughts.
Justin,
Thanks again for taking the time to think about this with me.
Alas, my customer's deployment platform is windows. So
no symlinks. No Apache (they use IIS). Complicated security
model for everything on the site except for decorative gifs.
So Tomcat does it all!
Thanks,
Fred
At 03:13 PM
At 01:04 PM 5/11/2004, you wrote:
Justin,
Thanks again for taking the time to think about this with me.
Alas, my customer's deployment platform is windows. So
no symlinks. No Apache (they use IIS). Complicated security
model for everything on the site except for decorative gifs.
So Tomcat does
At 07:04 PM 5/10/2004, you wrote:
Hi,
I'm trying to install a filter into the default context that
forwards to my application (in another context) and it
doesn't seem to want to work. (jboss 3.2.3 with embedded
tomcat 4.1.29)
In researching this, I've seen various hints that this may
in fact be
Justin,
Thanks very much for your considered reply. You both solved
my problem and made me question my approach at the same
time.
In re-thinking this in terms of separated webapps, I've hit another
issue. If I solve this problem within one particular web application,
I have to be able to point