I can confirm that it is an issue with CDI @Inject. I have added @Inject private ObjectMapper jsonProvider;
In the servlet and the servlet is not initialized anymore. By removing the @Inject it works. Here is the code of my dummy servlet http://pastebin.com/xzLxFLg3 On Fri, Nov 23, 2012 at 3:13 PM, Luca Merolla <luca.mero...@gmail.com>wrote: > Hi everyone, > > I have a strange problem with WebSocket connections in the latest > snapshots, probably I have this issue since a week... > > When I try to connect to my WebSocket Servlet with my test class I get the > following exception http://pastebin.com/y6G6VRux > > I have tried to create a simple WebSocketServlet and it was enough to > remove some @Inject points from the servlet in order to make it work... so > this made me think that there is still an issue with CDI and EAR. > > Another interesting fact is that I have 3 WebSocketServlets. 2 real and > one dummy to make the test. In the logs I can see that only the dummy one > and 1 of the 2 real ones is initialized... however I have no exception in > the logs and still of the initialized servlets only the dummy one works. > > I'm using the latest snapshot from today, but the issue was already > present on the 15th of November > > I'll try to make an example to reproduce the issue > > Luca > > > -- *Luca Merolla* Management, Business & Technology Consultant <http://maps.google.com/maps?q=&hl=en> *Mobile:* +393774569974 *Email:* l...@merollaconsulting.com *www.linkedin.com/in/lucamerolla* *Website <http://www.merollaconsulting.com>* Merolla Consulting Limited