Back Forum Reply New

Validating Interceptor

I am using Payload validator interceptor. I get the following exception any thoughts.. My config looks good.

Caused by: org..beans.factory.BeanCreationExce  ption: Error creating bean with name 'translogValidatingInterceptor' defined in class path resource [com/railinc/emis/ws/services/applicationContext-ws.xml]: Error setting property values; nested exception is org..beans.PropertyBatchUpdateExcep  tion; nested PropertyAccessExceptions (1) are:
PropertyAccessException 1: org..beans.MethodInvocationExceptio  n: Property 'schema' threw exception; nested exception is java.lang.IllegalArgumentException: schema quot;ServletContext resource [/WEB-INF/xsd/Transaction.xsd]quot; does not exit
at org..beans.factory.support.Abstract  AutowireCapableBeanFactory.applyPropertyValues(Abs  tractAutowireCapableBeanFactory.java:1278)
at org..beans.factory.support.Abstract  AutowireCapableBeanFactory.populateBean(AbstractAu  towireCapableBeanFactory.java:1010)
at org..beans.factory.support.Abstract  AutowireCapableBeanFactory.doCreateBean(AbstractAu  towireCapableBeanFactory.java:472)
at org..beans.factory.support.Abstract  AutowireCapableBeanFactory$1.run(AbstractAutowireC  apableBeanFactory.java:409)
at java.security.AccessController.doPrivileged(Access  Controller.java:219)
at org..beans.factory.support.Abstract  AutowireCapableBeanFactory.createBean(AbstractAuto  wireCapableBeanFactory.java:380)
at org..beans.factory.support.Abstract  BeanFactory$1.getObject(AbstractBeanFactory.java:2  64)
at org..beans.factory.support.DefaultS  ingletonBeanRegistry.getSingleton(DefaultSingleton  BeanRegistry.java:221)
at org..beans.factory.support.Abstract  BeanFactory.doGetBean(AbstractBeanFactory.java:261  )
at org..beans.factory.support.Abstract  BeanFactory.getBean(AbstractBeanFactory.java:185)
at org..beans.factory.support.Abstract  BeanFactory.getBean(AbstractBeanFactory.java:164)
at org..beans.factory.support.BeanDefi  nitionValueResolver.resolveReference(BeanDefinitio  nValueResolver.java:269)

hi,

it seems that your xsd is not in the path specified.

Code:
schema quot;ServletContext resource [/WEB-INF/xsd/Transaction.xsd]quot; does not exitit is available in the location . it works fine in my local server . When I deploy to another server it fails.


Originally Posted by spring developerit is available in the location . it works fine in my local server . When I deploy to another server it fails.

What is your local server and another server, are they the same container and  the same env (window/unix) ?
¥
Back Forum Reply New