I believe that the "base" context is ignored, similarly as it is for
jetty-http container (or maybe grizzly-http or both, not sure right
now). It definitely shouldn't be accessible with URL with duplicated "base".
So your resource is most likely accessible at
http://localhost:8080/helloworld (or
http://localhost:8080/{@ApplicationPath.value}/helloworld, if you are
using Application annotated with @ApplicationPath).
Regards,
Pavel
On 30/11/2016 03:48, juaby wrote:
> dear all,
>
>
> env: centos7.2, jersey2.24.1 nettyhttpcontainer
>
>
> problem:
>
> base_uri =
http://localhost:8080/base/> resource path = "helloworld"
>
> after server started, by chrome access "
http://localhost:8080/base/hellowrold" respose code "404"
>
> JerseyServerHandler line #145
> URI requestUri = URI.create(baseUri + ContainerUtils.encodeUnsafeCharacters(s));
>
>
http://localhost:8080/base/base/hellowrold ===================> double "base" ===========> 404
>
> is not a bug?
>
> 好运
> --
>
>
>
>
>
>
>
> 闫家宝 YAN JIA BAO
>
>
>
>
>
>
>
>
>
>
>