obs-websocket-java
obs-websocket-java copied to clipboard
org.eclipse.jetty.util.log.* has been removed from Jetty
Describe the bug
The logging facility in Jetty was never mean to be used directly but somehow it was used in io.obswebsocket.community.client.OBSRemoteControllerBuilder. Since the Jetty team removed this entire package, applications using the newer versions of these libraries conflict and obs-websocket-java fails to start.
Please see here; https://github.com/jetty/jetty.project/issues/4572
Code Sample
obsRemoteController = OBSRemoteController.builder().host(host) // Default host
.port(port) // Default port
.password(pword) // Provide your password here
.connectionTimeout(timeout) // Seconds the client will wait for OBS to respond
.lifecycle() // Add some lifecycle callbacks
.onReady(this::onReady) // Add onReady callback
.and() // Build the LifecycleListenerBuilder
.registerEventListener(StudioModeStateChangedEvent.class,
this::onStudioModeStateChanged) // Register a StudioModeStateChangedEvent
.build();
Expected behavior
The OBS Client starts.
Additional context
Caused by: java.lang.NoClassDefFoundError: org/eclipse/jetty/util/log/Log
at org.eclipse.jetty.websocket.client.WebSocketClient.