users@glassfish.java.net

Re: Default Web Module and alternatedocroot_1 virtual directory problem

From: <glassfish_at_javadesktop.org>
Date: Tue, 18 Aug 2009 03:47:41 PDT

Hi, I faced some similar problems a few months ago. I configured the alternatedocroot in my sun-web.xml.

My problem was because of the directories. Do u have a directory "assets" inside your "J:/inetpub/wwwroot/prototype/".
I wanted to server content from [i]C:\WebServer\glassfish\domains\domain1\fileUploaded\[/i] accesed via [i]/docs/*[/i] so my alternatedocroot looks like:

<property name="alternatedocroot_1" value="from=/docs/* dir=c:\WebServer\glassfish\domains\domain1\fileUploaded\" />

And my path has a "docs" directory inside "C:\WebServer\glassfish\domains\domain1\fileUploaded\". That's the only way that I did it work. Hope it can help u.
[Message sent by forum member 'kienvaser' (kienvaser)]

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