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

Violeta Georgieva commented on TOMEE-1993:
------------------------------------------

Here it is:

{code}
macbook-pro:apache-tomee-webprofile-7.0.2 vgeorgieva$ pwd
/Users/vgeorgieva/Downloads/apache-tomee-webprofile-7.0.2
macbook-pro:apache-tomee-webprofile-7.0.2 vgeorgieva$ ls -lh webapps/
total 0
drwxr-xr-x  8 vgeorgieva  staff   272B Jan  3 21:37 moviefun
macbook-pro:apache-tomee-webprofile-7.0.2 vgeorgieva$ ls -lh webapps/moviefun
total 48
lrwxr-xr-x  1 vgeorgieva  staff    45B Jan  3 21:36 META-INF -> 
/Users/vgeorgieva/Downloads/moviefun/META-INF
lrwxr-xr-x  1 vgeorgieva  staff    44B Jan  3 21:37 WEB-INF -> 
/Users/vgeorgieva/Downloads/moviefun/WEB-INF
lrwxr-xr-x  1 vgeorgieva  staff    43B Jan  3 21:36 assets -> 
/Users/vgeorgieva/Downloads/moviefun/assets
lrwxr-xr-x  1 vgeorgieva  staff    48B Jan  3 21:37 default.css -> 
/Users/vgeorgieva/Downloads/moviefun/default.css
lrwxr-xr-x  1 vgeorgieva  staff    46B Jan  3 21:37 index.jsp -> 
/Users/vgeorgieva/Downloads/moviefun/index.jsp
lrwxr-xr-x  1 vgeorgieva  staff    46B Jan  3 21:37 setup.jsp -> 
/Users/vgeorgieva/Downloads/moviefun/setup.jsp
{code}

> 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