Socket « jetty « Java Enterprise Q&A

1. Why do I get " Only one usage of each socket address" if netstat says something else?

  • I start up my application which uses a Jetty server, using port 9000.
  • I then shut down my application with Ctrl-C
  • I check with "netstat -a" and see that the port 9000 is ...

2. JAX-WS client causes Jetty EofException

I am using an embedded Jetty server to provide Web Services (using Jetty-JAXWS2-SPI to allow Jetty to serve the requests) and I am seeing the following errors when a connection terminates ...

3. multiple instances of embedded jetty

I run an embedded jetty from eclipse using maven build configuration (jetty:run). The server starts properly:

2011-07-07 13:48:11.915:INFO::Started SelectChannelConnector@ STARTING

[INFO] Started Jetty Server

[INFO] Starting scanner at interval of 10 seconds
Afterwards, I startup ...

4. Jetty 8 web sockets

I've downloaded the latest Jetty 8 Hightide, but cannot get WebSockets to work. I unzip the distribution, put my .war file in the webapps folder and start:

java.lang.NoClassDefFoundError: org/eclipse/jetty/websocket/WebSocketServlet
I've verified that the ...