Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jetty-users] Regarding Class def not found in runtime

Hi,

On Thu, Dec 28, 2023 at 10:44 AM Saitama Sensei via jetty-users
<jetty-users@xxxxxxxxxxx> wrote:
>
> Hi,
>
> I have recently upgraded the jetty server from 9.4.52 to 12.0.4 ee8. I have made configuration changes and using ee8 webAppContext. While working with a websocket client I have observed an issue as class def not found.
>
> I have found issue for this line,
>
> this.socketClient.getSslContextFactory().setTrustAll(true);
>
> WARN :oejen.HttpChannel:qtp1873859565-26: handleException /server/realtime java.io.IOException: java.lang.NoClassDefFoundError: org/eclipse/jetty/util/ssl/SslContextFactory
>
> After this my websocket client init process is not moving forward, I have tried creating a HttpClient object and setting sslContextFactory to it, later passing it on WebSocketClient constructor argument.
>
> While trying this, the same warning appeared for the HttpClient class.
>
> I have added all jetty ee8 websocket modules to start.jar, additionally tried adding jetty-util and jetty-client jar in lib/ext to bring them into classpath.
>
> In this case can you advice me how should I move forward?

You obviously don't have the class in the class-path.
I would double check your class-path.

If you can reproduce the issue in a small project, open an issue,
attach the reproducer project so that we can try.

-- 
Simone Bordet
---
Finally, no matter how good the architecture and design are,
to deliver bug-free software with optimal performance and reliability,
the implementation technique must be flawless.   Victoria Livschitz


Back to the top