JSF html component on WebSphere 7.0

Posted by Mike Schall on Stack Overflow See other posts from Stack Overflow or by Mike Schall
Published on 2010-03-18T21:25:42Z Indexed on 2010/03/18 21:31 UTC
Read the original article Hit count: 801

Filed under:
|

We are in the process of upgrading to WebSphere 7.0 on Windows 2008 R2. Our applications currently run on WebSphere 6.1 on Windows 2003.

We use custom controls we wrote using JSF 1.1 in our applications. Our controls seem to render and interact fine, however whenever we use a JSF HTML component such as:

<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
...
<h:graphicImage url="#{MenuBean.bannerImagePath}" />

We get the following error:

com.ibm.ws.jsp.JspCoreException: Unable to convert string '#{MenuBean.bannerImagePath}' to class javax.el.ValueExpression for attribute url: java.lang.IllegalArgumentException: Property Editor not registered with the PropertyEditorManager 
com.ibm.ws.jsp.JspCoreException: Unable to convert string '#{MenuBean.bannerImagePath}' to class javax.el.ValueExpression for attribute url: java.lang.IllegalArgumentException: Property Editor not registered with the PropertyEditorManager
    at org.apache.jasper.runtime.JspRuntimeLibrary.getValueFromPropertyEditorManager(JspRuntimeLibrary.java:939)
    at com.ibm._jsp._dashboard._jspx_meth_h_graphicImage_0(_dashboard.java:136)
    at com.ibm._jsp._dashboard._jspx_meth_f_view_0(_dashboard.java:436)
    at com.ibm._jsp._dashboard._jspService(_dashboard.java:109)
    at com.ibm.ws.jsp.runtime.HttpJspBase.service(HttpJspBase.java:98)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:831)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1583)
    at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1523)

I have found an article on IBM's website giving a possible fix: http://www-01.ibm.com/support/docview.wss?uid=swg21318801

However I have removed the specified jars and am still receiving the error message. Again our custom controls seem to work fine under WebSphere 7's JSF 1.2.

Thanks for any help you can provide. Mike

© Stack Overflow or respective owner

Related posts about jsf

Related posts about websphere