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

Spring Web Services does not seem to work with Castor 1.2


    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0.3
    • Fix Version/s: 1.5.1
    • Component/s: OXM
    • Labels:


      As brought up in the forum at http://forum.springframework.org/showthread.php?t=49583, it looks like as of Castor 1.2, castor has changed the way their XMLClassDescriptorResolver behaves that is incompatible with the way CastorMarshaller.java is using it.

      While loading the spring config you'll get the following exception:

      Caused by: java.lang.NullPointerException
      at org.exolab.castor.xml.util.XMLClassDescriptorResolverImpl.setMappingLoader(XMLClassDescriptorResolverImpl.java:143)
      at org.springframework.oxm.castor.CastorMarshaller.createClassDescriptorResolver(CastorMarshaller.java:325)

      I think spring-ws's CastorMarshaller may need to change to use Castor's XMLContext instead of the resolver directly and when creating castor's Marshaller/Unmarshaller. I was able to do this with local changes and it works fine, but that would probably break pre-1.2 Castor so the real framework change would likely involve a bit more.

        Issue Links


          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open In Progress In Progress
          75d 4h 56m 1 Arjen Poutsma 01/May/08 9:22 PM
          In Progress In Progress Resolved Resolved
          12h 55m 1 Arjen Poutsma 02/May/08 10:18 AM
          Resolved Resolved Closed Closed
          3d 11h 2m 1 Arjen Poutsma 05/May/08 9:20 PM


            • Assignee:
              arjen.poutsma Arjen Poutsma
              jim Jim Cummings
            • Votes:
              7 Vote for this issue
              7 Start watching this issue


              • Created: