Farrukh Najmi wrote:
> Dear Colleagues,
>
> I have a suspicion that this is a dumb question but ...
>
> Using latest jersey svn bits I ran the JAXB -Jersey Sample following
> instructions:
>
> cd samples/jaxb
> mvn clean test
>
> All tests fails because grizzly could not bind to port. But the port
> is not in use according to "lsof -i" and " netstat -tulpn| grep :9998"
> etc.
>
> So I am confused why I am getting these failures when port 9998 does
> not seem to be in use.
>
And here is the error messages:
[INFO] Surefire report directory:
/home/najmi/jvnet/jersey/jersey/samples/jaxb/target/surefire-reports
-------------------------------------------------------
T E S T S
-------------------------------------------------------
Running com.sun.jersey.samples.jaxb.MainTest
Mar 23, 2009 1:11:12 PM com.sun.grizzly.Controller doSelect
SEVERE: doSelect exception
java.net.BindException: Address already in use:
9998=com.sun.grizzly.http.SelectorThreadHandler_at_281d4b
at
com.sun.grizzly.TCPSelectorHandler.preSelect(TCPSelectorHandler.java:356)
at com.sun.grizzly.Controller.doSelect(Controller.java:367)
at
com.sun.grizzly.SelectorHandlerRunner.run(SelectorHandlerRunner.java:82)
at
com.sun.grizzly.Controller.startSelectorHandlerRunner(Controller.java:1136)
at com.sun.grizzly.Controller.start(Controller.java:943)
at
com.sun.grizzly.http.SelectorThread.startListener(SelectorThread.java:1178)
at com.sun.grizzly.http.SelectorThread.run(SelectorThread.java:1045)
Mar 23, 2009 1:11:12 PM com.sun.grizzly.http.SelectorThread$3 onException
SEVERE: Exception during starting the controller
java.net.BindException: Address already in use:
9998=com.sun.grizzly.http.SelectorThreadHandler_at_281d4b
at
com.sun.grizzly.TCPSelectorHandler.preSelect(TCPSelectorHandler.java:356)
at com.sun.grizzly.Controller.doSelect(Controller.java:367)
at
com.sun.grizzly.SelectorHandlerRunner.run(SelectorHandlerRunner.java:82)
at
com.sun.grizzly.Controller.startSelectorHandlerRunner(Controller.java:1136)
at com.sun.grizzly.Controller.start(Controller.java:943)
at
com.sun.grizzly.http.SelectorThread.startListener(SelectorThread.java:1178)
at com.sun.grizzly.http.SelectorThread.run(SelectorThread.java:1045)
--
Regards,
Farrukh
Web: http://www.wellfleetsoftware.com