org.springframework.context.ApplicationContextException: Unable to start embedded container; nested exception is java.lang.NoClassDefFoundError: io/netty/channel/ChannelHandler

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

,
Expert tip

A few things cause this exception:
1) Check if you have all jars and if they're in the correct path.
2) Your classpath might be broken, you can define it in the command line with java -cp yourClassPath or at your IDE if you're using one.

,

you can change your scala version to 2.11.11

Solutions on the web

via GitHub by yburkouski
, 1 year ago
Unable to start embedded container; nested exception is java.lang.NoClassDefFoundError: io/netty/channel/ChannelHandler
via Spring JIRA by Tzachi Strugo, 1 year ago
Unable to start embedded container; nested exception is java.lang.NoSuchMethodError: org.springframework.http.server.reactive.ServletHttpHandlerAdapter: method <init>()V not found
via GitHub by MuhammedSenussi
, 1 year ago
Unable to start embedded container; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'httpHandler' defined in class path resource [org/springframework/boot/autoconfigure/reactiveweb
via GitHub by danielfernandez
, 1 year ago
Unable to start embedded container; nested exception is org.springframework.context.ApplicationContextException: Unable to start ReactiveWebApplicationContext due to missing ReactiveHttpServerFactory bean.
via GitHub by gs-spadmanabhan
, 1 year ago
Unable to start embedded container; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'httpHandler' defined in class path resource [org/springframework/boot/autoconfigure/reactiveweb
java.lang.ClassNotFoundException: io.netty.channel.ChannelHandler
at java.net.URLClassLoader.findClass(URLClassLoader.java:381)
at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)
at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
at org.springframework.boot.context.embedded.ReactorEmbeddedReactiveHttpServer.afterPropertiesSet(ReactorEmbeddedReactiveHttpServer.java:36)
at org.springframework.boot.context.embedded.ReactorEmbeddedHttpServerFactory.getReactiveHttpServer(ReactorEmbeddedHttpServerFactory.java:33)
at org.springframework.boot.context.embedded.ReactiveWebApplicationContext.createReactiveHttpServer(ReactiveWebApplicationContext.java:74)
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:759)
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:369)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:313)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1185)
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1174)
at sample.web.reactive.ReactiveSampleApplication.main(ReactiveSampleApplication.java:11)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:497)

Users with the same issue

Once, 2 days ago
Once, 2 days ago
2 times, 5 days ago
Once, 6 days ago
Once, 6 days ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.