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

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

    Comment

    Working...
    X