Bug 1034539

Summary: WebDAV not working
Product: [Community] PressGang CCMS Reporter: Matthew Casperson <mcaspers>
Component: REST-APIAssignee: Matthew Casperson <mcaspers>
Status: CLOSED CURRENTRELEASE QA Contact:
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 1.2CC: cbredesen, lnewson
Target Milestone: ---   
Target Release: 1.3   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-12-03 22:16:16 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Matthew Casperson 2013-11-26 04:37:28 UTC
Exception is being thrown:

javax.xml.bind.MarshalException
 - with linked exception:
[com.sun.istack.SAXException2: class net.java.dev.webdav.jaxrs.xml.properties.ResourceType nor any of its super class is known to this context.
javax.xml.bind.JAXBException: class net.java.dev.webdav.jaxrs.xml.properties.ResourceType nor any of its super class is known to this context.]

Comment 1 Matthew Casperson 2013-11-26 04:38:13 UTC
The fix is to manually register the @Provider win web.xml with

<context-param>
  <param-name>resteasy.providers</param-name>
  <param-value>net.java.dev.webdav.jaxrs.xml.WebDavContextResolver</param-value>
</context-param>

Comment 2 Matthew Casperson 2013-11-26 04:38:47 UTC
The fix is on the dev server.

Comment 3 Lee Newson 2013-11-26 05:07:28 UTC
Verified that WebDAV now works.

Just a minor change to this however, it's now configured in the JaxRsActivator like the rest of the providers/interceptors just so we are using a consistent method of defining RESTEasy providers, interceptors, etc...