Hi, The websocket servlet cant be created. The objectmapper is not a cdi bean.
Maybe add a producer for it in a lib/war with beans.xml Le 24 nov. 2012 12:51, "Luca Merolla" <luca.mero...@gmail.com> a écrit : > Hello, > I have investigated further the issue and I have packed an example to > reproduce the issue. > You can download this zip to reproduce the issue: > > http://www.fileconvoy.com/dfl.php?id=g09241655cfd7cf71999172452065f72f58b4b0c02 > > In the WS Servlet, if I remove @Inject on the startup I see > > Nov 24, 2012 12:27:52 PM org.pokernuvola.galaxy.WebSocketTestServlet init > INFO: Initialize Test WebSocket servlet > > If there is the @Inject I don't see the init of the Servlet > > However, in both cases, I have tried to establish a WebSocket connection > but it failed with "invalid handshake response". Here is the output of the > client http://pastebin.com/wxdET7CW > > The client doesn't work in both cases, if I use Inject or not I always get > the same error. To me it looks like something got broken with the WebSocket > connection. > > The package contains: > - SRC folder > - EAR folder to copy under apps > - MainWebSocket.java client class to test the WS connection. > > Hope it helps > > Luca > > > > On Fri, Nov 23, 2012 at 5:49 PM, Romain Manni-Bucau > <rmannibu...@gmail.com>wrote: > > > Ill try to have a look at least on monday. > > > > If you can share anything ...;) > > Le 23 nov. 2012 16:31, "Luca Merolla" <luca.mero...@gmail.com> a écrit : > > > > > Yes, my latest snapshot is > apache-tomee-1.5.1-20121123.041702-83-plus.zip > > > > > > > > > On Fri, Nov 23, 2012 at 3:43 PM, Romain Manni-Bucau > > > <rmannibu...@gmail.com>wrote: > > > > > > > Hi, > > > > > > > > Did you try it with today snapshot? > > > > Le 23 nov. 2012 15:24, "Luca Merolla" <luca.mero...@gmail.com> a > > écrit : > > > > > > > > > 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 > > > > > > > > > > > > > > > > > > > > > -- > > > *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 > > > > > > > > > -- > *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 >