Results 1 to 2 of 2

Thread: Auto wsdl generation problem

  1. #1

    Default Auto wsdl generation problem

    Hi,
    I keep getting the following error on Tomcat whenever i tried to put in the bean definition for auto wsdl generation in my applicationContext-ws.xml file.

    org.springframework.beans.factory.BeanDefinitionSt oreException: Error registerin
    g bean with name 'orderWebService' defined in class path resource [org/springf
    ramework/ws/samples/airline/ws/applicationContext-ws.xml]: Could not parse inner
    bean definition; nested exception is org.springframework.beans.factory.BeanDefi
    nitionStoreException: Error registering bean with name '' defined in class path
    resource [org/springframework/ws/samples/airline/ws/applicationContext-ws.xml]:
    Class that bean class [org.springframework.ws.wsdl.wsdl11.builder.XsdBase dSoap11
    Wsdl4jDefinitionBuilder] depends on not found; nested exception is java.lang.NoC
    lassDefFoundError: javax/wsdl/WSDLException

    The following is my bean definition:

    <bean id="messageWebService" class="org.springframework.ws.wsdl.wsdl11.DynamicW sdl11Definition">
    <property name="builder">
    <bean class="org.springframework.ws.wsdl.wsdl11.builder. XsdBasedSoap11Wsdl4jDefinitionBuilder">
    <property name="schema" value="c:/MessageWebService.xsd"/>
    <property name="portTypeName" value="MessageWebService"/>
    <property name="locationUri" value="http://localhost:8080/messageService/"/>
    </bean>
    </property>
    </bean>

  2. #2
    Join Date
    Jul 2005
    Location
    Rotterdam, the Netherlands
    Posts
    1,562

    Default

    You need to add wsdl4j.jar to your classpath. It's an optional dependency for Spring-WS, since the WSDL generation is also optional.

    Please, also use [code] tags in the future. Your posts are very hard to read.
    Arjen Poutsma

    Spring Web Services Dev Lead
    Please read the FAQ

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •