B4J Question Build standalone of server app does not support web socket

hatzisn

Expert
Licensed User
Longtime User
I get the following error when I try to access a page which uses web socket. What modules do I need to include?

2021-11-03 12:55:20.016:WARN:eek:ejs.HttpChannel:qtp687780858-15: /guessmynumber_ws/ws
java.util.ServiceConfigurationError: org.eclipse.jetty.websocket.common.RemoteEndpointFactory: module b4j does not declare `uses`
at java.base/java.util.ServiceLoader.fail(Unknown Source)
at java.base/java.util.ServiceLoader.checkCaller(Unknown Source)
at java.base/java.util.ServiceLoader.<init>(Unknown Source)
at java.base/java.util.ServiceLoader.load(Unknown Source)
at b4j/org.eclipse.jetty.websocket.common.WebSocketSession.doStart(Unknown Source)
at b4j/org.eclipse.jetty.util.component.AbstractLifeCycle.start(Unknown Source)
at b4j/org.eclipse.jetty.util.component.ContainerLifeCycle.start(Unknown Source)
at b4j/org.eclipse.jetty.util.component.ContainerLifeCycle.addManaged(Unknown Source)
at b4j/org.eclipse.jetty.websocket.server.WebSocketServerFactory.upgrade(Unknown Source)
at b4j/org.eclipse.jetty.websocket.server.WebSocketServerFactory.acceptWebSocket(Unknown Source)
at b4j/org.eclipse.jetty.websocket.server.WebSocketServerFactory.acceptWebSocket(Unknown Source)
at b4j/org.eclipse.jetty.websocket.servlet.WebSocketServlet.service(Unknown Source)
at b4j/javax.servlet.http.HttpServlet.service(Unknown Source)
at b4j/org.eclipse.jetty.servlet.ServletHolder.handle(Unknown Source)
at b4j/org.eclipse.jetty.servlet.ServletHandler.doHandle(Unknown Source)
at b4j/org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(Unknown Source)
at b4j/org.eclipse.jetty.server.session.SessionHandler.doHandle(Unknown Source)
at b4j/org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(Unknown Source)
at b4j/org.eclipse.jetty.server.handler.ContextHandler.doHandle(Unknown Source)
at b4j/org.eclipse.jetty.server.handler.ScopedHandler.nextScope(Unknown Source)
at b4j/org.eclipse.jetty.servlet.ServletHandler.doScope(Unknown Source)
at b4j/org.eclipse.jetty.server.session.SessionHandler.doScope(Unknown Source)
at b4j/org.eclipse.jetty.server.handler.ScopedHandler.nextScope(Unknown Source)
at b4j/org.eclipse.jetty.server.handler.ContextHandler.doScope(Unknown Source)
at b4j/org.eclipse.jetty.server.handler.ScopedHandler.handle(Unknown Source)
at b4j/org.eclipse.jetty.server.handler.HandlerCollection.handle(Unknown Source)
at b4j/org.eclipse.jetty.server.handler.HandlerWrapper.handle(Unknown Source)
at b4j/org.eclipse.jetty.server.Server.handle(Unknown Source)
at b4j/org.eclipse.jetty.server.HttpChannel.handle(Unknown Source)
at b4j/org.eclipse.jetty.server.HttpConnection.onFillable(Unknown Source)
at b4j/org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(Unknown Source)
at b4j/org.eclipse.jetty.io.FillInterest.fillable(Unknown Source)
at b4j/org.eclipse.jetty.io.ChannelEndPoint$2.run(Unknown Source)
at b4j/org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(Unknown Source)
at b4j/org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(Unknown Source)
at b4j/org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(Unknown Source)
at b4j/org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.produce(Unknown Source)
at b4j/org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(Unknown Source)
at b4j/org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)
 

hatzisn

Expert
Licensed User
Longtime User
It is a web app by @Erel. I repost it here for not making you search for it.
 

Attachments

  • WebApp_DELETE_2.zip
    6.4 KB · Views: 99
Upvote 0

hatzisn

Expert
Licensed User
Longtime User
Beside my response I also noticed that you will have to copy yourself the "www" folder from "Objects" folder to the "Objects/temp/build/bin".
 
Upvote 0

hatzisn

Expert
Licensed User
Longtime User
I see
 
Upvote 0
Top