Announcement Announcement Module
No announcement yet.
Auto wsdl generation problem Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Auto wsdl generation problem

    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 [ 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=" sdl11Definition">
    <property name="builder">
    <bean class=" XsdBasedSoap11Wsdl4jDefinitionBuilder">
    <property name="schema" value="c:/MessageWebService.xsd"/>
    <property name="portTypeName" value="MessageWebService"/>
    <property name="locationUri" value="http://localhost:8080/messageService/"/>

  • #2
    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.