Announcement Announcement Module
Collapse
No announcement yet.
Arjen Poutsma Please help regarding CommonsXsdSchemaCollection issue Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Arjen Poutsma Please help regarding CommonsXsdSchemaCollection issue

    Hi Arjen Poutsma,

    I am using CommonsXsdSchemaCollection include my xsds in bean but looks like JBoss is trying to look for xsd files in EnterprisePlatform-5.0.1.CR2\jboss-as\bin direcotry which is wrong.


    I am using spring 1.5.9
    xmlschema 1.4.3

    My Webservice bean definition is as below:

    <bean id="CustWorkflow" class="org.springframework.ws.wsdl.wsdl11.DefaultW sdl11Definition">
    <property name="schemaCollection" ref="custSchemaCollection"/>
    <property name="portTypeName" value="CustWorkflow"/>
    <property name="locationUri" value="${webservice.workflow.uri}"/>
    <property name="targetNamespace"
    value="http://www.xyz.com.sg/CustomerWS"/>
    </bean>

    <bean id="custSchemaCollection" class="org.springframework.xml.xsd.commons.Commons XsdSchemaCollection">
    <property name="xsds">
    <list>
    <value>classpath:/com/xyz/abcds/schema/base/Commons.xsd</value>
    <value>classpath:/com/xyz/abcds/schema/base/Master.xsd</value>
    <value>classpath:/com/xyz/abcds/schema/base/Customer.xsd</value>
    <value>classpath:/com/xyz/abcds/schema/base/CustomerWS.xsd</value>
    </list>
    </property>
    <property name="inline" value="true"/>
    </bean>

    Can anybody help me solving this issue as its very urgent . Thanks in advance.

    BTW the order of including the xsd files are corrent i.e. CustomerWS.xsd imports customer.xsd which imports master.xsd which imports commons.xsd.



    Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListe ner
    org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'CustWorkflow' defined in class path resource [com/xyz/abcdsinterface/configuration/applicationContext-webservices-SG.xml]: Cannot resolve reference to bean 'custSchemaCollection' while setting bean property 'schemaCollection'; nested exception is org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'custSchemaCollection' defined in class path resource [com/xyz/abcdsinterface/configuration/applicationContext-webservices-SG.xml]: Invocation of init method failed; nested exception is org.springframework.xml.xsd.commons.CommonsXsdSche maException: Schema [class path resource [com/xyz/abcds/schema/base/Master.xsd]] could not be loaded; nested exception is java.lang.RuntimeException: org.apache.ws.commons.schema.XmlSchemaException: D:\Program Files\EnterprisePlatform-5.0.1.CR2\jboss-as\bin\Commons.xsd
    at org.springframework.beans.factory.support.BeanDefi nitionValueResolver.resolveReference(BeanDefinitio nValueResolver.java:328)
    at org.springframework.beans.factory.support.BeanDefi nitionValueResolver.resolveValueIfNecessary(BeanDe finitionValueResolver.java:106)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.applyPropertyValues(Abs tractAutowireCapableBeanFactory.java:1317)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.populateBean(AbstractAu towireCapableBeanFactory.java:1076)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.doCreateBean(AbstractAu towireCapableBeanFactory.java:517)
    at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:456)
    at org.springframework.beans.factory.support.Abstract BeanFactory$1.getObject(AbstractBeanFactory.java:2 91)
    at org.springframework.beans.factory.support.DefaultS ingletonBeanRegistry.getSingleton(DefaultSingleton BeanRegistry.java:222)
    at org.springframework.beans.factory.support.Abstract BeanFactory.doGetBean(AbstractBeanFactory.java:288 )
    at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:190)
    at org.springframework.beans.factory.support.DefaultL istableBeanFactory.preInstantiateSingletons(Defaul tListableBeanFactory.java:574)
    at org.springframework.context.support.AbstractApplic ationContext.finishBeanFactoryInitialization(Abstr actApplicationContext.java:895)
    at org.springframework.context.support.AbstractApplic ationContext.refresh(AbstractApplicationContext.ja va:425)
    at org.springframework.web.context.ContextLoader.crea teWebApplicationContext(ContextLoader.java:261)
    at org.springframework.web.context.ContextLoader.init WebApplicationContext(ContextLoader.java:192)
    at org.springframework.web.context.ContextLoaderListe ner.contextInitialized(ContextLoaderListener.java: 47)
    at org.apache.catalina.core.StandardContext.listenerS tart(StandardContext.java:3910)
    at org.apache.catalina.core.StandardContext.start(Sta ndardContext.java:4389)
    at org.jboss.web.tomcat.service.deployers.TomcatDeplo yment.performDeployInternal(TomcatDeployment.java: 310)
Working...
X