[SWS-467] Issues while generating of WSDL using SpringWS1.5 and spring-core2.0 Created: 19/Dec/08  Updated: 04/May/12  Resolved: 19/Dec/08

Status: Closed
Project: Spring Web Services
Component/s: Core
Affects Version/s: 1.5.1
Fix Version/s: 1.5.6

Type: Bug Priority: Blocker
Reporter: Amerish Kesar Assignee: Arjen Poutsma
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SWS-459 Spring 1.5.x should depend on Spring ... Closed

 Description   

Hi,

We are trying to generate the WSDL from XSD using DynamicWSDL of springws1.5 with Spring2.0. We are getting the following error:
java.lang.NoSuchMethodError: getURI Caused by: org.springframework.beans.factory.BeanCreationException
defined in ServletContext resource [/WEB-INF/spring-ws-servlet.xml]: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: getURI Caused by: java.lang.NoSuchMethodError: getURI at org.springframework.xml.sax.SaxUtils.getSystemId(Lorg.springframework.core.io.Resource;)Ljava.lang.String;(SaxUtils.java:52)
at org.springframework.xml.sax.SaxUtils.createInputSource(Lorg.springframework.core.io.Resource;)Lorg.xml.sax.InputSource;(SaxUtils.java:45)
at org.springframework.xml.xsd.SimpleXsdSchema.loadSchema(Ljavax.xml.parsers.DocumentBuilder;)V(SimpleXsdSchema.java:113)
at org.springframework.xml.xsd.SimpleXsdSchema.afterPropertiesSet()V(SimpleXsdSchema.java:109)

It will be great if you let us know a way to generate the WSDL within Spring2.0 and SpringWS1.5?

Thanks and Regards
Amerish



 Comments   
Comment by Arjen Poutsma [ 19/Dec/08 ]

Already fixed in SVN!

Comment by Amerish Kesar [ 20/Dec/08 ]

Hi Arjen,

When can we use this subversion?

We tried using 1.5.6 jars (spring-ws-1.5.6-SNAPSHOT-all.jar and spring-ws-core-1.5.6-20081219.020020-20.jar). Is there any other jar which we need to place.

I want this to be done urgently.

Thanks and Regards
Amerish

Comment by Tareq Abedrabbo [ 21/Dec/08 ]

There was an issue with the snapshot builds. Now that the issue is fixed, would you please try a recent snapshot to see if this fixes the issue for you?

Comment by Amerish Kesar [ 22/Dec/08 ]

This has not fixed the issue. Now I am getting different error as java.lang.NoSuchMethodError: toURI

I have very less time to resolve this. Please help us since our functionality is completely dependent on this.

Regards
Amerish

Comment by Amerish Kesar [ 22/Dec/08 ]

here is the detailed error message:-

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'hmc' defined in ServletContext resource [/WEB-INF/spring-ws-servlet.xml]: Cannot create inner bean 'org.springframework.ws.wsdl.wsdl11.builder.XsdBasedSoap11Wsdl4jDefinitionBuilder#65b1b0' while setting bean property 'builder'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.ws.wsdl.wsdl11.builder.XsdBasedSoap11Wsdl4jDefinitionBuilder#65b1b0' defined in ServletContext resource [/WEB-INF/spring-ws-servlet.xml]: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: toURI Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.ws.wsdl.wsdl11.builder.XsdBasedSoap11Wsdl4jDefinitionBuilder#65b1b0' defined in ServletContext resource [/WEB-INF/spring-ws-servlet.xml]: Invocation of init method failed; nested exception is java.lang.NoSuchMethodError: toURI Caused by: java.lang.NoSuchMethodError: toURI at org.springframework.xml.sax.SaxUtils.getSystemId(Lorg.springframework.core.io.Resource;)Ljava.lang.String;(SaxUtils.java:53)
at org.springframework.xml.sax.SaxUtils.createInputSource(Lorg.springframework.core.io.Resource;)Lorg.xml.sax.InputSource;(SaxUtils.java:46)
at org.springframework.ws.wsdl.wsdl11.builder.XsdSchemaHelper.(Lorg.springframework.core.io.Resource;)V(XsdSchemaHelper.java:79)
at org.springframework.ws.wsdl.wsdl11.builder.XsdBasedSoap11Wsdl4jDefinitionBuilder.afterPropertiesSet()V(XsdBasedSoap11Wsdl4jDefinitionBuilder.java:213)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(Ljava.lang.String;Ljava.lang.Object;Lorg.springframework.beans.factory.support.RootBeanDefinition;)V(AbstractAutowireCapableBeanFactory.java:1062)

Comment by Tareq Abedrabbo [ 22/Dec/08 ]

Could you post the exact version of Spring and the Jdk you are using. I think your issue is related to using Jdk 1.4...

Comment by Amerish Kesar [ 22/Dec/08 ]

yah, I guess so..

We are using Spring-core2.0, Spring-ws1.5.6 and Java1.4

Please suggest, is there a way to solve this?

Regards
Amerish

Comment by Arjen Poutsma [ 04/May/12 ]

Closing old issues

Generated at Tue Dec 12 16:09:32 UTC 2017 using JIRA 6.4.14#64029-sha1:ae256fe0fbb912241490ff1cecfb323ea0905ca5.