Symbolic links in webapp

After upgrading to jws7 and jdk 1.5.0_06 symbolic links in the web application root are no longer followed. Is there a configuration directive to change this?Solaris 10 sparcThanks,Jess
[213 byte] By [jesspdx] at [2007-11-26 10:31:03]
# 1
can u be more elaborate as to what you are trying to do. your earlier comments are not that clear to me
chilideveloper at 2007-7-7 2:38:05 > top of Java-index,Web & Directory Servers,Web Servers...
# 2

Sorry if I was vague.

The server returns a 404 error when a jsp file is hit that is below a directory which is a symbolic link. For instance /filesystem/webs/approot/shared is a symlink to /filesystem/webs/shared and foo.jsp exists in shared. When "http://server/shared/foo.jsp" is hit the server returns a 404. The server does however return a succesful directory listing of "http://server/shared/".

Thanks,

Jess

jesspdx at 2007-7-7 2:38:05 > top of Java-index,Web & Directory Servers,Web Servers...
# 3

hi

using the WS7 Technology Preview 3 build, this works fine for me. for e,g. i have a web app in my home directory and created a symbolic link to /tmp/foo. now, if I mention

<path>/tmp/foo</path> in the server instance's server.xml , the index.jsp gets loaded successfully .

you might want to check out whether the symolic link is indeed accessible in your case.

for eg

ls -la original file symbolic link_file

cat orgiinal file

cat symbolic link_file

last but not least, you can consider using WS7's latest TP3 (technology preview 3), if u r not using it already.

pl. note that WS7 TP3 is not upgradable from WS7 TP2 but supports upgrading from 6.1

chilideveloper at 2007-7-7 2:38:06 > top of Java-index,Web & Directory Servers,Web Servers...
# 4

i thought i already repled to this.

hey, i am not able to reproduce this bits. I consruct a web app in my home directory and then place a symlink to /tmp . now, if I use /tmp/foo as the <path> in my server.xml, the index.jsp loads fine.

in your case, check out the following

- try using the latest web server 7 TP3 release. pl. note that this release does not support upgrading from TP2 but does support upgrading from 6.1

- ensure that the symbolic link is indeed pointing to the right files and is indeed accessible.

chilideveloper at 2007-7-7 2:38:06 > top of Java-index,Web & Directory Servers,Web Servers...
# 5

Okay, I upgraded to TP3 and still the same issue. It sounds to me that in your test you are symlinking your approot, this works fine for me. The problem arises when the symlink occurs below the docroot.

/filesystem/webs/approot/shared --> /filesystem/webs/shared

(so the link is to a directory on the same level as the approot, and is not in the approot)

and the jsp exists in /filesystem/webs/shared so the URI would be:

/shared/foo.jsp

We are trying to do this so we can share jsps (and other such files) between multiple web applications. So, approot, approot2, approot3 and approot4 would all have access to this subset of jsps that are in the shared directory.

thanks,

jess

jesspdx at 2007-7-7 2:38:06 > top of Java-index,Web & Directory Servers,Web Servers...
# 6
Also, file permissions are correct. I can view html files and directory listings, but I can not run a jsp.
jesspdx at 2007-7-7 2:38:06 > top of Java-index,Web & Directory Servers,Web Servers...
# 7
Thanks for letting us know about the problem, jesspdx. I was able to reproduce the problem, and I've filed a bug report, CR 6477511.Unfortunately, I don't know what's going wrong. Hopefully someone will be able to take a closer look soon...
elving at 2007-7-7 2:38:06 > top of Java-index,Web & Directory Servers,Web Servers...
# 8
Thank you. Is there any way for outsiders to track bugs?thanks,jess
jesspdx at 2007-7-7 2:38:06 > top of Java-index,Web & Directory Servers,Web Servers...
# 9
thanks for catching this issue. the fix for this issue has been already delivered by the responsible engineer.but, I am not sure, if there is any more Technology prevew builds planned before the final release - which is scheduled to before the end of this year (most likely)
chilideveloper at 2007-7-7 2:38:06 > top of Java-index,Web & Directory Servers,Web Servers...