Results 1 to 4 of 4

Thread: Spring WS/Castor Error

  1. #1
    Join Date
    Oct 2007
    Posts
    2

    Default Spring WS/Castor Error

    Hi

    My AbstractMarshallingEndpoint uses CastorMarshaller for marshalling and unmarshalling. To facilitate this I use a mapping.xml. I got the following error when I to access the webservice

    *****************************
    [Servlet Error]-[EdevService]: org.springframework.beans.factory.BeanDefinitionSt oreException: Error registering bean with name 'edevMarshaller' defined in ServletContext resource [/WEB-INF/EdevService-servlet.xml]: Class that bean class [org.springframework.oxm.castor.CastorMarshaller] depends on not found; nested exception is java.lang.NoClassDefFoundError: javax/xml/stream/util/XMLEventConsumer
    *****************************

    The version of JDK is 1.4, and I am not sure if it comes with XMLEventConsumer class. I am also not able to find if such dependency exist for Castor to work with version of JDK above 1.4.

    Any help would be appreciated.

    Thanks
    Pradeep

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

    Default

    That class is found in the stax jar, available here: http://repo.mergere.com/maven2/stax/...-api-1.0.1.jar
    Arjen Poutsma

    Spring Web Services Dev Lead
    Please read the FAQ

  3. #3
    Join Date
    Oct 2007
    Posts
    2

    Default

    Quote Originally Posted by Arjen Poutsma View Post
    That class is found in the stax jar, available here: http://repo.mergere.com/maven2/stax/...-api-1.0.1.jar
    Hi Arjen

    Thanks for the reply. I realised lately about the dependencies of spring-ws from the website. Can you please inform if the current spring-ws version can work without issues with spring 1.0. The dependencies mention that spring-ws need spring 2.0.6 for compiling and running.

    The issue that I'm facing is to web-service-enable a function of our existing web application which was built a few years using spring 1.0

    Appreciate your help, as meeting pre requisites are important to get things started in the right manner rather than panicking at later stage

    Regards
    Pradeep

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

    Default

    Spring-WS also runs (and is tested on) on Spring 1.2.9. Not sure about Spring 1.0, though, I haven't tested it.
    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
  •