org.apache.el.MethodExpressionImpl class not found when migrating to JBoss EAP 6

Solution Unverified - Updated -

Issue

We were migrating an application to jboss. The following exception is thrown:

ERROR [org.ajax4jsf.resource.ResourceBuilderImpl] (http-localhost/127.0.0.1:8080-4) Data class for restore not found: java.lang.ClassNotFoundException: org.apache.el.MethodExpressionImpl from [Module "deployment.myapp.ear:main" from Service Module Loader]
at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)

This class org.apache.el.MethodExpressionImpl is found in the following jboss module: org.jboss.as.web

The problem was solved when this module was added in the file jboss-deployment-structure.xml. Why do I need to add this module in jboss-deployment-structure.xml if this module in specified as extensions in my standalone.xml?

Environment

  • JBoss Enterprise Application Platform (EAP) 6

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.