from what I understand of java, it has NO built in support of symbolic
links, therefore it cannot detect if a file/directory is a normal
file/directory or if it is symbolic link to a file/directory
so this is apparently some special code that has been written to detect
symbolic links..
considering that allowLinking is the very same "property" that is being
set in tomcat, and I've seen that you are including tomcat stuff in
glassfish, I can just wonder why it works in tomcat, but not in glassfish..
anyway, no not all webapps share the same libraries, only some do, and
some do use older versions of the same jar files so putting it in a
central place is a no go..
unless ofcourse if I can have several domains on the same virtual host,
that way I can have one domain for the webapps that is "shared" and
another domain for the other webapps, but since I'm new to glassfish I'm
not sure if this is possible..
w.rittmeyer_at_jsptutorial.org skrev:
> This generally works for serving files and JSPs - though I doubt that the classloader works that way. If all your webapps need a common jar file it probably would be better to put this jar file into the $DOMAIN_HOME/lib directory.
>
> --
> Wolfram Rittmeyer
>
>
>
>> Hi there, this is my second question/problem.
>>
>> I would like to be able to in the web applications WEB-INF directory use
>> an symbolic link to the lib directory (to make sure that all
>> webapplications that should use same jar files do use them)
>>
>> the problem is that whenever I set up lib to be a symbolic link, my web
>> application no longer starts (I have some servlets that start up at the
>> begining) and inthe logs I see ClassNotfoundException:s
>>
>> after searching a bit I found that to get symlinks working I needed to
>> turn it on bu using the allowLinking property in
>> [WEB-APP-DIR]/WEB-INF/sun-web.xml like this..
>>
>> <sun-web-app>
>> <property name="allowLinking" value="true"/>
>> </sun-web-app>
>>
>>
>> but symbolic links still do no work..
>>
>> do I do something wrong? or is it not possible to use symbolic links
>> for the lib directory ?
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>