users@jersey.java.net

[Jersey] Re: jersey-samples-1.8 server not reachable

From: Oleksiy Stashok <oleksiy.stashok_at_oracle.com>
Date: Thu, 01 Sep 2011 17:54:26 +0200

It's not a grizzly issue, it's just how localhost works :)
To make your service available on all network interfaces, please use
0.0.0.0 address instead.

WBR,
Alexey.

On 09/01/2011 05:44 PM, Nicolas Bregenzer wrote:
> Hey,
>
> i actually found a resolution. on another LAN it worked. it looks like
> its depending on the network grizzly binds to different ip adresses.
> the 192.168... adress worked then in the original network localhost
> not. don't know if this is on purpose or an issue with grizzly,
> glassfish has no such limitations of bindings.
>
> best regards
>
>
> On Thu, Sep 1, 2011 at 5:26 PM, Pavel Bucek <pavel.bucek_at_oracle.com
> <mailto:pavel.bucek_at_oracle.com>> wrote:
>
> Hello Nicolas,
>
> that is kind of strange.. does that apply for all samples?
>
> I can see you are trying to run helloworld sample.. have you seen
> README.html file? It mentions that you should run
>
> mvn compile exec:java
>
> and check
>
> http://localhost:9998/helloworld..
>
> Have you done any modification(s)?
>
> Pavel
>
>
> On 8/26/11 12:03 PM, Nicolas Bregenzer wrote:
>> hi all,
>>
>> i'm getting a strange error in simply compiling the jersey samples.
>>
>> compile is largely successful except some warnings
>> [WARNING] Some problems were encountered while building the
>> effective model for com.sun.jersey.samples:helloworld:jar:1.8
>> [WARNING] 'build.plugins.plugin.version' for
>> org.apache.maven.plugins:maven-compiler-plugin is missing. @ line
>> 116, column 21
>>
>> but complies successful and server is startet.
>>
>> Starting grizzly...
>> Aug 25, 2011 11:49:06 PM
>> org.glassfish.grizzly.http.server.NetworkListener start
>> INFO: Started listener bound to [localhost:8181]
>> Aug 25, 2011 11:49:06 PM
>> org.glassfish.grizzly.http.server.HttpServer start
>> INFO: [HttpServer] Started.
>> Jersey app started with WADL available at
>> http://localhost:8181/application.wadl
>> Try out http://localhost:8181/helloworld
>> Hit enter to stop it...
>>
>>
>> however, server can't be reached, even not over telnet.
>>
>> other ports don't work either, even 80 where permission denied is
>> outputted if i don't sudo
>>
>> really strange,
>>
>> best regards
>> nicolas
>
>