myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Werner Punz <werner.p...@gmail.com>
Subject Re: jsf-1.2 RI -> myfaces 1.2: Newbie seeking for help
Date Fri, 20 Jul 2007 15:52:22 GMT
You miss nothing, we basically have some el related problems here
which we do not know which causes this, this bug is basically in the 
same line of other el related bugs we have encountered the last two days

https://issues.apache.org/jira/browse/MYFACES-1682

all of them seem to happen with jsps, as soon as you use
facelets they are gone

all I can say for now is, please, wait for the 1.2.01 release which will 
come very soon. Since I am not the implementor I cannot say if we 
trigger a tomcat bug here or it is a bug in myfaces.

Werner


RobertBln schrieb:
> Hi,
> 
> I'm new to JSF and have managed it to get a very simple Application running
> with jsf-1.2 ri on Tomcat 6.0.13.
> 
> When I try to replace jsf ri with myfaces 1.2, the Result is a
> 
> exception
> 
> javax.servlet.ServletException: Unable to convert string "OK" to class
> "javax.el.ValueExpression" for attribute "value": Property Editor not
> registered with the PropertyEditorManager
> 	javax.faces.webapp.FacesServlet.service(FacesServlet.java:152)
> 
> root cause
> 
> javax.faces.FacesException: Unable to convert string "OK" to class
> "javax.el.ValueExpression" for attribute "value": Property Editor not
> registered with the PropertyEditorManager
> 
> org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:340)
> 
> org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:254)
> 
> org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:41)
> 	org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:132)
> 	javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
> 
> root cause
> 
> org.apache.jasper.JasperException: Unable to convert string "OK" to class
> "javax.el.ValueExpression" for attribute "value": Property Editor not
> registered with the PropertyEditorManager
> 
> org.apache.jasper.runtime.JspRuntimeLibrary.getValueFromPropertyEditorManager(JspRuntimeLibrary.java:887)
> 
> org.apache.jsp.index2_jsp._jspx_meth_h_005fcommandButton_005f0(index2_jsp.java:175)
> 	org.apache.jsp.index2_jsp._jspx_meth_h_005fform_005f0(index2_jsp.java:145)
> 	org.apache.jsp.index2_jsp._jspx_meth_f_005fview_005f0(index2_jsp.java:105)
> 	org.apache.jsp.index2_jsp._jspService(index2_jsp.java:71)
> 	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> 
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
> 	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
> 	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
> 	javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
> 
> org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:334)
> 
> org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:254)
> 
> org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:41)
> 	org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:132)
> 	javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
> 
> =====================================
> Error Log:
> org.apache.jasper.JasperException: Unable to convert string "OK" to class
> "javax.el.ValueExpression" for attribute "value": Property Editor not
> registered with the PropertyEditorManager
>         at
> org.apache.jasper.runtime.JspRuntimeLibrary.getValueFromPropertyEditorManager(JspRuntimeLibrary.java:887)
>         at
> org.apache.jsp.index2_jsp._jspx_meth_h_005fcommandButton_005f0(index2_jsp.java:175)
>         at
> org.apache.jsp.index2_jsp._jspx_meth_h_005fform_005f0(index2_jsp.java:145)
>         at
> org.apache.jsp.index2_jsp._jspx_meth_f_005fview_005f0(index2_jsp.java:105)
>         at org.apache.jsp.index2_jsp._jspService(index2_jsp.java:71)
>         at
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>         at
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
>         at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
>         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>         at
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:654)
>         at
> org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:445)
>         at
> org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:379)
>         at
> org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:292)
>         at
> org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:334)
>         at
> org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:254)
>         at
> org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:41)
>         at
> org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:132)
>         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>         at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
>         at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
>         at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
>         at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
>         at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>         at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261)
>         at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
>         at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581)
>         at
> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
>         at java.lang.Thread.run(Thread.java:619)
> 
> org.apache.jasper.JasperException: Unable to convert string "OK" to class
> "javax.el.ValueExpression" for attribute "value": Property Editor not
> registered with the PropertyEditorManager
>         at
> org.apache.jasper.runtime.JspRuntimeLibrary.getValueFromPropertyEditorManager(JspRuntimeLibrary.java:887)
>         at
> org.apache.jsp.index2_jsp._jspx_meth_h_005fcommandButton_005f0(index2_jsp.java:175)
>         at
> org.apache.jsp.index2_jsp._jspx_meth_h_005fform_005f0(index2_jsp.java:145)
>         at
> org.apache.jsp.index2_jsp._jspx_meth_f_005fview_005f0(index2_jsp.java:105)
>         at org.apache.jsp.index2_jsp._jspService(index2_jsp.java:71)
>         at
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>         at
> org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:393)
>         at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:320)
>         at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:266)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>         at
> org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:654)
>         at
> org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:445)
>         at
> org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:379)
>         at
> org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:292)
>         at
> org.apache.myfaces.context.servlet.ServletExternalContextImpl.dispatch(ServletExternalContextImpl.java:334)
>         at
> org.apache.myfaces.application.jsp.JspViewHandlerImpl.renderView(JspViewHandlerImpl.java:254)
>         at
> org.apache.myfaces.lifecycle.RenderResponseExecutor.execute(RenderResponseExecutor.java:41)
>         at
> org.apache.myfaces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:132)
>         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:138)
>         at
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
>         at
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>         at
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
>         at
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
>         at
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
>         at
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:104)
>         at
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>         at
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:261)
>         at
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
>         at
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:581)
>         at
> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
>         at java.lang.Thread.run(Thread.java:619)
> 
> =====================================
> index2.jsp:
> 
> <%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
> <%@taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
> <%@ page language="java" contentType="text/html; charset=UTF-8"
> pageEncoding="UTF-8"%>
> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
> "http://www.w3.org/TR/html4/loose.dtd">
> <html>
> <head><meta http-equiv="Content-Type" content="text/html;
> charset=UTF-8"></head>
> 
> <body><f:view><h:form>
> 		<h:commandButton value="OK"></h:commandButton>
> </h:form></f:view></body>
> </html>
> 
> =====================================
> web.xml:
> <?xml version="1.0" encoding="UTF-8"?>
> <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns="http://java.sun.com/xml/ns/javaee"
> xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"
> xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
> http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID"
> version="2.5">
>   <display-name>JSPF01</display-name>
>   <welcome-file-list>
>     <welcome-file>index.jsp</welcome-file>
>   </welcome-file-list>
>   <servlet>
>     <servlet-name>Faces Servlet</servlet-name>
>     <servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
>     <load-on-startup>1</load-on-startup>
>   </servlet>
>   <servlet-mapping>
>     <servlet-name>Faces Servlet</servlet-name>
>     <url-pattern>*.jsf</url-pattern>
>   </servlet-mapping>
> </web-app>
> 
> =====================================
> faces-config.xml: 
> 
> <?xml version="1.0" encoding="UTF-8"?>
> 
> <faces-config
>     xmlns="http://java.sun.com/xml/ns/javaee"
>     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>     xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
> http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd"
>     version="1.2">
> </faces-config>
> 
> =====================================
> WEB-INF/lib:
> 
> commons-beanutils-1.7.0.jar  
> commons-codec-1.3.jar        
> commons-collections-3.2.jar  
> commons-digester-1.8.jar   
> commons-discovery-0.4.jar  
> commons-logging-1.1.jar    
> jstl-1.2.jar
> myfaces-api-1.2.0.jar
> myfaces-impl-1.2.0.jar
> 
> =====================================
> 
> What am I missing?
> 
> Many thanks,
> 
> Robert


Mime
View raw message