1 Reply Latest reply on Apr 9, 2018 4:46 AM by Minnie kang

    NoClassDefFoundError Caused by: java.lang.ClassNotFoundException: io.undertow.servlet.handlers.ServletRequestContext from [Module "io.undertow.core:main"

    Minnie kang Newbie

      Hello, I'm newbie of WildFly..

       

      I installed pinpoint-agent, and set pinpoint bootstrap as below, to start up together.(wildfly,pinpoint agent)

       

      and I deployed a application that uses spring.

      When I call this application with this command,

      curl -d "username=admin&password=1234" -H "Content-Type: application/x-www-form-urlencoded" -X POST http://IP:PORT/spring-boot-base/api/v1/login

       

      Following error occured.

      It seems that Wildfly starts to load 'io.undertow.servlet.handlers.ServletRequestContext' , but failed.

      because, Wildfly try to find class from 'io.undertow.core' . and getting NoClassDefFoundError..

      I think WildFly should find it from  'io.undertow.servlet' , not from 'io.undertow.core'.

       

       

      Questions>

       

      1.To avoid this error, I try to add this 2 lines to module.xml of undertow-core-1.4.0.Final.jar

      <module name='io.undertow.servlet"/>

      <module name=javax.servlet.api"/>

       

      It solved above error, But i think this is not a correct solution.

       

      How to solve this Problem?

       

      2.What is role of undertow-core?