users@glassfish.java.net

Re: Websocket not connecting from client, ...

From: <forums_at_java.net>
Date: Tue, 9 Jul 2013 02:45:52 -0500 (CDT)

you should read whole exception.. Caused by: javax.servlet.ServletException:
Web socket server initialization failed. at
org.glassfish.tyrus.servlet.TyrusServletFilter.init(TyrusServletFilter.java:135)
at
org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:275)
at
org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:131)
... 73 more Caused by: javax.websocket.DeploymentException: Method:
org.glassfish.tyrus.sample.echo.EchoEndpoint.onError: does not have mandatory
Throwable param. at
org.glassfish.tyrus.core.ErrorCollector.composeComprehensiveException(ErrorCollector.java:83)
at
org.glassfish.tyrus.server.TyrusServerContainer.start(TyrusServerContainer.java:144)
at
org.glassfish.tyrus.servlet.TyrusServletFilter.init(TyrusServletFilter.java:133)
... 75 more @OnError has mandatory Throwable parameter, see
https://tyrus.java.net/apidocs/1.0/javax/websocket/OnError.html [1]

[1] https://tyrus.java.net/apidocs/1.0/javax/websocket/OnError.html

--
[Message sent by forum member 'pavel_bucek']
View Post: http://forums.java.net/node/897632