Paul,
thank you very much for that fast and successful help!
Indeed, as soon as I replaced the System.in by Thread.sleep() it worked
very well! I just do not understand what the main process has to do with
the Http Server Thread. Ain't that running in a different Thread? Then
it is not a Windows bug, but at JRE bug...
Thanks
Markus
Paul Sandoz schrieb:
> Hi Markus,
>
> Are you using Windows?
>
> There is a problem with the System.in.read() on Windows in the Main
> class that runs the HTTP server . It causes the process to block. Try
> changing that line to a long sleep statement.
>
> Paul.
>
> Markus KARG wrote:
>> I am trying to run the HelloWorld sample includes in rel. 0.7 ontop
>> of Java SDK 6uN, without ANT or NetBeans ("bare metal test drive").
>>
>> On the screen I see:
>>
>> 27.05.2008 18:40:56 com.sun.ws.rest.api.core.ClasspathResourceConfig
>> init
>> INFO: Scanning for root resource and provider classes in the paths:
>> C:\Dokumente und Einstellungen\Markus\Eigene
>> Dateien\Eclipse-QUIPSY-workspace\JaxRsSample\bin
>> C:\jersey-0.7-ea\lib\jersey.jar
>> C:\jersey-0.7-ea\lib\jsr311-api.jar
>> C:\jersey-0.7-ea\lib\asm-3.1.jar
>> C:\jersey-0.7-ea\lib\grizzly-http-webserver-1.7.2.jar
>> C:\jersey-0.7-ea\lib\servlet.jar
>> C:\jersey-0.7-ea\lib\mail.jar
>> C:\jersey-0.7-ea\lib\jettison-1.0-RC1.jar
>> C:\jersey-0.7-ea\lib\activation.jar
>> C:\jersey-0.7-ea\lib\wadl2java.jar
>> C:\jersey-0.7-ea\lib\comresrcgen.jar
>> C:\jersey-0.7-ea\lib\jaxws-api.jar
>> C:\jersey-0.7-ea\lib\jaxws-tools.jar
>> C:\jersey-0.7-ea\lib\jdom-1.0.jar
>> C:\jersey-0.7-ea\lib\jsp-api-2.0-20040521.jar
>> C:\jersey-0.7-ea\lib\jsr173_api.jar
>> C:\jersey-0.7-ea\lib\jsr250-api.jar
>> C:\jersey-0.7-ea\lib\localizer.jar
>> C:\jersey-0.7-ea\lib\persistence-api-1.0.jar
>> C:\jersey-0.7-ea\lib\rome-0.9.jar
>> 27.05.2008 18:40:57 com.sun.ws.rest.api.core.ClasspathResourceConfig
>> init
>> INFO: Root resource classes found:
>> class com.sun.ws.rest.samples.helloworld.resources.HelloWorldResource
>> 27.05.2008 18:40:57 com.sun.ws.rest.api.core.ClasspathResourceConfig
>> init
>> INFO: Provider classes found:
>> Server running
>> Visit: http://localhost:9998/helloworld
>> Hit return to stop...
>>
>> But when I open a browser and want to browse to
>> http://localhost:9998/helloworld, the browser just hangs and waits
>> and waits and waits...
>>
>> Firewall is disabled, and I do not see any error messages anywhere.
>>
>> What am I doing wrong?
>>
>> Thanks
>> Markus
>>
>
--
http://www.xing.com/go/invita/58469