Did you add getters and setters for this service as well?  If so, you
probably need to remove the @spring.validator from the set method.

Matt

On 11/28/06, Man-Chi Leung <[EMAIL PROTECTED]> wrote:
hi,

i always got this validator error.

the only thing I changed is to add a new Set of Service class as field
to User.java:
        protected Set<Service> services = new HashSet<Service>(); // required

sorry that, I am not an expert in Spring. pls advise

~thinkboy

==exception===
[platform] INFO [http-8080-Processor25] [/platform].log(646) | Loading
WebApplicationContext for Spring FrameworkServlet 'action'
[platform] ERROR [http-8080-Processor25]
DispatcherServlet.initServletBean(229) | Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating
bean with name 'userFormController' defined in ServletContext resource
[/WEB-INF/action-servlet.xml]: Initialization of bean failed; nested
exception is java.lang.IllegalArgumentException: Validator
[EMAIL PROTECTED] does
not support command class [com.example.myapp.model.User]
Caused by:
java.lang.IllegalArgumentException: Validator
[EMAIL PROTECTED] does
not support command class [com.example.myapp.model.User]
        at
org.springframework.web.servlet.mvc.BaseCommandController.initApplicationContext(BaseCommandController.java:304)





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




--
http://raibledesigns.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to