2 Replies Latest reply on Jul 18, 2016 4:50 PM by tgunter

    java.lang.NoClassDefFoundError: org/apache/el/ExpressionFactoryImpl

    nilgadia

      Hi

        I am migrating my application from JBOSS AS7 to WildFly8.

        While deploying I am getting following error.

       

      Context initialization failed: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'tilesConfigurer' defined in ServletContext resource [/WEB-INF/xxx-servlet.xml]: Invocation of init method failed; nested exception is java.lang.NoClassDefFoundError: org/apache/el/ExpressionFactoryImpl

      Caused by: java.lang.NoClassDefFoundError: org/apache/el/ExpressionFactoryImpl

      Caused by: java.lang.ClassNotFoundException: org.apache.el.ExpressionFactoryImpl from [Module "deployment.XXXEar.ear.XXXWeb.war:main" from Service Module Loader]


      I added Jbossweb-7.5.10.Final jar inside WildFlyHome%\modules\system\layers\base\org\jboss\as\web\main and my module.xml


      <module xmlns="urn:jboss:module:1.3" name="org.jboss.as.web">
          <properties>
              <property name="jboss.api" value="private"/>
          </properties>

          <resources>
              <resource-root path="wildfly-web-8.2.1.Final.jar"/>
        <resource-root path="jbossweb-7.5.10.Final.jar"/>
        </resources>

          <dependencies>
              <module name="javax.api"/>
              <module name="org.jboss.jandex"/>
              <module name="org.jboss.staxmapper"/>
              <module name="org.jboss.as.controller"/>
              <module name="org.jboss.modules"/>
              <module name="org.jboss.logging"/>
              <module name="sun.jdk"/>
              <module name="com.sun.jsf-impl"/>
              <module name="javax.annotation.api"/>   
              <module name="javax.faces.api"/>
              <module name="javax.security.auth.message.api"/>
              <module name="javax.servlet.api"/>
              <module name="javax.servlet.jsp.api"/>
              <module name="org.jboss.as.ee"/>
              <module name="org.jboss.as.naming"/>
              <module name="org.jboss.as.network"/>
              <module name="org.jboss.as.security"/>
              <module name="org.jboss.as.server"/>
              <module name="org.jboss.as.threads"/>
              <module name="org.jboss.invocation"/>
              <module name="org.jboss.marshalling"/>
              <module name="org.jboss.metadata"/> 
              <module name="org.jboss.msc"/>
              <module name="org.jboss.threads"/>
              <module name="org.jboss.vfs"/>
              <module name="org.jboss.common-core"/>
              <module name="org.picketbox"/>
              <module name="javax.security.jacc.api"/>
          </dependencies>
      </module>

       

      still I am getting error.

       

      Kind Regards,

      Nilgadia