Hi,
u have to modify sun-web.xml of the app. In that file u simply add a
property inside the sun-web-app tag like this:
<property name="alternatedocroot_1" value="from=/virdir/* dir=/srv/web/" />
One point is that u need to have the "virdir" directory created in /srv/web.
Hope it helps u.
Cheers.
On Wed, Sep 2, 2009 at 17:56, <glassfish_at_javadesktop.org> wrote:
> I have what I'd like to believe is a stupid question, but am beginning to
> think it's quite a holy grail. I've searched and searched for an answer to
> this, but simple cannot find any reasonably understandable information about
> it specifically.
>
> I'm trying to add a "virtual directory" to a deployed .war file in
> glassfish v2.1 enterprise.
>
> To be more specific, in IIS, if you want to say serve up some files for
> download, you can right click on a virtual server and simply add a virtual
> directory. In this case a directory that is available on the network as a
> samba share. and a user can then browse to
> http://thesite.com/virdir/thefile and bam there it is.
>
> To the best of my ability I see no way to do this in glassfish, which seems
> ridiculous. I'm sure it's simple, I just plain can't figure it out.
>
> I currently have only one .war deployed as the default web module. i just
> need to add a network samba share to it as a "virtual directory" just as I
> described above.
>
> the stupid question is "HOW?!"
> [Message sent by forum member 't3kn0m0nk3y' (zwelch_at_vpsupply.com)]
>
> http://forums.java.net/jive/thread.jspa?messageID=362726
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>
--
David Sanmartín
www.david-sanmartin.net