Hi

Why not just putting your resources in /resources? You can need to edit
conf/web.xml to remove default mapping if you remap this servlet yourself.
Le 11 juil. 2015 10:41, "Kirys" <[email protected]> a écrit :

> Hi again
> I'm trying to make a demo app that behave in a similar way to spring MVC
> but using jax-ws.
> Everything seems to work just fine, now I wanted to serve static files,
> but adding this code
>    <servlet-mapping>
>         <servlet-name>default</servlet-name>
>         <url-pattern>/resources/*</url-pattern>
>     </servlet-mapping>
>
> into web.xml result into the root path resolved by the default servlet
> instead of the jax servlet.
> I though that using the default servlet to serve static resources should
> reduce issues of path manipulation, but I don't know if this the correct
> solution.
>
> the code is here (tomee-plugin included):
> https://bitbucket.org/kirys/tomee-tests/
> into the spring-style dir.
>
> Thank You
> K.
>

Reply via email to