well, first of all, I notice that the ContextFilter filtered out the request, so I put /websocket in allowedPaths. It works, but still the ws request is somehow cannot "arrived".
My suspects are: 1. all request goes through ControlEventListener and LoginEventListener. Maybe it is the blocking part? (I will do some experiment with that) 2. I assume, all request are parsed according to webapp definition in ofbiz-component.xml, so that the request will be forwarded to the respective component. Could it be that this is why ws request connection got no response? since it must be somewhere a class that utilize catalina and handles request. Maybe someone knows better what and how the catalina/tomcat is being used in ofbiz framework? This issue could be the starting point for ofbiz-5522. Will keep you guys updated if any progress from my side. best regards, Johnson Chandra On Thu, Apr 17, 2014 at 6:29 PM, Jacopo Cappellato < [email protected]> wrote: > > On Apr 17, 2014, at 12:48 PM, MelonJaya <[email protected]> wrote: > > > Hi all, > > > > I've been trying to utilize the websocket in current trunk of ofbiz. > > Make new component in hot-deploy, using the exact chat example from > tomcat > > and include the Java class. It can be compiled and ant start run without > > any problem, but my browser console keeps telling me that ws connection > > cannot be made. > > > > I have read the discussion from Jacopo in Tomcat mailing list too, tried > to > > add the listener in web.xml and still my browser cannot make ws > connection > > to my ofbiz instance. > > Hi Johnson, > > I have indeed worked at implementing a prototype as a proof of concept for > the integration of WebSockets in OFBiz. > Unfortunately I was not able to complete my work and I am not sure when I > will be able to continue it. I had a partial success playing with the > JarScanner.setScanClassPath(true) flag; however, when used in OFBiz, you > get several errors due to the presence of several jars in the classpath. I > would too be curious to know if other did some experiments and had some > success. > > Jacopo > > > > > Have you guys any experience on this issue? > > > > Thanks in advance! > > Johnson Chandra > >
