Thank you very much for the tip. I have tried to use alternatedocroot_1 and
redeploy the application and my files weren’t deleted.
Da: papp.zoltan_at_mondoka.hu [mailto:papp.zoltan_at_mondoka.hu]
Inviato: giovedì 20 settembre 2012 21:31
A: users_at_glassfish.java.net
Oggetto: Re: R: symbolic link in application delete contents after redeploy
Hi!
Did you tried alternatedocroot_1 ?
2012.09.20. 17:49 keltezéssel, cluster írta:
Yes of course these are the steps to reproduce the problem:
1)Deploy a simple application in this case we use exai application:
/opt/glassfish3.1.2.2/glassfish/domains/domain1/applications/exai/
2) Create a symbolic to an external directory( like showed in the following
example):
ls
/opt/glassfish3.1.2.2/glassfish/domains/domain1/applications/exai/ -al
totale 36
drwxr-xr-x 8 root root 4096 19 set 16:11 .
drwxr-xr-x 7 root root 4096 19 set 16:08 ..
drwxr-xr-x 2 root root 4096 19 set 16:08 component
lrwxrwxrwx 1 root root 15 19 set 16:11 exai_media ->
/archivio_exai/
-rw-r--r-- 1 root root 429 19 set 16:08 index.xhtml
drwxr-xr-x 2 root root 4096 19 set 16:08 media
drwxr-xr-x 2 root root 4096 19 set 16:08 META-INF
drwxr-xr-x 2 root root 4096 19 set 16:08 pages
drwxr-xr-x 3 root root 4096 19 set 16:08 themes
drwxr-xr-x 4 root root 4096 19 set 16:08 WEB-INF
3) Redeploy the same application.
4) Now if you check in /archivio_exai/ that was previously linked in the
application you will notice that all files are deleted.
With glassfish 3.0.1 we don’t have this kind of problem after the upgrade to
3.1.2.2/3.1.2 we notice this . Let me know if is possible to solve it.
Thanks and Regards
Simone Cariani
This sounds like a bug. Can you file an issue with a reproducible test case
(with the steps)? When you said the behavior was different for previous
version, which version is that?
Thanks,
- Hong
cluster wrote:
>
> Hi all,
>
>
>
> with the last release of glassfish 3.1.2.2 and also in 3.1.2 i have
> noticed a strange behaviour when i undeploy or redeploy an
> application.. If I deploy an application and then create a symbolic
> link inside it (that point for example to external storage) when I
> redeploy the application all the content of this link is recursively
> deleted.. In the previous version an undeploy or redeploy only delete
> the link but not all its content. Do you think is it a bug? Or a new
> feature? Is possible to fix this to permit the deletion of the
> symbolic link but not the content.
>
>
>
> Regards
>
>
>
> Simone Cariani
>
--
Ezen uzenet virusellenorzesen esett at, es virusmentesnek bizonyult.
<http://www.mailscanner.info/> MailScanner - Email Virus Scanner
A MailScanner koszoni a transtec Computers <http://www.transtec.co.uk/>
tamogatasat.