org.jboss.weld.resources.spi.ResourceLoadingException: Error while loading class jakarta.servlet.http.HttpServlet$NoBodyAsyncContextListener

2,966 views
Skip to first unread message

yuos yon

unread,
Oct 3, 2023, 9:06:24 AM10/3/23
to WildFly
Hello Team,
I deployed war file that build with spring boot 3.x, it got error like this:
{"WFLYCTL0080: Failed services" => {"jboss.deployment.unit.\"wtx-api-0.0.1-SNAPSHOT.war\".component.\"jakarta.servlet.http.HttpServlet$NoBodyAsyncContextListener\".WeldInstantiator" => "Failed to start service
    Caused by: org.jboss.weld.resources.spi.ResourceLoadingException: Error while loading class jakarta.servlet.http.HttpServlet$NoBodyAsyncContextListener
    Caused by: java.lang.IncompatibleClassChangeError: jakarta.servlet.http.HttpServlet and jakarta.servlet.http.HttpServlet$NoBodyAsyncContextListener disagree on InnerClasses attribute"}}
how to sovle it?
Regards,
Yuos Yon

Richard Opalka

unread,
Oct 3, 2023, 11:07:32 AM10/3/23
to yuos yon, WildFly
Hello Yuos,

   Don't you bundle jakarta-servlet-api.jar in your web app? If yes, remove it.

Rio

--
You received this message because you are subscribed to the Google Groups "WildFly" group.
To unsubscribe from this group and stop receiving emails from it, send an email to wildfly+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/wildfly/c2b59e5b-409d-4fca-81fd-d3daf00203e1n%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages