thanks matt,

I got my problem solved. it has something to do with validation.xml.

ar.. I might mistype somethings which I am not sure. I just revert to
non-exception stage and redo all over step by step. :-P

just FYI, in my new Service.java model. I do have 
/**     
 * @spring.validator type="required"
*/
        public String getName() {
                return name;
        }

btw, when I do $ant clean webdoclet

there is no validation tag for service model inserted to validation.xml.

anyway, i think it is ok. i can do it manually then. just a bit strange

~thinkboy.


Matt Raible-3 wrote:
> 
> 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]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Validator-error%3A-does-not-support-command-class--com....model.User--tf2719071s2369.html#a7594186
Sent from the AppFuse - User mailing list archive at Nabble.com.

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

Reply via email to