Hi
I've fixed it, thanks
Sergey
On 19/12/16 11:14, Vjacheslav V. Borisov wrote:
Hi!
Looks like Swagger2Feature conflicts with jaxrs:extensionMappings
E.g. when I have
<jaxrs:extensionMappings>
<entry key="json" value="application/json;charset=UTF-8"/>
</jaxrs:extensionMappings>
Then I cannot request swagger.json, i am getting 404, becouse it tries to
find resource
"swagger" (without extension)
15:10:17.489 [http-nio-8080-exec-20] INFO o.a.c.i.LoggingInInterceptor -
Inbound Message
----------------------------
ID: 22
Address: http://localhost:8080/XXXX/web/swagger.json
Http-Method: GET
Content-Type:
Headers:
{Accept=[text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8],
accept-encoding=[gzip, deflate], accept-language=[en-US,en;q=0.5],
cache-control=[max-age=0], connection=[keep-alive], Content-Type=[null],
host=[localhost:8080], upgrade-insecure-requests=[1],
user-agent=[Mozilla/5.0 (X11; Linux x86_64; rv:49.0) Gecko/20100101
Firefox/49.0]}
--------------------------------------
15:10:17.490 [http-nio-8080-exec-20] WARN o.a.c.j.i.JAXRSInInterceptor -
No root resource matching request path /XXXX/web/swagger has been found,
Relative Path: /swagger. Please enable FINE/TRACE log level for more
details.
19-Dec-2016 15:10:17.491 WARNING [http-nio-8080-exec-20] null.null HTTP 404
Not Found
javax.ws.rs.NotFoundException: HTTP 404 Not Found