Uploaded image for project: 'Spring Web Services'
  1. Spring Web Services
  2. SWS-467

Issues while generating of WSDL using SpringWS1.5 and spring-core2.0

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Duplicate
    • Affects Version/s: 1.5.1
    • Fix Version/s: 1.5.6
    • Component/s: Core
    • Labels:
      None

      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

        Issue Links

          Activity

          amerish_kesar Amerish Kesar created issue -
          arjen.poutsma Arjen Poutsma made changes -
          Field Original Value New Value
          Link This issue duplicates SWS-459 [ SWS-459 ]
          Hide
          arjen.poutsma Arjen Poutsma added a comment -

          Already fixed in SVN!

          Show
          arjen.poutsma Arjen Poutsma added a comment - Already fixed in SVN!
          arjen.poutsma Arjen Poutsma made changes -
          Fix Version/s 1.5.6 [ 11141 ]
          Resolution Duplicate [ 3 ]
          Status Open [ 1 ] Resolved [ 5 ]
          Hide
          amerish_kesar Amerish Kesar added a comment -

          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

          Show
          amerish_kesar Amerish Kesar added a comment - 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
          Hide
          tareq Tareq Abedrabbo added a comment -

          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?

          Show
          tareq Tareq Abedrabbo added a comment - 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?
          Hide
          amerish_kesar Amerish Kesar added a comment -

          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

          Show
          amerish_kesar Amerish Kesar added a comment - 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
          Hide
          amerish_kesar Amerish Kesar added a comment -

          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)

          Show
          amerish_kesar Amerish Kesar added a comment - 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)
          Hide
          tareq Tareq Abedrabbo added a comment -

          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...

          Show
          tareq Tareq Abedrabbo added a comment - 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...
          Hide
          amerish_kesar Amerish Kesar added a comment -

          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

          Show
          amerish_kesar Amerish Kesar added a comment - 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
          Hide
          arjen.poutsma Arjen Poutsma added a comment -

          Closing old issues

          Show
          arjen.poutsma Arjen Poutsma added a comment - Closing old issues
          arjen.poutsma Arjen Poutsma made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Resolved Resolved
          3m 17s 1 Arjen Poutsma 19/Dec/08 1:32 AM
          Resolved Resolved Closed Closed
          1232d 5h 30m 1 Arjen Poutsma 04/May/12 7:03 AM

            People

            • Assignee:
              arjen.poutsma Arjen Poutsma
              Reporter:
              amerish_kesar Amerish Kesar
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: