We are trying to port a working JSF (MyFaces)/Spring/Hibernate application to WebSphere. We originally put all of the library jars into the root of the EAR. After configuring WebSphere data sources and installing the application, we thought we had everything working. But, some of our web pages were not working "right". We found out that this was due to the fact that WebSphere 6.1 ties Sun's JSF RI into their web container. Reference: http://wiki.apache.org/myfaces/Websphere_Installation
Because of that, the app was using the Sun's RI and not MyFaces jars. To get around this, we put the 'web tier' libraries into WEB-INF/lib and changed WebSphere's module classloader policy to application first. Now, when the application server starts, the following exception is thrown:
[8/6/07 15:29:35:241 EDT] 0000001e SystemOut O 2007-08-06 15:29:34,897 ERROR [WebContainer : 1] (StartupServletContextListener.java:96, initFaces) - Error initializing ServletContext
java.lang.IllegalArgumentException: Class org.springframework.web.jsf.DelegatingVariableReso lver is no javax.faces.el.VariableResolver
We realize that this is not actually a Spring issue, but more of a configuration problem. But we were wondering if anybody on this forum had some insight into this exception, and what we might do to get around it in a WebSphere 6.1 environment.
Thanks,
Bijou


Reply With Quote

