[prev in list] [next in list] [prev in thread] [next in thread] 

List:       tomcat-user
Subject:    Re: Issue running Websockets JSR356 with Tomcat 7.0.50 Embedded
From:       Jacopo Cappellato <jacopo.cappellato () gmail ! com>
Date:       2014-01-29 17:37:22
Message-ID: 3B141053-19E6-4214-8050-21E514503F7F () gmail ! com
[Download RAW message or body]

Thank you Mark!

Please see inline:

On Jan 29, 2014, at 4:50 PM, Mark Thomas <markt@apache.org> wrote:

> On 29/01/2014 15:42, Jacopo Cappellato wrote:
> > Hello all,
> > 
> > I am trying to deploy and use Websockets using the Tomcat 7.0.50 *Embedded* \
> > distribution [*].
> 
> Java version?

1.7.0_40

> 
> > Some more details on my environment:
> > * I have the following jars in my classpath:
> > ** tomcat-7.0.50-tomcat-embed-core.jar
> > ** tomcat-7.0.50-tomcat-embed-jasper.jar
> > ** tomcat-7.0.50-tomcat-embed-logging-log4j.jar
> > ** tomcat-7.0.50-tomcat7-websocket.jar
> > ** tomcat-7.0.50-websocket-api.jar
> > ** ecj-4.2.2.jar
> > ** annotations-api-3.0.jar
> > ** jsp-api-2.2.jar
> > ** servlet-api-3.0.jar
> > * I have mounted the "examples" webapp that comes with Tomcat (Core distribution) \
> > using the Embedded Tomcat instance: all the examples work fine (including the \
> > websocket-deprecated ones) except for the Websockets JSR356 ones
> 
> I think you may have duplicated some classes there. Some of those API JARs may not \
> be required. 
> > When I try to run the Websockets JSR356 examples, when I try to "Connect" (either \
> >                 using the programmatic API or the annotation API) I get the \
> >                 message: 
> > Info: WebSocket connection closed.
> > Nothing appears in the console.
> 
> The HTTP headers send and received would help you to debug / enable us
> to provide you with some pointers.

The error I am getting in the browser is the following:

[Error] WebSocket connection to \
'ws://localhost:8080/examples/websocket/echoAnnotation' failed: Unexpected response \
code: 404 (echo.xhtml, line 0)

It seems like the endpoint was not mounted but I amy be wrong.

Thanks,

Jacopo

> 
> Mark
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic