[
http://jira.jboss.com/jira/browse/JBPORTAL-1939?page=all ]
Thomas Heute resolved JBPORTAL-1939.
------------------------------------
Resolution: Rejected
Not a bug. Please see classloading rules.
It looks like your application embeds JSF libs, while they are already available in JBoss
AS.
Jira is a place to report bugs, not to ask questions, if unsure please start with a
question in forums.
JSF Validator cannot be cast to javax.faces.validator.Validator
----------------------------------------------------------------
Key: JBPORTAL-1939
URL:
http://jira.jboss.com/jira/browse/JBPORTAL-1939
Project: JBoss Portal
Issue Type: Bug
Security Level: Public(Everyone can see)
Affects Versions: Identity-1.0
Environment: JBoss Portal - Identity portlet
Reporter: Alex Kachanov
JBoss portal is using idenityt portlet to regster new users and edit profiles for
existing users
I added new my own JSF validator to the identty portlet which when opened throws the
following exception:
java.lang.ClassCastException: com.kachanov.test004.validators.MyValidator cannot be cast
to javax.faces.validator.Validator
at
org.apache.myfaces.application.ApplicationImpl.createValidator(ApplicationImpl.java:613)
The code of my validator is:
==========================================================
package com.kachanov.test004.validators;
import javax.faces.application.FacesMessage;
import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
import javax.faces.validator.Validator;
import javax.faces.validator.ValidatorException;
public class MyValidator implements Validator {
public void validate(FacesContext arg0, UIComponent arg1, Object arg2) throws
ValidatorException {
System.out.println("testing this validator");
}
}
==========================================================
So please thell me how can it bee that a class that implements Validator cannot be cast
to javax.faces.validator.Validator??????
Is in't it against basic design of Java languages?
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira