users@glassfish.java.net

Re: unable to get working alternate docroots

From: <glassfish_at_javadesktop.org>
Date: Wed, 30 Jun 2010 07:31:10 PDT

Hi

I am on [b]Solaris 10[/b] and [b]Sun GlassFish Enterprise Server v2.1 (9.1.1) (build b60e-fcs)[/b]
I am setting things up the exact way you specified, and it is not working.

I am getting: HTTP Status 404 - The requested resource () is not available.

I have a dir on my solaris server
/opt/app/img
with image files in them (ex abc.jpg)

I wanted to create a virtual dir.
so I added the following property to server virtual server.
 
<property name="alternatedocroot_1" value="from=/localshare/images/* dir
=/opt/app/img"/>

[u]Now When I hit the URL:[/u]
http://hostname:port/localshare/images/abc.jpg
I get the error:[b] HTTP Status 404 - The requested resource () is not available[/b].
[Message sent by forum member 'ccagf']

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