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, classes, etc., into the "safe" location within
the jboss deploy directory.

But, I'd like to have all of my static content (again, "/images/whatever.gif")
elsewhere on the file system.

I believe that Yoav's suggestion is that I set up the empty
path ("") context for this purpose. However, this is where
I started, and Justin argued against this "cross-context"
approach.

So is there a way to accomplish this separation within
a single context?

Many, many thanks. It's amazing how, even with a stack
of books and google and jakarta and all, there's no substitute
for talking with people.

Fred


At 07:37 AM 5/11/2004, you wrote:


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 entry in conf/server.xml whose path="" and docBase is
your WAR
- Add an xml file with the Context tag to conf/[engine name]/[host name]
(same path and docBase)
- Put same XML file as above in your WAR file's META-INF directory
instead of under the conf directory (tomcat 5 only).

Yoav Shapira



This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you.


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to