Hi

yes, often we map jaxrs under /api (use a jaxrs Application or web.xml
to do so). If you can't use
https://issues.apache.org/jira/browse/TOMEE-728

2014-02-17 22:08 UTC+01:00, SanekP <[email protected]>:
> I have product.html file in my webapp folder and it works fine.
> Then I add class with @Path("rest/product") annotation and REST works fine,
> but I loss access to my product.html. In console when I try open
> http://localhost:8080/app/product.html:
> org.apache.cxf.jaxrs.interceptor.JAXRSInInterceptor processRequest
> WARNING: No root resource matching request path product.html has been
> found,
> Relative Path: /product.html. Please enable FINE/TRACE log level for more
> details.
>
> My web.xml pretty simple:
> <web-app>
>   <welcome-file-list>
>     <welcome-file>product.html</welcome-file>
>   </welcome-file-list>
> </web-app>
> What am I doing wrong? And how to setup url-prefix for JAX-RS?
>
>
>
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/JAX-RS-overlaps-access-to-static-HTML-tp4667855.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>


-- 
*Romain Manni-Bucau*
*Twitter: @rmannibucau <https://twitter.com/rmannibucau>*
*Blog: **http://rmannibucau.wordpress.com/*<http://rmannibucau.wordpress.com/>
*LinkedIn: **http://fr.linkedin.com/in/rmannibucau*
*Github: https://github.com/rmannibucau*

Reply via email to