-
Apr 10th, 2008, 06:20 AM
#1
WSDL generation issue with import on WLS
Hey, and first of all I would first like to express my gratitude to you guys for providing such a good contract-first framework! 
I have an issue with generating wsdl-files with 1.5 release. The imported file is not found when deployed on the WebLogic Server 8.1: (it works fine in Jetty).
<bean id="sc" class="org.springframework.xml.xsd.commons.Commons XsdSchemaCollection">
<property name="xsds">
<list>
<value>/WEB-INF/xsd/PropertyMessages.xsd</value>
</list>
</property>
<property name="inline" value="true" />
</bean>
Where PropertyMessages.xsd has can import of PropertyTypes.xsd:
<xs:import namespace="xxx" schemaLocation="PropertyTypes.xsd">
</xs:import>
But PropertyTypes.xsd is not found. That's what the Norwegian error says in the following stacktrace:
Caused by: org.apache.ws.commons.schema.XmlSchemaException: C:\bea81\testwls\mydomain\PropertyTypes.xsd (Systemet finner ikke angitt fil)
at org.apache.ws.commons.schema.XmlSchemaCollection.r ead(XmlSchemaCollection.java:308)
at org.apache.ws.commons.schema.SchemaBuilder.resolve XmlSchema(SchemaBuilder.java:1884)
at org.apache.ws.commons.schema.SchemaBuilder.handleI mport(SchemaBuilder.java:1620)
at org.apache.ws.commons.schema.SchemaBuilder.handleX mlSchemaElement(SchemaBuilder.java:175)
at org.apache.ws.commons.schema.SchemaBuilder.build(S chemaBuilder.java:82)
at org.apache.ws.commons.schema.XmlSchemaCollection.r ead(XmlSchemaCollection.java:359)
at org.apache.ws.commons.schema.XmlSchemaCollection.r ead(XmlSchemaCollection.java:304)
at org.apache.ws.commons.schema.XmlSchemaCollection.r ead(XmlSchemaCollection.java:315)
at org.springframework.xml.xsd.commons.CommonsXsdSche maCollection.afterPropertiesSet(CommonsXsdSchemaCo llection.java:109)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.invokeInitMethods(Abstr actAutowireCapableBeanFactory.java:1333)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.initializeBean(Abstract AutowireCapableBeanFactory.java:1299)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.doCreateBean(AbstractAu towireCapableBeanFactory.java:463)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory$1.run(AbstractAutowireC apableBeanFactory.java:404)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:375)
at org.springframework.beans.factory.support.Abstract BeanFactory$1.getObject(AbstractBeanFactory.java:2 63)
at org.springframework.beans.factory.support.DefaultS ingletonBeanRegistry.getSingleton(DefaultSingleton BeanRegistry.java:170)
at org.springframework.beans.factory.support.Abstract BeanFactory.doGetBean(AbstractBeanFactory.java:260 )
at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:184)
at org.springframework.beans.factory.support.Abstract BeanFactory.getBean(AbstractBeanFactory.java:163)
at org.springframework.beans.factory.support.BeanDefi nitionValueResolver.resolveReference(BeanDefinitio nValueResolver.java:269)
at org.springframework.beans.factory.support.BeanDefi nitionValueResolver.resolveValueIfNecessary(BeanDe finitionValueResolver.java:104)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.applyPropertyValues(Abs tractAutowireCapableBeanFactory.java:1210)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.populateBean(AbstractAu towireCapableBeanFactory.java:978)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.doCreateBean(AbstractAu towireCapableBeanFactory.java:462)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory$1.run(AbstractAutowireC apableBeanFactory.java:404)
at org.springframework.beans.factory.support.Abstract AutowireCapableBeanFactory.createBean(AbstractAuto wireCapableBeanFactory.java:375)
at org.springframework.beans.factory.support.Abstract BeanFactory$1.getObject(AbstractBeanFactory.java:2 63)
at org.springframework.beans.factory.support.DefaultS ingletonBeanRegistry.getSingleton(DefaultSingleton BeanRegistry.java:170)
It looks for the file in the root of the application server.
Is there a way to solve this? Having it look inside the deployed war-file.
Best regards,
Tor
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules