[JBoss JIRA] (WFLY-3638) Remove use of deprecated methods from CoreManagementResourceDefinition and ServerRootResourceDefinition
by Emmanuel Hugonnet (JIRA)
[ https://issues.jboss.org/browse/WFLY-3638?page=com.atlassian.jira.plugin.... ]
Emmanuel Hugonnet commented on WFLY-3638:
-----------------------------------------
Utility Class in core has been pushed as part of WFLY-543.
Wildfly ParseAndMarshalModelsTestCase has been ignored and updated so that it can easily be moved to using core when core is released
> Remove use of deprecated methods from CoreManagementResourceDefinition and ServerRootResourceDefinition
> -------------------------------------------------------------------------------------------------------
>
> Key: WFLY-3638
> URL: https://issues.jboss.org/browse/WFLY-3638
> Project: WildFly
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Test Suite
> Reporter: Emmanuel Hugonnet
> Assignee: Emmanuel Hugonnet
> Fix For: 9.0.0.Beta1
>
>
> ServerRootResourceDefinition constructor and CoreManagementResourceDefinition static methods have been deprecated.
> Replace their use with the new methods with the BootErrorCollector parameter.
> This can be done with core 1.0.0.Alpha4.
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
11 years, 2 months
[JBoss JIRA] (WFLY-3708) Websocket Error in Deployed War File (WildFly)
by Stuart Douglas (JIRA)
[ https://issues.jboss.org/browse/WFLY-3708?page=com.atlassian.jira.plugin.... ]
Stuart Douglas resolved WFLY-3708.
----------------------------------
Resolution: Out of Date
> Websocket Error in Deployed War File (WildFly)
> ----------------------------------------------
>
> Key: WFLY-3708
> URL: https://issues.jboss.org/browse/WFLY-3708
> Project: WildFly
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Reporter: Tom Goldsmith
> Assignee: Stuart Douglas
>
> In Immutant incremental 195, I am seeing the following error when I deploy a .war file to WildFly and try to connect to a websocket:
> 12:30:22,273 WARN [org.jboss.modules] (XNIO-2 I/O-1) Failed to define class org.xnio.ChannelListener$Setter in Module "deployment.websocket-wildfly-test-0.1.0-SNAPSHOT-standalone.war:main" from Service Module Loader: java.lang.LinkageError: loader constraint violation: loader (instance of org/jboss/modules/ModuleClassLoader) previously initiated loading for a different type with name "org/xnio/ChannelListener$Setter"
> at java.lang.ClassLoader.defineClass1(Native Method) [rt.jar:1.8.0_05]
> at java.lang.ClassLoader.defineClass(ClassLoader.java:760) [rt.jar:1.8.0_05]
> at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:361) [jboss-modules.jar:1.3.3.Final]
> at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:482) [jboss-modules.jar:1.3.3.Final]
> at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:277) [jboss-modules.jar:1.3.3.Final]
> at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:92) [jboss-modules.jar:1.3.3.Final]
> at org.jboss.modules.Module.loadModuleClass(Module.java:568) [jboss-modules.jar:1.3.3.Final]
> at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:205) [jboss-modules.jar:1.3.3.Final]
> at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459) [jboss-modules.jar:1.3.3.Final]
> at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:408) [jboss-modules.jar:1.3.3.Final]
> at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389) [jboss-modules.jar:1.3.3.Final]
> at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134) [jboss-modules.jar:1.3.3.Final]
> at org.projectodd.wunderboss.websocket.UndertowWebsocket$1.onConnect(UndertowWebsocket.java:43) [wunderboss-web-1.x.incremental.98.jar:]
> at io.undertow.websockets.WebSocketProtocolHandshakeHandler$1.handleUpgrade(WebSocketProtocolHandshakeHandler.java:190) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.server.protocol.http.HttpReadListener.exchangeComplete(HttpReadListener.java:271) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.server.protocol.http.HttpServerConnection.exchangeComplete(HttpServerConnection.java:221) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.server.HttpServerExchange.invokeExchangeCompleteListeners(HttpServerExchange.java:1131) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.server.HttpServerExchange.terminateResponse(HttpServerExchange.java:1351) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.server.Connectors.terminateResponse(Connectors.java:78) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.server.protocol.http.ServerFixedLengthStreamSinkConduit.channelFinished(ServerFixedLengthStreamSinkConduit.java:33) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.conduits.AbstractFixedLengthStreamSinkConduit.exitFlush(AbstractFixedLengthStreamSinkConduit.java:273) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.conduits.AbstractFixedLengthStreamSinkConduit.flush(AbstractFixedLengthStreamSinkConduit.java:207) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at org.xnio.conduits.ConduitStreamSinkChannel.flush(ConduitStreamSinkChannel.java:162) [xnio-api-3.2.0.Final.jar:3.2.0.Final]
> at io.undertow.channels.DetachableStreamSinkChannel.flush(DetachableStreamSinkChannel.java:100) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.server.HttpServerExchange.closeAndFlushResponse(HttpServerExchange.java:1489) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.server.HttpServerExchange.endExchange(HttpServerExchange.java:1470) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.websockets.spi.AsyncWebSocketHttpServerExchange.endExchange(AsyncWebSocketHttpServerExchange.java:187) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.websockets.core.protocol.Handshake.upgradeChannel(Handshake.java:121) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.websockets.core.protocol.Handshake.performUpgrade(Handshake.java:114) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.websockets.core.protocol.Handshake.performUpgrade(Handshake.java:142) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.websockets.core.protocol.version13.Hybi13Handshake.handshakeInternal(Hybi13Handshake.java:61) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.websockets.core.protocol.Handshake.handshake(Handshake.java:92) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.websockets.WebSocketProtocolHandshakeHandler.handleRequest(WebSocketProtocolHandshakeHandler.java:196) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.server.handlers.PathHandler.handleRequest(PathHandler.java:56) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.server.handlers.NameVirtualHostHandler.handleRequest(NameVirtualHostHandler.java:57) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.server.handlers.SetHeaderHandler.handleRequest(SetHeaderHandler.java:49) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.server.Connectors.executeRootHandler(Connectors.java:177) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.server.protocol.http.HttpReadListener.handleEventWithNoRunningRequest(HttpReadListener.java:156) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.server.protocol.http.HttpReadListener.handleEvent(HttpReadListener.java:91) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.server.protocol.http.HttpReadListener.handleEvent(HttpReadListener.java:45) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92) [xnio-api-3.2.0.Final.jar:3.2.0.Final]
> at org.xnio.conduits.ReadReadyHandler$ChannelListenerHandler.readReady(ReadReadyHandler.java:66) [xnio-api-3.2.0.Final.jar:3.2.0.Final]
> at org.xnio.nio.NioSocketConduit.handleReady(NioSocketConduit.java:87) [xnio-nio-3.2.0.Final.jar:3.2.0.Final]
> at org.xnio.nio.WorkerThread.run(WorkerThread.java:539) [xnio-nio-3.2.0.Final.jar:3.2.0.Final]
> 12:30:22,282 ERROR [io.undertow.request] (XNIO-2 I/O-1) Blocking request failed HttpServerExchange{ GET /}: java.lang.LinkageError: loader constraint violation: loader (instance of org/jboss/modules/ModuleClassLoader) previously initiated loading for a different type with name "org/xnio/ChannelListener$Setter"
> at java.lang.ClassLoader.defineClass1(Native Method) [rt.jar:1.8.0_05]
> at java.lang.ClassLoader.defineClass(ClassLoader.java:760) [rt.jar:1.8.0_05]
> at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:361) [jboss-modules.jar:1.3.3.Final]
> at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:482) [jboss-modules.jar:1.3.3.Final]
> at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:277) [jboss-modules.jar:1.3.3.Final]
> at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:92) [jboss-modules.jar:1.3.3.Final]
> at org.jboss.modules.Module.loadModuleClass(Module.java:568) [jboss-modules.jar:1.3.3.Final]
> at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:205) [jboss-modules.jar:1.3.3.Final]
> at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459) [jboss-modules.jar:1.3.3.Final]
> at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:408) [jboss-modules.jar:1.3.3.Final]
> at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389) [jboss-modules.jar:1.3.3.Final]
> at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134) [jboss-modules.jar:1.3.3.Final]
> at org.projectodd.wunderboss.websocket.UndertowWebsocket$1.onConnect(UndertowWebsocket.java:43) [wunderboss-web-1.x.incremental.98.jar:]
> at io.undertow.websockets.WebSocketProtocolHandshakeHandler$1.handleUpgrade(WebSocketProtocolHandshakeHandler.java:190) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.server.protocol.http.HttpReadListener.exchangeComplete(HttpReadListener.java:271) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.server.protocol.http.HttpServerConnection.exchangeComplete(HttpServerConnection.java:221) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.server.HttpServerExchange.invokeExchangeCompleteListeners(HttpServerExchange.java:1131) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.server.HttpServerExchange.terminateResponse(HttpServerExchange.java:1351) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.server.Connectors.terminateResponse(Connectors.java:78) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.server.protocol.http.ServerFixedLengthStreamSinkConduit.channelFinished(ServerFixedLengthStreamSinkConduit.java:33) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.conduits.AbstractFixedLengthStreamSinkConduit.exitFlush(AbstractFixedLengthStreamSinkConduit.java:273) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.conduits.AbstractFixedLengthStreamSinkConduit.flush(AbstractFixedLengthStreamSinkConduit.java:207) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at org.xnio.conduits.ConduitStreamSinkChannel.flush(ConduitStreamSinkChannel.java:162) [xnio-api-3.2.0.Final.jar:3.2.0.Final]
> at io.undertow.channels.DetachableStreamSinkChannel.flush(DetachableStreamSinkChannel.java:100) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.server.HttpServerExchange.closeAndFlushResponse(HttpServerExchange.java:1489) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.server.HttpServerExchange.endExchange(HttpServerExchange.java:1470) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.websockets.spi.AsyncWebSocketHttpServerExchange.endExchange(AsyncWebSocketHttpServerExchange.java:187) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.websockets.core.protocol.Handshake.upgradeChannel(Handshake.java:121) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.websockets.core.protocol.Handshake.performUpgrade(Handshake.java:114) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.websockets.core.protocol.Handshake.performUpgrade(Handshake.java:142) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.websockets.core.protocol.version13.Hybi13Handshake.handshakeInternal(Hybi13Handshake.java:61) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.websockets.core.protocol.Handshake.handshake(Handshake.java:92) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.websockets.WebSocketProtocolHandshakeHandler.handleRequest(WebSocketProtocolHandshakeHandler.java:196) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.server.handlers.PathHandler.handleRequest(PathHandler.java:56) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.server.handlers.NameVirtualHostHandler.handleRequest(NameVirtualHostHandler.java:57) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.server.handlers.SetHeaderHandler.handleRequest(SetHeaderHandler.java:49) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.server.Connectors.executeRootHandler(Connectors.java:177) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.server.protocol.http.HttpReadListener.handleEventWithNoRunningRequest(HttpReadListener.java:156) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.server.protocol.http.HttpReadListener.handleEvent(HttpReadListener.java:91) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.server.protocol.http.HttpReadListener.handleEvent(HttpReadListener.java:45) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92) [xnio-api-3.2.0.Final.jar:3.2.0.Final]
> at org.xnio.conduits.ReadReadyHandler$ChannelListenerHandler.readReady(ReadReadyHandler.java:66) [xnio-api-3.2.0.Final.jar:3.2.0.Final]
> at org.xnio.nio.NioSocketConduit.handleReady(NioSocketConduit.java:87) [xnio-nio-3.2.0.Final.jar:3.2.0.Final]
> at org.xnio.nio.WorkerThread.run(WorkerThread.java:539) [xnio-nio-3.2.0.Final.jar:3.2.0.Final]
> (that is the whole stacktrace).
> A sample app that reproduces this scenario for me can be found at the following link: https://dl.dropboxusercontent.com/u/37542498/websocket-wildfly-test.zip
> I am creating my .war file with lein-ring. The following command is used in terminal: lein ring uberwar
> I am then deploying to WildFly standalone by running the following commands from the WildFly bin:
> Terminal Tab #1:
> ./standalone
> Terminal Tab #2:
> ./jboss-cli.sh
> connect
> deploy <path-to-war-file>/websocket-wildfly-test-0.1.0-SNAPSHOT-standalone.war
> I am then using http://www.websocket.org/echo.html to connect to the websocket on port 5000. When I click the "connect" button, the aforementioned stacktrace is seen in the standalone WildFly terminal tab.
> I have cleared my maven cache and done everything I can think of to make sure it is a completely fresh install.
> Thanks,
> Tom
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
11 years, 2 months
[JBoss JIRA] (WFLY-3708) Websocket Error in Deployed War File (WildFly)
by Stuart Douglas (JIRA)
[ https://issues.jboss.org/browse/WFLY-3708?page=com.atlassian.jira.plugin.... ]
Stuart Douglas reassigned WFLY-3708:
------------------------------------
Assignee: Stuart Douglas
> Websocket Error in Deployed War File (WildFly)
> ----------------------------------------------
>
> Key: WFLY-3708
> URL: https://issues.jboss.org/browse/WFLY-3708
> Project: WildFly
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Reporter: Tom Goldsmith
> Assignee: Stuart Douglas
>
> In Immutant incremental 195, I am seeing the following error when I deploy a .war file to WildFly and try to connect to a websocket:
> 12:30:22,273 WARN [org.jboss.modules] (XNIO-2 I/O-1) Failed to define class org.xnio.ChannelListener$Setter in Module "deployment.websocket-wildfly-test-0.1.0-SNAPSHOT-standalone.war:main" from Service Module Loader: java.lang.LinkageError: loader constraint violation: loader (instance of org/jboss/modules/ModuleClassLoader) previously initiated loading for a different type with name "org/xnio/ChannelListener$Setter"
> at java.lang.ClassLoader.defineClass1(Native Method) [rt.jar:1.8.0_05]
> at java.lang.ClassLoader.defineClass(ClassLoader.java:760) [rt.jar:1.8.0_05]
> at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:361) [jboss-modules.jar:1.3.3.Final]
> at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:482) [jboss-modules.jar:1.3.3.Final]
> at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:277) [jboss-modules.jar:1.3.3.Final]
> at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:92) [jboss-modules.jar:1.3.3.Final]
> at org.jboss.modules.Module.loadModuleClass(Module.java:568) [jboss-modules.jar:1.3.3.Final]
> at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:205) [jboss-modules.jar:1.3.3.Final]
> at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459) [jboss-modules.jar:1.3.3.Final]
> at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:408) [jboss-modules.jar:1.3.3.Final]
> at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389) [jboss-modules.jar:1.3.3.Final]
> at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134) [jboss-modules.jar:1.3.3.Final]
> at org.projectodd.wunderboss.websocket.UndertowWebsocket$1.onConnect(UndertowWebsocket.java:43) [wunderboss-web-1.x.incremental.98.jar:]
> at io.undertow.websockets.WebSocketProtocolHandshakeHandler$1.handleUpgrade(WebSocketProtocolHandshakeHandler.java:190) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.server.protocol.http.HttpReadListener.exchangeComplete(HttpReadListener.java:271) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.server.protocol.http.HttpServerConnection.exchangeComplete(HttpServerConnection.java:221) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.server.HttpServerExchange.invokeExchangeCompleteListeners(HttpServerExchange.java:1131) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.server.HttpServerExchange.terminateResponse(HttpServerExchange.java:1351) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.server.Connectors.terminateResponse(Connectors.java:78) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.server.protocol.http.ServerFixedLengthStreamSinkConduit.channelFinished(ServerFixedLengthStreamSinkConduit.java:33) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.conduits.AbstractFixedLengthStreamSinkConduit.exitFlush(AbstractFixedLengthStreamSinkConduit.java:273) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.conduits.AbstractFixedLengthStreamSinkConduit.flush(AbstractFixedLengthStreamSinkConduit.java:207) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at org.xnio.conduits.ConduitStreamSinkChannel.flush(ConduitStreamSinkChannel.java:162) [xnio-api-3.2.0.Final.jar:3.2.0.Final]
> at io.undertow.channels.DetachableStreamSinkChannel.flush(DetachableStreamSinkChannel.java:100) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.server.HttpServerExchange.closeAndFlushResponse(HttpServerExchange.java:1489) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.server.HttpServerExchange.endExchange(HttpServerExchange.java:1470) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.websockets.spi.AsyncWebSocketHttpServerExchange.endExchange(AsyncWebSocketHttpServerExchange.java:187) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.websockets.core.protocol.Handshake.upgradeChannel(Handshake.java:121) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.websockets.core.protocol.Handshake.performUpgrade(Handshake.java:114) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.websockets.core.protocol.Handshake.performUpgrade(Handshake.java:142) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.websockets.core.protocol.version13.Hybi13Handshake.handshakeInternal(Hybi13Handshake.java:61) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.websockets.core.protocol.Handshake.handshake(Handshake.java:92) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.websockets.WebSocketProtocolHandshakeHandler.handleRequest(WebSocketProtocolHandshakeHandler.java:196) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.server.handlers.PathHandler.handleRequest(PathHandler.java:56) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.server.handlers.NameVirtualHostHandler.handleRequest(NameVirtualHostHandler.java:57) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.server.handlers.SetHeaderHandler.handleRequest(SetHeaderHandler.java:49) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.server.Connectors.executeRootHandler(Connectors.java:177) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.server.protocol.http.HttpReadListener.handleEventWithNoRunningRequest(HttpReadListener.java:156) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.server.protocol.http.HttpReadListener.handleEvent(HttpReadListener.java:91) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.server.protocol.http.HttpReadListener.handleEvent(HttpReadListener.java:45) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92) [xnio-api-3.2.0.Final.jar:3.2.0.Final]
> at org.xnio.conduits.ReadReadyHandler$ChannelListenerHandler.readReady(ReadReadyHandler.java:66) [xnio-api-3.2.0.Final.jar:3.2.0.Final]
> at org.xnio.nio.NioSocketConduit.handleReady(NioSocketConduit.java:87) [xnio-nio-3.2.0.Final.jar:3.2.0.Final]
> at org.xnio.nio.WorkerThread.run(WorkerThread.java:539) [xnio-nio-3.2.0.Final.jar:3.2.0.Final]
> 12:30:22,282 ERROR [io.undertow.request] (XNIO-2 I/O-1) Blocking request failed HttpServerExchange{ GET /}: java.lang.LinkageError: loader constraint violation: loader (instance of org/jboss/modules/ModuleClassLoader) previously initiated loading for a different type with name "org/xnio/ChannelListener$Setter"
> at java.lang.ClassLoader.defineClass1(Native Method) [rt.jar:1.8.0_05]
> at java.lang.ClassLoader.defineClass(ClassLoader.java:760) [rt.jar:1.8.0_05]
> at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:361) [jboss-modules.jar:1.3.3.Final]
> at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:482) [jboss-modules.jar:1.3.3.Final]
> at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:277) [jboss-modules.jar:1.3.3.Final]
> at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:92) [jboss-modules.jar:1.3.3.Final]
> at org.jboss.modules.Module.loadModuleClass(Module.java:568) [jboss-modules.jar:1.3.3.Final]
> at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:205) [jboss-modules.jar:1.3.3.Final]
> at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459) [jboss-modules.jar:1.3.3.Final]
> at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:408) [jboss-modules.jar:1.3.3.Final]
> at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389) [jboss-modules.jar:1.3.3.Final]
> at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134) [jboss-modules.jar:1.3.3.Final]
> at org.projectodd.wunderboss.websocket.UndertowWebsocket$1.onConnect(UndertowWebsocket.java:43) [wunderboss-web-1.x.incremental.98.jar:]
> at io.undertow.websockets.WebSocketProtocolHandshakeHandler$1.handleUpgrade(WebSocketProtocolHandshakeHandler.java:190) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.server.protocol.http.HttpReadListener.exchangeComplete(HttpReadListener.java:271) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.server.protocol.http.HttpServerConnection.exchangeComplete(HttpServerConnection.java:221) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.server.HttpServerExchange.invokeExchangeCompleteListeners(HttpServerExchange.java:1131) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.server.HttpServerExchange.terminateResponse(HttpServerExchange.java:1351) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.server.Connectors.terminateResponse(Connectors.java:78) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.server.protocol.http.ServerFixedLengthStreamSinkConduit.channelFinished(ServerFixedLengthStreamSinkConduit.java:33) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.conduits.AbstractFixedLengthStreamSinkConduit.exitFlush(AbstractFixedLengthStreamSinkConduit.java:273) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.conduits.AbstractFixedLengthStreamSinkConduit.flush(AbstractFixedLengthStreamSinkConduit.java:207) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at org.xnio.conduits.ConduitStreamSinkChannel.flush(ConduitStreamSinkChannel.java:162) [xnio-api-3.2.0.Final.jar:3.2.0.Final]
> at io.undertow.channels.DetachableStreamSinkChannel.flush(DetachableStreamSinkChannel.java:100) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.server.HttpServerExchange.closeAndFlushResponse(HttpServerExchange.java:1489) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.server.HttpServerExchange.endExchange(HttpServerExchange.java:1470) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.websockets.spi.AsyncWebSocketHttpServerExchange.endExchange(AsyncWebSocketHttpServerExchange.java:187) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.websockets.core.protocol.Handshake.upgradeChannel(Handshake.java:121) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.websockets.core.protocol.Handshake.performUpgrade(Handshake.java:114) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.websockets.core.protocol.Handshake.performUpgrade(Handshake.java:142) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.websockets.core.protocol.version13.Hybi13Handshake.handshakeInternal(Hybi13Handshake.java:61) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.websockets.core.protocol.Handshake.handshake(Handshake.java:92) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.websockets.WebSocketProtocolHandshakeHandler.handleRequest(WebSocketProtocolHandshakeHandler.java:196) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.server.handlers.PathHandler.handleRequest(PathHandler.java:56) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.server.handlers.NameVirtualHostHandler.handleRequest(NameVirtualHostHandler.java:57) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.server.handlers.SetHeaderHandler.handleRequest(SetHeaderHandler.java:49) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.server.Connectors.executeRootHandler(Connectors.java:177) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.server.protocol.http.HttpReadListener.handleEventWithNoRunningRequest(HttpReadListener.java:156) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.server.protocol.http.HttpReadListener.handleEvent(HttpReadListener.java:91) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.server.protocol.http.HttpReadListener.handleEvent(HttpReadListener.java:45) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92) [xnio-api-3.2.0.Final.jar:3.2.0.Final]
> at org.xnio.conduits.ReadReadyHandler$ChannelListenerHandler.readReady(ReadReadyHandler.java:66) [xnio-api-3.2.0.Final.jar:3.2.0.Final]
> at org.xnio.nio.NioSocketConduit.handleReady(NioSocketConduit.java:87) [xnio-nio-3.2.0.Final.jar:3.2.0.Final]
> at org.xnio.nio.WorkerThread.run(WorkerThread.java:539) [xnio-nio-3.2.0.Final.jar:3.2.0.Final]
> (that is the whole stacktrace).
> A sample app that reproduces this scenario for me can be found at the following link: https://dl.dropboxusercontent.com/u/37542498/websocket-wildfly-test.zip
> I am creating my .war file with lein-ring. The following command is used in terminal: lein ring uberwar
> I am then deploying to WildFly standalone by running the following commands from the WildFly bin:
> Terminal Tab #1:
> ./standalone
> Terminal Tab #2:
> ./jboss-cli.sh
> connect
> deploy <path-to-war-file>/websocket-wildfly-test-0.1.0-SNAPSHOT-standalone.war
> I am then using http://www.websocket.org/echo.html to connect to the websocket on port 5000. When I click the "connect" button, the aforementioned stacktrace is seen in the standalone WildFly terminal tab.
> I have cleared my maven cache and done everything I can think of to make sure it is a completely fresh install.
> Thanks,
> Tom
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
11 years, 2 months
[JBoss JIRA] (JBJCA-1202) Add kill_connection_on_boundary functionality
by Jesper Pedersen (JIRA)
Jesper Pedersen created JBJCA-1202:
--------------------------------------
Summary: Add kill_connection_on_boundary functionality
Key: JBJCA-1202
URL: https://issues.jboss.org/browse/JBJCA-1202
Project: IronJacamar
Issue Type: Task
Security Level: Public (Everyone can see)
Components: Core
Reporter: Jesper Pedersen
Assignee: Jesper Pedersen
Priority: Blocker
Fix For: 1.0.27.Final
Ala upstream tracking feature -- use pool name as key
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
11 years, 2 months
[JBoss JIRA] (JBASMP-58) jboss-as-maven-plugin freezes on authentication
by James Perkins (JIRA)
[ https://issues.jboss.org/browse/JBASMP-58?page=com.atlassian.jira.plugin.... ]
James Perkins closed JBASMP-58.
-------------------------------
Resolution: Out of Date
This seems to be working okay on OS X 10.9.4, running maven 3.2.2 and Java 1.7.0_51.
Server side is running Fedora and OpenJDK 1.7.0_65.
> jboss-as-maven-plugin freezes on authentication
> -----------------------------------------------
>
> Key: JBASMP-58
> URL: https://issues.jboss.org/browse/JBASMP-58
> Project: JBoss AS Maven Plugins
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: deploy
> Affects Versions: 7.5.Final
> Environment: mac os x 10.8.5 & mac os x 10.9
> mvn 3.1.1
> Reporter: Julien Derveeuw
> Assignee: James Perkins
> Priority: Critical
>
> I have jboss 7.1.1 in standalone mode running on machine A (linux).
> I want to deploy remotely to it using client machine B @ mac os X 10.8.5 / JDK 1.7.0_45-b18.
> If I connect from B to A using {{jboss-cli}}, everything works fine, I am able to login.
> If I try to deploy from maven with this :
> {code:xml}
> <groupId>org.jboss.as.plugins</groupId>
> <artifactId>jboss-as-maven-plugin</artifactId>
> <version>7.5.Final</version>
> <configuration>
> <hostname>${deploy.jboss.host}</hostname>
> <port>${deploy.jboss.port}</port>
> <username>${deploy.jboss.user}</username>
> <password>${deploy.jboss.password}</password>
> </configuration>
> <executions>
> <execution>
> <phase>install</phase>
> <goals>
> <goal>deploy</goal>
> </goals>
> </execution>
> </executions>
> {code}
> plugin freezes indefinitely on
> {{Authenticating against security realm: ManagementRealm}}
> No more details are available with {{mvn -X}}
> If I remove the password or username from pom, it fails correctly with :
> {{The connection failed: Authentication failed: all available authentication mechanisms failed}}
> so it seems that the plugin somehow manages to connect to machine A.
> After digging on google, I ended up adding {{-Djava.nio.channels.spi.SelectorProvider=sun.nio.ch.KQueueSelectorProvider}} to mvn runner options because NIOs on jdk7@macosx is said to be buggy but it didn't help.
> More details :
> {code:title=mvn 3.1.1 output|borderStyle=solid}Nov 7, 2013 10:40:09 PM org.xnio.Xnio <clinit>
> INFO: XNIO Version 3.0.3.GA
> Nov 7, 2013 10:40:09 PM org.xnio.nio.NioXnio <clinit>
> INFO: XNIO NIO Implementation Version 3.0.3.GA
> Nov 7, 2013 10:40:09 PM org.jboss.remoting3.EndpointImpl <clinit>
> INFO: JBoss Remoting version 3.2.3.GA
> Authenticating against security realm: ManagementRealm
> {code}
> {code:title=jstack 7.1.1.Final|borderStyle=solid}
> "main" prio=5 tid=7f86d6800800 nid=0x1060f0000 in Object.wait() [1060ee000]
> java.lang.Thread.State: WAITING (on object monitor)
> at java.lang.Object.wait(Native Method)
> - waiting on <7f4102a20> (a org.jboss.as.protocol.mgmt.ActiveOperationSupport$ActiveOperationImpl)
> at java.lang.Object.wait(Object.java:485)
> at org.jboss.threads.AsyncFutureTask.await(AsyncFutureTask.java:192)
> - locked <7f4102a20> (a org.jboss.as.protocol.mgmt.ActiveOperationSupport$ActiveOperationImpl)
> at org.jboss.threads.AsyncFutureTask.get(AsyncFutureTask.java:266)
> - locked <7f4102a20> (a org.jboss.as.protocol.mgmt.ActiveOperationSupport$ActiveOperationImpl)
> at org.jboss.as.controller.client.impl.AbstractModelControllerClient$DelegatingCancellableAsyncFuture.get(AbstractModelControllerClient.java:363)
> at org.jboss.as.controller.client.impl.AbstractModelControllerClient$DelegatingCancellableAsyncFuture.get(AbstractModelControllerClient.java:317)
> at org.jboss.as.controller.client.impl.AbstractModelControllerClient.executeForResult(AbstractModelControllerClient.java:137)
> at org.jboss.as.controller.client.impl.AbstractModelControllerClient.execute(AbstractModelControllerClient.java:81)
> at org.jboss.as.plugin.deployment.standalone.StandaloneDeployment.exists(StandaloneDeployment.java:175)
> at org.jboss.as.plugin.deployment.standalone.StandaloneDeployment.createPlan(StandaloneDeployment.java:108)
> at org.jboss.as.plugin.deployment.standalone.StandaloneDeployment.execute(StandaloneDeployment.java:133)
> at org.jboss.as.plugin.deployment.AbstractDeployment.execute(AbstractDeployment.java:138)
> at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:106)
> at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
> at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
> at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
> at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
> at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
> at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
> at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:317)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:152)
> at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)
> at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
> at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
> at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
> at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
> {code}
> {code:title=jstack 7.5.Final|borderStyle=solid}
> "main" prio=5 tid=7fceea001000 nid=0x10d4d0000 in Object.wait() [10d4ce000]
> java.lang.Thread.State: WAITING (on object monitor)
> at java.lang.Object.wait(Native Method)
> - waiting on <7f42f2150> (a org.jboss.as.protocol.mgmt.ActiveOperationSupport$ActiveOperationImpl)
> at java.lang.Object.wait(Object.java:485)
> at org.jboss.threads.AsyncFutureTask.await(AsyncFutureTask.java:192)
> - locked <7f42f2150> (a org.jboss.as.protocol.mgmt.ActiveOperationSupport$ActiveOperationImpl)
> at org.jboss.threads.AsyncFutureTask.get(AsyncFutureTask.java:266)
> - locked <7f42f2150> (a org.jboss.as.protocol.mgmt.ActiveOperationSupport$ActiveOperationImpl)
> at org.jboss.as.controller.client.impl.AbstractDelegatingAsyncFuture.get(AbstractDelegatingAsyncFuture.java:100)
> at org.jboss.as.controller.client.impl.AbstractModelControllerClient.executeForResult(AbstractModelControllerClient.java:127)
> at org.jboss.as.controller.client.impl.AbstractModelControllerClient.execute(AbstractModelControllerClient.java:71)
> at org.jboss.as.plugin.common.AbstractServerConnection.isDomainServer(AbstractServerConnection.java:234)
> at org.jboss.as.plugin.common.AbstractServerConnection.getClient(AbstractServerConnection.java:156)
> - locked <7f42f2230> (a java.lang.Object)
> at org.jboss.as.plugin.common.AbstractServerConnection.isDomainServer(AbstractServerConnection.java:133)
> - locked <7f42f2230> (a java.lang.Object)
> at org.jboss.as.plugin.deployment.AbstractDeployment.validate(AbstractDeployment.java:192)
> at org.jboss.as.plugin.deployment.AbstractDeployment.doExecute(AbstractDeployment.java:136)
> - locked <7f42f2230> (a java.lang.Object)
> at org.jboss.as.plugin.deployment.AbstractAppDeployment.doExecute(AbstractAppDeployment.java:70)
> at org.jboss.as.plugin.deployment.AbstractDeployment.execute(AbstractDeployment.java:111)
> at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:106)
> at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
> at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
> at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
> at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
> at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
> at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
> at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:317)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:152)
> at org.apache.maven.cli.MavenCli.execute(MavenCli.java:555)
> at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:214)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:158)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at java.lang.reflect.Method.invoke(Method.java:597)
> at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
> at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
> at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
> at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
> {code}
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
11 years, 2 months
[JBoss JIRA] (WFLY-3708) Websocket Error in Deployed War File (WildFly)
by Jim Crossley (JIRA)
[ https://issues.jboss.org/browse/WFLY-3708?page=com.atlassian.jira.plugin.... ]
Jim Crossley commented on WFLY-3708:
------------------------------------
We resolved this on irc, so feel free to close
> Websocket Error in Deployed War File (WildFly)
> ----------------------------------------------
>
> Key: WFLY-3708
> URL: https://issues.jboss.org/browse/WFLY-3708
> Project: WildFly
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Reporter: Tom Goldsmith
>
> In Immutant incremental 195, I am seeing the following error when I deploy a .war file to WildFly and try to connect to a websocket:
> 12:30:22,273 WARN [org.jboss.modules] (XNIO-2 I/O-1) Failed to define class org.xnio.ChannelListener$Setter in Module "deployment.websocket-wildfly-test-0.1.0-SNAPSHOT-standalone.war:main" from Service Module Loader: java.lang.LinkageError: loader constraint violation: loader (instance of org/jboss/modules/ModuleClassLoader) previously initiated loading for a different type with name "org/xnio/ChannelListener$Setter"
> at java.lang.ClassLoader.defineClass1(Native Method) [rt.jar:1.8.0_05]
> at java.lang.ClassLoader.defineClass(ClassLoader.java:760) [rt.jar:1.8.0_05]
> at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:361) [jboss-modules.jar:1.3.3.Final]
> at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:482) [jboss-modules.jar:1.3.3.Final]
> at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:277) [jboss-modules.jar:1.3.3.Final]
> at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:92) [jboss-modules.jar:1.3.3.Final]
> at org.jboss.modules.Module.loadModuleClass(Module.java:568) [jboss-modules.jar:1.3.3.Final]
> at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:205) [jboss-modules.jar:1.3.3.Final]
> at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459) [jboss-modules.jar:1.3.3.Final]
> at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:408) [jboss-modules.jar:1.3.3.Final]
> at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389) [jboss-modules.jar:1.3.3.Final]
> at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134) [jboss-modules.jar:1.3.3.Final]
> at org.projectodd.wunderboss.websocket.UndertowWebsocket$1.onConnect(UndertowWebsocket.java:43) [wunderboss-web-1.x.incremental.98.jar:]
> at io.undertow.websockets.WebSocketProtocolHandshakeHandler$1.handleUpgrade(WebSocketProtocolHandshakeHandler.java:190) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.server.protocol.http.HttpReadListener.exchangeComplete(HttpReadListener.java:271) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.server.protocol.http.HttpServerConnection.exchangeComplete(HttpServerConnection.java:221) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.server.HttpServerExchange.invokeExchangeCompleteListeners(HttpServerExchange.java:1131) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.server.HttpServerExchange.terminateResponse(HttpServerExchange.java:1351) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.server.Connectors.terminateResponse(Connectors.java:78) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.server.protocol.http.ServerFixedLengthStreamSinkConduit.channelFinished(ServerFixedLengthStreamSinkConduit.java:33) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.conduits.AbstractFixedLengthStreamSinkConduit.exitFlush(AbstractFixedLengthStreamSinkConduit.java:273) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.conduits.AbstractFixedLengthStreamSinkConduit.flush(AbstractFixedLengthStreamSinkConduit.java:207) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at org.xnio.conduits.ConduitStreamSinkChannel.flush(ConduitStreamSinkChannel.java:162) [xnio-api-3.2.0.Final.jar:3.2.0.Final]
> at io.undertow.channels.DetachableStreamSinkChannel.flush(DetachableStreamSinkChannel.java:100) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.server.HttpServerExchange.closeAndFlushResponse(HttpServerExchange.java:1489) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.server.HttpServerExchange.endExchange(HttpServerExchange.java:1470) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.websockets.spi.AsyncWebSocketHttpServerExchange.endExchange(AsyncWebSocketHttpServerExchange.java:187) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.websockets.core.protocol.Handshake.upgradeChannel(Handshake.java:121) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.websockets.core.protocol.Handshake.performUpgrade(Handshake.java:114) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.websockets.core.protocol.Handshake.performUpgrade(Handshake.java:142) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.websockets.core.protocol.version13.Hybi13Handshake.handshakeInternal(Hybi13Handshake.java:61) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.websockets.core.protocol.Handshake.handshake(Handshake.java:92) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.websockets.WebSocketProtocolHandshakeHandler.handleRequest(WebSocketProtocolHandshakeHandler.java:196) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.server.handlers.PathHandler.handleRequest(PathHandler.java:56) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.server.handlers.NameVirtualHostHandler.handleRequest(NameVirtualHostHandler.java:57) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.server.handlers.SetHeaderHandler.handleRequest(SetHeaderHandler.java:49) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.server.Connectors.executeRootHandler(Connectors.java:177) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.server.protocol.http.HttpReadListener.handleEventWithNoRunningRequest(HttpReadListener.java:156) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.server.protocol.http.HttpReadListener.handleEvent(HttpReadListener.java:91) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.server.protocol.http.HttpReadListener.handleEvent(HttpReadListener.java:45) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92) [xnio-api-3.2.0.Final.jar:3.2.0.Final]
> at org.xnio.conduits.ReadReadyHandler$ChannelListenerHandler.readReady(ReadReadyHandler.java:66) [xnio-api-3.2.0.Final.jar:3.2.0.Final]
> at org.xnio.nio.NioSocketConduit.handleReady(NioSocketConduit.java:87) [xnio-nio-3.2.0.Final.jar:3.2.0.Final]
> at org.xnio.nio.WorkerThread.run(WorkerThread.java:539) [xnio-nio-3.2.0.Final.jar:3.2.0.Final]
> 12:30:22,282 ERROR [io.undertow.request] (XNIO-2 I/O-1) Blocking request failed HttpServerExchange{ GET /}: java.lang.LinkageError: loader constraint violation: loader (instance of org/jboss/modules/ModuleClassLoader) previously initiated loading for a different type with name "org/xnio/ChannelListener$Setter"
> at java.lang.ClassLoader.defineClass1(Native Method) [rt.jar:1.8.0_05]
> at java.lang.ClassLoader.defineClass(ClassLoader.java:760) [rt.jar:1.8.0_05]
> at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:361) [jboss-modules.jar:1.3.3.Final]
> at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:482) [jboss-modules.jar:1.3.3.Final]
> at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:277) [jboss-modules.jar:1.3.3.Final]
> at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:92) [jboss-modules.jar:1.3.3.Final]
> at org.jboss.modules.Module.loadModuleClass(Module.java:568) [jboss-modules.jar:1.3.3.Final]
> at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:205) [jboss-modules.jar:1.3.3.Final]
> at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459) [jboss-modules.jar:1.3.3.Final]
> at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:408) [jboss-modules.jar:1.3.3.Final]
> at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389) [jboss-modules.jar:1.3.3.Final]
> at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134) [jboss-modules.jar:1.3.3.Final]
> at org.projectodd.wunderboss.websocket.UndertowWebsocket$1.onConnect(UndertowWebsocket.java:43) [wunderboss-web-1.x.incremental.98.jar:]
> at io.undertow.websockets.WebSocketProtocolHandshakeHandler$1.handleUpgrade(WebSocketProtocolHandshakeHandler.java:190) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.server.protocol.http.HttpReadListener.exchangeComplete(HttpReadListener.java:271) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.server.protocol.http.HttpServerConnection.exchangeComplete(HttpServerConnection.java:221) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.server.HttpServerExchange.invokeExchangeCompleteListeners(HttpServerExchange.java:1131) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.server.HttpServerExchange.terminateResponse(HttpServerExchange.java:1351) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.server.Connectors.terminateResponse(Connectors.java:78) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.server.protocol.http.ServerFixedLengthStreamSinkConduit.channelFinished(ServerFixedLengthStreamSinkConduit.java:33) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.conduits.AbstractFixedLengthStreamSinkConduit.exitFlush(AbstractFixedLengthStreamSinkConduit.java:273) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.conduits.AbstractFixedLengthStreamSinkConduit.flush(AbstractFixedLengthStreamSinkConduit.java:207) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at org.xnio.conduits.ConduitStreamSinkChannel.flush(ConduitStreamSinkChannel.java:162) [xnio-api-3.2.0.Final.jar:3.2.0.Final]
> at io.undertow.channels.DetachableStreamSinkChannel.flush(DetachableStreamSinkChannel.java:100) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.server.HttpServerExchange.closeAndFlushResponse(HttpServerExchange.java:1489) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.server.HttpServerExchange.endExchange(HttpServerExchange.java:1470) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.websockets.spi.AsyncWebSocketHttpServerExchange.endExchange(AsyncWebSocketHttpServerExchange.java:187) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.websockets.core.protocol.Handshake.upgradeChannel(Handshake.java:121) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.websockets.core.protocol.Handshake.performUpgrade(Handshake.java:114) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.websockets.core.protocol.Handshake.performUpgrade(Handshake.java:142) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.websockets.core.protocol.version13.Hybi13Handshake.handshakeInternal(Hybi13Handshake.java:61) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.websockets.core.protocol.Handshake.handshake(Handshake.java:92) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.websockets.WebSocketProtocolHandshakeHandler.handleRequest(WebSocketProtocolHandshakeHandler.java:196) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.server.handlers.PathHandler.handleRequest(PathHandler.java:56) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.server.handlers.NameVirtualHostHandler.handleRequest(NameVirtualHostHandler.java:57) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.server.handlers.SetHeaderHandler.handleRequest(SetHeaderHandler.java:49) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.server.Connectors.executeRootHandler(Connectors.java:177) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.server.protocol.http.HttpReadListener.handleEventWithNoRunningRequest(HttpReadListener.java:156) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.server.protocol.http.HttpReadListener.handleEvent(HttpReadListener.java:91) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at io.undertow.server.protocol.http.HttpReadListener.handleEvent(HttpReadListener.java:45) [undertow-core-1.0.15.Final.jar:1.0.15.Final]
> at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92) [xnio-api-3.2.0.Final.jar:3.2.0.Final]
> at org.xnio.conduits.ReadReadyHandler$ChannelListenerHandler.readReady(ReadReadyHandler.java:66) [xnio-api-3.2.0.Final.jar:3.2.0.Final]
> at org.xnio.nio.NioSocketConduit.handleReady(NioSocketConduit.java:87) [xnio-nio-3.2.0.Final.jar:3.2.0.Final]
> at org.xnio.nio.WorkerThread.run(WorkerThread.java:539) [xnio-nio-3.2.0.Final.jar:3.2.0.Final]
> (that is the whole stacktrace).
> A sample app that reproduces this scenario for me can be found at the following link: https://dl.dropboxusercontent.com/u/37542498/websocket-wildfly-test.zip
> I am creating my .war file with lein-ring. The following command is used in terminal: lein ring uberwar
> I am then deploying to WildFly standalone by running the following commands from the WildFly bin:
> Terminal Tab #1:
> ./standalone
> Terminal Tab #2:
> ./jboss-cli.sh
> connect
> deploy <path-to-war-file>/websocket-wildfly-test-0.1.0-SNAPSHOT-standalone.war
> I am then using http://www.websocket.org/echo.html to connect to the websocket on port 5000. When I click the "connect" button, the aforementioned stacktrace is seen in the standalone WildFly terminal tab.
> I have cleared my maven cache and done everything I can think of to make sure it is a completely fresh install.
> Thanks,
> Tom
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
11 years, 2 months