You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Martin Dubuc <ma...@gmail.com> on 2006/11/29 17:39:21 UTC

Problem with JSF 1.2 converters in Tomcat 6.0.2

There seems to be a problem with Converter subclasses when running a
JSF 1.2 Web app inside Tomcat 6.0.2. This problem can be reproduced by
running the JSF car demo Web app that comes with the JSF 1.2
distribution. To reproduce, in the car demo startup page, choose
locale (click English for instance), then click More, then Buy, then
Buy again in the choice confirmation page. The last Buy will cause a
page submission and when invoking the converter on that page, the
following exception will be raised:

org.apache.jasper.JasperException: /customerInfo.jsp(157,0) Cannot
coerce value (creditCardConverter) to type
(javax.faces.convert.Converter) for attribute converter.
	org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
	org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:406)
	org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:255)
	org.apache.jasper.compiler.Validator$ValidateVisitor.checkXmlAttributes(Validator.java:1080)
	org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:818)
	org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1507)
	org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2336)
	org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2386)
	org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:837)
	org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1507)
	org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2336)
	org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2386)
	org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:837)
	org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1507)
	org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2336)
	org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2386)
	org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:837)
	org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1507)
	org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2336)
	org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2386)
	org.apache.jasper.compiler.Validator$ValidateVisitor.visit(Validator.java:837)
	org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1507)
	org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2336)
	org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2386)
	org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2392)
	org.apache.jasper.compiler.Node$Root.accept(Node.java:489)
	org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2336)
	org.apache.jasper.compiler.Validator.validate(Validator.java:1679)
	org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:178)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:306)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
	org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
	org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:314)
	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)
	com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:413)
	com.sun.faces.application.ViewHandlerImpl.executePageToBuildView(ViewHandlerImpl.java:480)
	com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:125)
	com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:133)
	com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:244)
	com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:140)
	javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Re: Problem with JSF 1.2 converters in Tomcat 6.0.2

Posted by Martin Dubuc <ma...@gmail.com>.
I downloaded a snapshot of the sources today and have verified that
the converter problem is solved. The page that uses a converter in
jsf-cardemo works fine now.

Thanks.

Martin

On 11/29/06, Remy Maucherat <re...@apache.org> wrote:
> Martin Dubuc wrote:
> > There seems to be a problem with Converter subclasses when running a
> > JSF 1.2 Web app inside Tomcat 6.0.2. This problem can be reproduced by
> > running the JSF car demo Web app that comes with the JSF 1.2
> > distribution. To reproduce, in the car demo startup page, choose
> > locale (click English for instance), then click More, then Buy, then
> > Buy again in the choice confirmation page. The last Buy will cause a
> > page submission and when invoking the converter on that page, the
> > following exception will be raised:
>
> I relaxed the check in the CVS, so you can try again.
>
> Rémy
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: dev-help@tomcat.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org


Re: Problem with JSF 1.2 converters in Tomcat 6.0.2

Posted by Remy Maucherat <re...@apache.org>.
Martin Dubuc wrote:
> There seems to be a problem with Converter subclasses when running a
> JSF 1.2 Web app inside Tomcat 6.0.2. This problem can be reproduced by
> running the JSF car demo Web app that comes with the JSF 1.2
> distribution. To reproduce, in the car demo startup page, choose
> locale (click English for instance), then click More, then Buy, then
> Buy again in the choice confirmation page. The last Buy will cause a
> page submission and when invoking the converter on that page, the
> following exception will be raised:

I relaxed the check in the CVS, so you can try again.

Rémy

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org