Author: thomas.diesler(a)jboss.com
Date: 2008-02-29 04:55:15 -0500 (Fri, 29 Feb 2008)
New Revision: 5865
Modified:
stack/native/trunk/src/main/java/javax/xml/ws/wsaddressing/W3CEndpointReference.java
Log:
Use standard JAXBContext factory method
Modified:
stack/native/trunk/src/main/java/javax/xml/ws/wsaddressing/W3CEndpointReference.java
===================================================================
---
stack/native/trunk/src/main/java/javax/xml/ws/wsaddressing/W3CEndpointReference.java 2008-02-29
09:26:15 UTC (rev 5864)
+++
stack/native/trunk/src/main/java/javax/xml/ws/wsaddressing/W3CEndpointReference.java 2008-02-29
09:55:15 UTC (rev 5865)
@@ -44,7 +44,6 @@
import javax.xml.ws.EndpointReference;
import javax.xml.ws.WebServiceException;
-import org.jboss.ws.core.jaxws.JAXBContextFactory;
import org.w3c.dom.Element;
/**
@@ -219,7 +218,14 @@
private static JAXBContext getW3CJaxbContext()
{
- return JAXBContextFactory.newInstance().createContext(new Class[] {
W3CEndpointReference.class });
+ try
+ {
+ return JAXBContext.newInstance(new Class[] { W3CEndpointReference.class });
+ }
+ catch (JAXBException ex)
+ {
+ throw new WebServiceException("Cannot obtain JAXB context", ex);
+ }
}
private static class Address
Show replies by date