[
https://issues.apache.org/jira/browse/WICKET-5761?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14224685#comment-14224685
]
Mathias Bittner commented on WICKET-5761:
-----------------------------------------
Yes, you are right, i used intellij 12 for the deploy normally.
This time I copied the war via shell into the tomcat and started it through the
start script, but it still didn't work.
i added a new quickstart project, including the atmosphere-runtime
2.2.4-SNAPSHOT.
> WebSocket session closed on tomcat 8
> ------------------------------------
>
> Key: WICKET-5761
> URL: https://issues.apache.org/jira/browse/WICKET-5761
> Project: Wicket
> Issue Type: Bug
> Components: wicket-atmosphere
> Affects Versions: 6.18.0
> Environment: Tomcat 8
> Reporter: Mathias Bittner
> Assignee: Emond Papegaaij
> Attachments: wicketTomcatTesting.zip
>
>
> I switched from Tomcat 7.50 to Tomcat 8.14 container. Everything works well,
> but when i go to another page (e.g. by an AjaxLink), i get the following
> Output:
> {noformat}
> INFO - DebugWicketFilter - URI: AtmosphereRequest{ method=GET
> contextPath= servletPath= pathInfo=/ requestURI=/
> requestURL=http://localhost:8080/ AtmosphereResource
> UUID=a57a2947-8592-4089-b923-52a98d08e701 destroyable=true}
> INFO - DebugWicketFilter - PAR:
> {0-1.IBehaviorListener.0-secondPageLink=[], _=[1415960785084]}
> INFO - DebugWicketFilter - QUE:
> 0-1.IBehaviorListener.0-secondPageLink=
> Unregistered: 8b08d209-3bda-427b-934e-7c9a42e7b513
> INFO - DebugWicketFilter - URI: AtmosphereRequest{ method=GET
> contextPath= servletPath=
> pathInfo=/wicket/bookmarkable/de.laudert.mabi.SecondPage
> requestURI=/wicket/bookmarkable/de.laudert.mabi.SecondPage
> requestURL=http://localhost:8080/wicket/bookmarkable/de.laudert.mabi.SecondPage
> AtmosphereResource UUID=40730b29-5a82-4b83-957f-0bf2d488e3e5
> destroyable=true}
> INFO - DebugWicketFilter - PAR: {}
> INFO - DebugWicketFilter - QUE:
> INFO - DebugWicketFilter - URI: AtmosphereRequest{ method=GET
> contextPath= servletPath=
> pathInfo=/wicket/bookmarkable/de.laudert.mabi.SecondPage
> requestURI=/wicket/bookmarkable/de.laudert.mabi.SecondPage
> requestURL=http://localhost:8080/wicket/bookmarkable/de.laudert.mabi.SecondPage
> AtmosphereResource UUID=231479ef-ccaa-412f-8d3f-b8c6cbb7c1d0
> destroyable=true}
> INFO - DebugWicketFilter - PAR: {1=[]}
> INFO - DebugWicketFilter - QUE: 1=
> INFO - DebugWicketFilter - URI: AtmosphereRequest{ method=GET
> contextPath= servletPath= pathInfo=/style.css requestURI=/style.css
> requestURL=http://localhost:8080/style.css AtmosphereResource
> UUID=47920640-126b-4bc1-aca5-ee2a44920b7c destroyable=true}
> INFO - DebugWicketFilter - PAR: {}
> INFO - DebugWicketFilter - QUE:
> INFO - DebugWicketFilter - URI: AtmosphereRequest{ method=GET
> contextPath= servletPath= pathInfo=/logo.png requestURI=/logo.png
> requestURL=http://localhost:8080/logo.png AtmosphereResource
> UUID=127970c6-0735-4597-b1a7-7f2acb8e6dd5 destroyable=true}
> INFO - DebugWicketFilter - PAR: {}
> INFO - DebugWicketFilter - QUE:
> INFO - DebugWicketFilter - URI: AtmosphereRequest{ method=GET
> contextPath= servletPath=/* pathInfo=/bookmarkable/de.laudert.mabi.SecondPage
> requestURI=http://localhost:8080/wicket/bookmarkable/de.laudert.mabi.SecondPage
>
> requestURL=http://localhost:8080/wicket/bookmarkable/de.laudert.mabi.SecondPage
> AtmosphereResource UUID=36f59cae-5941-4293-9e52-9d5591608872
> destroyable=true}
> INFO - DebugWicketFilter - PAR: {wicket-ajax-baseurl=[.],
> wicket-ajax=[true], 1-1.IBehaviorListener.0-=[]}
> INFO - DebugWicketFilter - QUE:
> 1-1.IBehaviorListener.0-=&wicket-ajax=true&wicket-ajax-baseurl=.
> WARN - DefaultWebSocketProcessor - AtmosphereResource was null
> WARN - DefaultWebSocketProcessor - Problem opening websocket for
> 36f59cae-5941-4293-9e52-9d5591608872
> ERROR - JSR356Endpoint -
> java.lang.IllegalStateException: The WebSocket session [0] has been closed
> and no method (apart from close()) may be called on a closed session
> at org.apache.tomcat.websocket.WsSession.checkState(WsSession.java:675)
> at
> org.apache.tomcat.websocket.WsSession.doAddMessageHandler(WsSession.java:191)
> at
> org.apache.tomcat.websocket.WsSession.addMessageHandler(WsSession.java:171)
> at
> org.atmosphere.container.JSR356Endpoint.onOpen(JSR356Endpoint.java:196)
> at
> org.apache.tomcat.websocket.server.WsHttpUpgradeHandler.init(WsHttpUpgradeHandler.java:138)
> at
> org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:684)
> at
> org.apache.coyote.http11.Http11NioProtocol$Http11ConnectionHandler.process(Http11NioProtocol.java:222)
> at
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1566)
> at
> org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1523)
> at
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> at
> org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
> at java.lang.Thread.run(Thread.java:744)
> INFO - DebugWicketFilter - URI: AtmosphereRequest{ method=GET
> contextPath= servletPath=
> pathInfo=/wicket/bookmarkable/de.laudert.mabi.SecondPage
> requestURI=/wicket/bookmarkable/de.laudert.mabi.SecondPage
> requestURL=http://localhost:8080/wicket/bookmarkable/de.laudert.mabi.SecondPage
> AtmosphereResource UUID=2a2382af-f73d-4148-8435-5e25beeef546
> destroyable=true}
> INFO - DebugWicketFilter - PAR: {wicket-ajax-baseurl=[.],
> X-Atmosphere-Transport=[long-polling], wicket-ajax=[true],
> X-Atmosphere-Framework=[2.2.3-jquery], X-Atmosphere-TrackMessageSize=[true],
> _=[1415960803440], X-atmo-protocol=[true],
> X-Atmosphere-tracking-id=[2a2382af-f73d-4148-8435-5e25beeef546],
> 1-1.IBehaviorListener.0-=[]}
> INFO - DebugWicketFilter - QUE:
> 1-1.IBehaviorListener.0-=&wicket-ajax=true&wicket-ajax-baseurl=.
> Registered: 2a2382af-f73d-4148-8435-5e25beeef546
> {noformat}
> The configuration works fine, on the Tomcat 7.50.
> I attached a quickstart project.
> Thanks in advice and kind regards,
> Mathias
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)