0 Replies Latest reply on Apr 26, 2016 2:10 AM by valsaraj viswanathan

    java.lang.NoClassDefFoundError: org/apache/http/HttpRequest in wildfly

    valsaraj viswanathan Master

      Hi,

       

      I migrated from JBoss-4.2.2 to wildfly-8.2. I am getting error "Caused by: java.lang.NoClassDefFoundError: org/apache/http/HttpRequest" at run time from the ejb timer code in application. But my ear contains ejb.jar with jar file jakarta-httpcore-4.0-alpha1.jar. I wonder why this is not available at run time since it is bundled in the ejb.jar and code from ejb module thrown this error.

      Caused by: java.lang.ClassNotFoundException: org.apache.http.HttpRequest from [Module "deployment.app.ear.appEJB.jar:main" from Service Module Loader]

        at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:213) [jboss-modules.jar:1.3.3.Final]

        at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:459) [jboss-modules.jar:1.3.3.Final]

        at org.jboss.modules.ConcurrentClassLoader.performLoadClassChecked(ConcurrentClassLoader.java:408) [jboss-modules.jar:1.3.3.Final]

        at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:389) [jboss-modules.jar:1.3.3.Final]

        at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:134) [jboss-modules.jar:1.3.3.Final]

        ... 71 more

       

      Please help!

       

      Thank you!