[ 
https://issues.apache.org/jira/browse/TOMEE-1993?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15795934#comment-15795934
 ] 

Romain Manni-Bucau edited comment on TOMEE-1993 at 1/3/17 7:21 PM:
-------------------------------------------------------------------

[~violetagg] this case worked for me (just retested with a snapshot and it 
seems it works also there):

{code}
┌( rmannibucau @ alienware )─( 08:18 -:- 01/03 )
└( «he-tomee-webprofile-7.0.2 ) -> ls -lh webapps/
total 0
lrwxrwxrwx 1 rmannibucau rmannibucau 39 janv.  3 20:18 test -> 
/tmp/apache-tomee-webprofile-7.0.2/test/
{code}

Also tested this setup:

{code}
┌( rmannibucau @ alienware )─( 08:20 -:- 01/03 )
└( «he-tomee-webprofile-7.0.2 ) -> pwd
/tmp/apache-tomee-webprofile-7.0.2

┌( rmannibucau @ alienware )─( 08:20 -:- 01/03 )
└( «he-tomee-webprofile-7.0.2 ) -> ls -lh webapps/
total 0
lrwxrwxrwx 1 rmannibucau rmannibucau 22 janv.  3 20:20 test -> 
/home/rmannibucau/test/
{code}

What does differ?


was (Author: romain.manni-bucau):
[~violetagg] this case worked for me (just rested with a snapshot and it seems 
it works also there):

{code}
┌( rmannibucau @ alienware )─( 08:18 -:- 01/03 )
└( «he-tomee-webprofile-7.0.2 ) -> ls -lh webapps/
total 0
lrwxrwxrwx 1 rmannibucau rmannibucau 39 janv.  3 20:18 test -> 
/tmp/apache-tomee-webprofile-7.0.2/test/
{code}

Also tested this setup:

{code}
┌( rmannibucau @ alienware )─( 08:20 -:- 01/03 )
└( «he-tomee-webprofile-7.0.2 ) -> pwd
/tmp/apache-tomee-webprofile-7.0.2

┌( rmannibucau @ alienware )─( 08:20 -:- 01/03 )
└( «he-tomee-webprofile-7.0.2 ) -> ls -lh webapps/
total 0
lrwxrwxrwx 1 rmannibucau rmannibucau 22 janv.  3 20:20 test -> 
/home/rmannibucau/test/
{code}

What does differ?

> When using symbolic links the @WebServlet is not processed
> ----------------------------------------------------------
>
>                 Key: TOMEE-1993
>                 URL: https://issues.apache.org/jira/browse/TOMEE-1993
>             Project: TomEE
>          Issue Type: Bug
>          Components: TomEE Core Server
>    Affects Versions: 7.0.2
>            Reporter: Violeta Georgieva
>
> Hi,
> @WebServlet is not processed when the web app files are symbolic links, but 
> the root web app directory is not.
> The use case is the following:
> TomEE structure:
> {code}
> - TomEE root
> ...
>   - webapps
>     - myapp
>       content -> /some/other/location/...
> {code}
> When the root of the app (in my case my app dir is not a symbolic link) then
> the war path will point to the location under TomEE directory.
> https://github.com/apache/tomee/blob/master/tomee/tomee-catalina/src/main/java/org/apache/tomee/catalina/Contexts.java#L62
> Later when processing the @WebServlet the actual file path will point to
> "/some/other/location/..." but the "info.name" will point to the location
> under TomEE directory.
> https://github.com/apache/tomee/blob/master/tomee/tomee-catalina/src/main/java/org/apache/catalina/startup/OpenEJBContextConfig.java#L569
> If I change the symbolic link to the following:
> {code}
> - TomEE root
> ...
>   - webapps
>     - myapp -> /some/other/location
>       content -> /some/other/location/...
> {code}
> Then everything is OK and the servlets are found.
> I'm reproducing this with TomEE 7.0.2 and I do not reproduce this behavior
> with TomEE 1.7.2
> Best Regards,
> Violeta Georgieva



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to