Announcement Announcement Module
Collapse
No announcement yet.
ValidatingItemProcessor receives NoClassDefFoundError Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • ValidatingItemProcessor receives NoClassDefFoundError

    Hi

    I try to write ValidatingItemProcessor but what i do I receives NoClassDefFoundError


    <step id="validateDeliverableOrders">
    <tasklet >
    <chunk reader="deliverableOrderReader" processor="processor" writer="deliverableOrderWriter" commit-interval="5"/>

    </tasklet>
    </step>

    <bean id="processor" class="org.springframework.batch.item.support.Comp ositeItemProcessor">
    <property name="delegates">
    <list>
    <ref bean="orderProcessor"/>
    <ref bean="validatingItemProcessor"/>
    </list>
    </property>
    </bean>

    <bean id="orderProcessor" class="com.xxx.payments.batch.DeliverableOrderProc essor"/>

    <bean id="validatingItemProcessor" class="org.springframework.batch.item.validator.Va lidatingItemProcessor">
    <constructor-arg ref="validators"/>
    </bean>

    <bean id="validators" class="org.springframework.batch.item.validator.Sp ringValidator">
    <property name="validator">
    <bean id="orderValidator" class="org.springmodules.validation.valang.ValangV alidator">
    <property name="customFunctions">
    <map>
    <entry key="blockadeValidator" value="com.xxx.payments.batch.validator.BlockadeVa lidator" />
    </map>
    </property>
    </bean>
    </property>
    </bean>



    Error creating bean with name 'validateDeliverableOrders': Cannot resolve reference to bean 'deliverableOrderProcessor' while setting bean property 'itemProcessor'; nested exception is org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'deliverableOrderProcessor' defined in class path resource [META-INF/spring/module-context.xml]: Cannot resolve reference to bean 'validatingItemProcessor' while setting bean property 'delegates' with key [1]; nested exception is org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'validatingItemProcessor' defined in class path resource [META-INF/spring/module-context.xml]: Cannot resolve reference to bean 'validators' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'validators' defined in class path resource [META-INF/spring/module-context.xml]: Initialization of bean failed; nested exception is java.lang.NoClassDefFoundError: javax/servlet/ServletContext



    who would like to help, I'm getting stuck, what do I wrong......

    regards
    chrisw098
Working...
X