I would propose to try the trunk version and do some trials with Chrome instead 
of Firefox.

Christoph

On Aug 19, 2012, at 4:23 PM, Bernd Fondermann <[email protected]> wrote:

> I never worked with that Vysper extension, but I'd assume that WebSocket is a 
> little bit outdated and might no longer been working, giving the preliminiary 
> nature of WebSocket implementations at the time of the creation of the 
> extension.
> 
>  Bernd
> 
> On 16.08.12 02:52, Ikenna Okonkwo wrote:
>> I have been trying to make use of the WebSocket Endpoint in Vysper 0.7. I
>> am unable to connect to the websocket using the example. When I try to
>> initiate a connection the sever outputs this message:
>> 
>> 19:45:40,058 | DEBUG | org.eclipse.jetty.util.log | RESPONSE /ws  302
>> 19:45:40,088 | DEBUG | org.eclipse.jetty.util.log | EOF
>> 
>> and Firefox (version 13) says:
>> 
>> [19:45:40.070] GET http://localhost:8080/ws [HTTP/1.1 302 Found 3ms]
>> [19:45:40.088] Firefox can't establish a connection to the server at
>> ws://localhost:8080/ws/ws. @ http://localhost:8080/client.html:20
>> 
>> Anyone have an idea why I am unable to get websockets working? My full
>> console output is below.
>> 
>> Thanks.
>> 
>> 
>> 19:51:27,081 | INFO  |
>> org.apache.vysper.xmpp.server.DefaultServerRuntimeContext
>>  | replacing the storage provider registry with
>> org.apache.vysper.storage.inmemo
>> ry.MemoryStorageProviderRegistry
>> 19:51:27,163 | INFO  |
>> org.apache.vysper.xmpp.server.DefaultServerRuntimeContext
>>  | adding module... servicediscovery (1.0beta)
>> 19:51:27,173 | INFO  |
>> org.apache.vysper.xmpp.server.DefaultServerRuntimeContext
>>  | adding module... roster (1.0beta)
>> 19:51:27,268 | DEBUG | org.eclipse.jetty.util.log | Logging to
>> org.slf4j.impl.Lo
>> g4jLoggerAdapter(org.eclipse.jetty.util.log) via
>> org.eclipse.jetty.util.log.Slf4
>> jLog
>> 19:51:27,269 | DEBUG | org.eclipse.jetty.util.log | Container
>> org.eclipse.jetty.
>> server.Server@2acca551 + [email protected]:8080 as connector
>> 19:51:27,300 | DEBUG | org.eclipse.jetty.util.log | Container
>> org.eclipse.jetty.
>> server.Server@2acca551 + ResourceHandler@c7ab830 as handler
>> 19:51:27,324 | DEBUG | org.eclipse.jetty.util.log | Container
>> org.eclipse.jetty.
>> server.Server@2acca551 - ResourceHandler@c7ab830 as handler
>> 19:51:27,325 | DEBUG | org.eclipse.jetty.util.log | Container
>> org.eclipse.jetty.
>> server.Server@2acca551 + HandlerCollection@7021d740 as handler
>> 19:51:27,325 | DEBUG | org.eclipse.jetty.util.log | Container
>> HandlerCollection@
>> 7021d740 + ResourceHandler@c7ab830 as handler
>> 19:51:27,353 | DEBUG | org.eclipse.jetty.util.log | filterNameMap={}
>> 19:51:27,353 | DEBUG | org.eclipse.jetty.util.log | pathFilters=null
>> 19:51:27,353 | DEBUG | org.eclipse.jetty.util.log | servletFilterMap=null
>> 19:51:27,353 | DEBUG | org.eclipse.jetty.util.log |
>> servletPathMap={/ws=org.apac
>> he.vysper.xmpp.extension.websockets.XmppWebSocketServlet-1780264420}
>> 19:51:27,354 | DEBUG | org.eclipse.jetty.util.log |
>> servletNameMap={org.apache.v
>> ysper.xmpp.extension.websockets.XmppWebSocketServlet-1780264420=org.apache.vyspe
>> r.xmpp.extension.websockets.XmppWebSocketServlet-1780264420}
>> 19:51:27,354 | DEBUG | org.eclipse.jetty.util.log | Container
>> HandlerCollection@
>> 7021d740 + ServletContextHandler@7a79dbc7@7a79dbc7/ws,null as handler
>> 19:51:27,354 | DEBUG | org.eclipse.jetty.util.log | Starting
>> org.eclipse.jetty.s
>> erver.Server@2acca551
>> 19:51:27,354 | INFO  | org.eclipse.jetty.util.log | jetty-7.2.1.v20101111
>> 19:51:27,365 | DEBUG | org.eclipse.jetty.util.log | Container
>> org.eclipse.jetty.
>> server.Server@2acca551 + qtp1410788934{8<=0<=0/254,-1} as threadpool
>> 19:51:27,365 | DEBUG | org.eclipse.jetty.util.log | Starting
>> qtp1410788934{8<=0<
>> =0/254,-1}
>> 19:51:27,367 | DEBUG | org.eclipse.jetty.util.log | STARTED
>> qtp1410788934{8<=0<=
>> 8/254,0}
>> 19:51:27,368 | DEBUG | org.eclipse.jetty.util.log | Starting
>> HandlerCollection@7
>> 021d740
>> 19:51:27,368 | DEBUG | org.eclipse.jetty.util.log | Starting
>> ResourceHandler@c7a
>> b830
>> 19:51:27,368 | DEBUG | org.eclipse.jetty.util.log | starting
>> ResourceHandler@c7a
>> b830
>> 19:51:27,369 | DEBUG | org.eclipse.jetty.util.log | STARTED
>> ResourceHandler@c7ab
>> 830
>> 19:51:27,369 | DEBUG | org.eclipse.jetty.util.log | Starting
>> ServletContextHandl
>> er@7a79dbc7@7a79dbc7/ws,null
>> 19:51:27,377 | DEBUG | org.eclipse.jetty.util.log | Container
>> ServletContextHand
>> ler@7a79dbc7@7a79dbc7/ws,null + SessionHandler@1f5a0bbc@/ws as handler
>> 19:51:27,377 | DEBUG | org.eclipse.jetty.util.log | Container
>> ServletHandler@50b
>> 873b8@/ws +
>> org.apache.vysper.xmpp.extension.websockets.XmppWebSocketServlet-178
>> 0264420 as servlet
>> 19:51:27,377 | DEBUG | org.eclipse.jetty.util.log | Container
>> ServletHandler@50b
>> 873b8@/ws +
>> [/ws]=>org.apache.vysper.xmpp.extension.websockets.XmppWebSocketServ
>> let-1780264420 as servletMapping
>> 19:51:27,377 | DEBUG | org.eclipse.jetty.util.log | Container
>> SessionHandler@1f5
>> a0bbc@/ws + ServletHandler@50b873b8@/ws as handler
>> 19:51:27,377 | DEBUG | org.eclipse.jetty.util.log | Container
>> SessionHandler@1f5
>> a0bbc@/ws + org.eclipse.jetty.server.session.HashSessionManager@7db55e6e as
>> sess
>> ionManager
>> 19:51:27,378 | DEBUG | org.eclipse.jetty.util.log | Starting
>> SessionHandler@1f5a
>> 0bbc@/ws
>> 19:51:27,378 | DEBUG | org.eclipse.jetty.util.log | Starting
>> org.eclipse.jetty.s
>> erver.session.HashSessionManager@7db55e6e
>> 19:51:27,379 | DEBUG | org.eclipse.jetty.util.log | Container
>> org.eclipse.jetty.
>> server.Server@2acca551 +
>> org.eclipse.jetty.server.session.HashSessionIdManager@5
>> f997454 as sessionIdManager
>> 19:51:27,380 | DEBUG | org.eclipse.jetty.util.log | Starting
>> org.eclipse.jetty.s
>> erver.session.HashSessionIdManager@5f997454
>> 19:51:27,381 | DEBUG | org.eclipse.jetty.util.log | STARTED
>> org.eclipse.jetty.se
>> rver.session.HashSessionIdManager@5f997454
>> 19:51:27,382 | DEBUG | org.eclipse.jetty.util.log | STARTED
>> org.eclipse.jetty.se
>> rver.session.HashSessionManager@7db55e6e
>> 19:51:27,382 | DEBUG | org.eclipse.jetty.util.log | Starting
>> ServletHandler@50b8
>> 73b8@/ws
>> 19:51:27,382 | DEBUG | org.eclipse.jetty.util.log | filterNameMap={}
>> 19:51:27,383 | DEBUG | org.eclipse.jetty.util.log | pathFilters=null
>> 19:51:27,383 | DEBUG | org.eclipse.jetty.util.log | servletFilterMap=null
>> 19:51:27,383 | DEBUG | org.eclipse.jetty.util.log |
>> servletPathMap={/ws=org.apac
>> he.vysper.xmpp.extension.websockets.XmppWebSocketServlet-1780264420}
>> 19:51:27,383 | DEBUG | org.eclipse.jetty.util.log |
>> servletNameMap={org.apache.v
>> ysper.xmpp.extension.websockets.XmppWebSocketServlet-1780264420=org.apache.vyspe
>> r.xmpp.extension.websockets.XmppWebSocketServlet-1780264420}
>> 19:51:27,383 | DEBUG | org.eclipse.jetty.util.log | starting
>> ServletHandler@50b8
>> 73b8@/ws
>> 19:51:27,383 | DEBUG | org.eclipse.jetty.util.log | STARTED
>> ServletHandler@50b87
>> 3b8@/ws
>> 19:51:27,384 | DEBUG | org.eclipse.jetty.util.log | starting
>> SessionHandler@1f5a
>> 0bbc@/ws
>> 19:51:27,384 | DEBUG | org.eclipse.jetty.util.log | STARTED
>> SessionHandler@1f5a0
>> bbc@/ws
>> 19:51:27,384 | DEBUG | org.eclipse.jetty.util.log | starting
>> ServletContextHandl
>> er@7a79dbc7@7a79dbc7/ws,null
>> 19:51:27,385 | DEBUG | org.eclipse.jetty.util.log | Starting
>> org.apache.vysper.x
>> mpp.extension.websockets.XmppWebSocketServlet-1780264420
>> 19:51:27,387 | DEBUG | org.eclipse.jetty.util.log | STARTED
>> org.apache.vysper.xm
>> pp.extension.websockets.XmppWebSocketServlet-1780264420
>> 19:51:27,388 | DEBUG | org.eclipse.jetty.util.log | STARTED
>> ServletContextHandle
>> r@7a79dbc7@7a79dbc7/ws,null
>> 19:51:27,388 | DEBUG | org.eclipse.jetty.util.log | starting
>> HandlerCollection@7
>> 021d740
>> 19:51:27,388 | DEBUG | org.eclipse.jetty.util.log | STARTED
>> HandlerCollection@70
>> 21d740
>> 19:51:27,388 | DEBUG | org.eclipse.jetty.util.log | starting
>> org.eclipse.jetty.s
>> erver.Server@2acca551
>> 19:51:27,388 | DEBUG | org.eclipse.jetty.util.log | Starting
>> SelectChannelConnec
>> [email protected]:8080
>> 19:51:27,388 | DEBUG | org.eclipse.jetty.util.log | Starting
>> org.eclipse.jetty.s
>> erver.nio.SelectChannelConnector$1@5e7175af
>> 19:51:27,394 | DEBUG | org.eclipse.jetty.util.log | STARTED
>> org.eclipse.jetty.se
>> rver.nio.SelectChannelConnector$1@5e7175af
>> 19:51:27,395 | INFO  | org.eclipse.jetty.util.log | Started
>> SelectChannelConnect
>> [email protected]:8080
>> 19:51:27,396 | DEBUG | org.eclipse.jetty.util.log | STARTED
>> SelectChannelConnect
>> [email protected]:8080
>> org.eclipse.jetty.server.Server@2acca551 STOPPED
>>  [email protected]:8080
>>  +-qtp1410788934{8<=6<=8/254,0}
>>  +-HandlerCollection@7021d740 started
>>     +-ResourceHandler@c7ab830 started
>>     +-ServletContextHandler@7a79dbc7@7a79dbc7/ws,null started
>>        +-{}
>>        +-{}
>>        +-SessionHandler@1f5a0bbc started
>>           +-ServletHandler@50b873b8 started
>> 
>>  +-[/ws]=>org.apache.vysper.xmpp.extension.websockets.XmppWebSocketS
>> ervlet-1780264420{}
>> 
>> 19:51:27,397 | DEBUG | org.eclipse.jetty.util.log | STARTED
>> org.eclipse.jetty.se
>> rver.Server@2acca551
>> vysper server is running...
>> 19:51:27,399 | INFO  |
>> org.apache.vysper.xmpp.server.DefaultServerRuntimeContext
>>  | adding module... XEP-0092 Software Version (1.0)
>> 19:51:27,405 | INFO  |
>> org.apache.vysper.xmpp.server.DefaultServerRuntimeContext
>>  | adding module... XEP-0202 Entity Time (1.0)
>> 19:51:27,416 | INFO  |
>> org.apache.vysper.xmpp.server.DefaultServerRuntimeContext
>>  | adding module... XEP-0054 Vcard-temp (1.0)
>> 19:51:27,417 | ERROR |
>> org.apache.vysper.xmpp.modules.extension.xep0054_vcardtem
>> p.VcardTempModule | no VcardTempPersistenceManager found
>> 19:51:27,418 | INFO  |
>> org.apache.vysper.xmpp.server.DefaultServerRuntimeContext
>>  | adding module... XEP-0199 XMPP Ping (2.0)
>> 19:51:27,419 | INFO  |
>> org.apache.vysper.xmpp.server.DefaultServerRuntimeContext
>>  | adding module... XEP-0049 Private Data (1.2)
>> 19:51:27,420 | ERROR |
>> org.apache.vysper.xmpp.modules.extension.xep0049_privated
>> ata.PrivateDataModule | no PrivateDataPersistenceManager found
>> 
> 

Reply via email to