Topic
  • No replies
sansir
sansir
3 Posts

Pinned topic JSF2 Jboss ExpressionFactory Websphere 8 throws ClassNotFoundException

‏2013-03-19T09:51:35Z |
We wanted to configure JBoss ExpressionFactory for the JSF 2 Application which is running on the Websphere 8 app server. We did the following.
1. Configure web.xml as below

<context-param> <param-name>org.apache.myfaces.EXPRESSION_FACTORY</param-name> <param-value>org.jboss.el.ExpressionFactoryImpl</param-value> </context-param>


2. Enabled the logging for the myfaces at all level

3. I tried placing the jboss el jar

jboss-el-2.0.1.GA.jar
at following places

web-inf/lib
ear/lib
<application server>/lib/ext

In all the cases, I get the following error

[3/18/13 21:23:14:298 IST] 0000000d AbstractFaces 3   Initializing MyFaces [3/18/13 21:23:14:298 IST] 0000000d AbstractFaces 1   Attempting to load the ExpressionFactory implementation you
've specified: 'org.jboss.el.ExpressionFactoryImpl
'. [3/18/13 21:23:14:298 IST] 0000000d AbstractFaces 1   An error occured 

while instantiating a 

new ExpressionFactory. Attempted to load 

class 
'org.jboss.el.ExpressionFactoryImpl'. java.lang.ClassNotFoundException: org.jboss.el.ExpressionFactoryImpl at java.lang.Class.forNameImpl(Native Method) at java.lang.Class.forName(Class.java:132) at org.apache.myfaces.webapp.AbstractFacesInitializer.loadExpressionFactory(AbstractFacesInitializer.java:364) at org.apache.myfaces.webapp.AbstractFacesInitializer.getUserDefinedExpressionFactory(AbstractFacesInitializer.java:349) at org.apache.myfaces.webapp.Jsp21FacesInitializer.initContainerIntegration(Jsp21FacesInitializer.java:67) at org.apache.myfaces.webapp.AbstractFacesInitializer.initFaces(AbstractFacesInitializer.java:136) at org.apache.myfaces.webapp.StartupServletContextListener.contextInitialized(StartupServletContextListener.java:111) at com.ibm.ws.webcontainer.webapp.WebApp.notifyServletContextCreated(WebApp.java:1649) at com.ibm.ws.webcontainer.webapp.WebAppImpl.initialize(WebAppImpl.java:410) at com.ibm.ws.webcontainer.webapp.WebGroupImpl.addWebApplication(WebGroupImpl.java:88) at com.ibm.ws.webcontainer.VirtualHostImpl.addWebApplication(VirtualHostImpl.java:169) at com.ibm.ws.webcontainer.WSWebContainer.addWebApp(WSWebContainer.java:748) at com.ibm.ws.webcontainer.WSWebContainer.addWebApplication(WSWebContainer.java:633)


Not able to understand why the org.jboss.el.ExpressionFactoryImpl is not found. I very much confirmed this class exists and wrote a seperate java class to test if this could be reflectively loaded. Any help would be highly appriciated...

Thanks.