users@glassfish.java.net

Re: unable to get working alternate docroots

From: <glassfish_at_javadesktop.org>
Date: Sun, 10 Feb 2008 13:36:18 PST

see also my response at

http://forums.java.net/jive/thread.jspa?messageID=252325&#252325

which should help.

going back to your example:

  property name: alternatedocroot_1
  property value: from=/myimages/* dir=/images
  request url: "http://localhost:8080/myimages/image1.jpg"

i assume your webapp has been deployed at the root context "/"?

if so, the request's path info equals "/myimages/image1.jpg", meaning the target resource path is given as

"/images" (the dir component of your alternate docroot definition)
+ "/myimages/image1.jpg" (the request's path info)

resulting in

"/images/myimages/image1.jpg"

does this resource exist in your local filesystem?
[Message sent by forum member 'jluehe' (jluehe)]

http://forums.java.net/jive/thread.jspa?messageID=258260