You are viewing a plain text version of this content. The canonical link for it is here.
Posted to axis-cvs@ws.apache.org by di...@apache.org on 2008/04/29 22:12:02 UTC
svn commit: r652073 - in
/webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/description/impl:
EndpointDescriptionImpl.java HandlerChainsParser.java
Author: dims
Date: Tue Apr 29 12:56:54 2008
New Revision: 652073
URL: http://svn.apache.org/viewvc?rev=652073&view=rev
Log:
add better exception for the bad dom element and a log.debug for the filename/classname
Modified:
webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/description/impl/EndpointDescriptionImpl.java
webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/description/impl/HandlerChainsParser.java
Modified: webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/description/impl/EndpointDescriptionImpl.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/description/impl/EndpointDescriptionImpl.java?rev=652073&r1=652072&r2=652073&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/description/impl/EndpointDescriptionImpl.java (original)
+++ webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/description/impl/EndpointDescriptionImpl.java Tue Apr 29 12:56:54 2008
@@ -70,6 +70,7 @@
import javax.xml.ws.Service;
import javax.xml.ws.ServiceMode;
import javax.xml.ws.WebServiceProvider;
+import javax.xml.ws.WebServiceException;
import javax.xml.ws.handler.PortInfo;
import javax.xml.ws.soap.MTOM;
import javax.xml.ws.soap.MTOMFeature;
@@ -1356,6 +1357,9 @@
}
);
+ if(log.isDebugEnabled()){
+ log.debug("Trying to load file " + handlerFileName + " relative to " + className);
+ }
InputStream is = DescriptionUtils.openHandlerConfigStream(
handlerFileName,
className,
Modified: webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/description/impl/HandlerChainsParser.java
URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/description/impl/HandlerChainsParser.java?rev=652073&r1=652072&r2=652073&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/description/impl/HandlerChainsParser.java (original)
+++ webservices/axis2/trunk/java/modules/metadata/src/org/apache/axis2/jaxws/description/impl/HandlerChainsParser.java Tue Apr 29 12:56:54 2008
@@ -40,6 +40,8 @@
public class HandlerChainsParser {
private static final String JAVA_EE_NS = "http://java.sun.com/xml/ns/javaee";
+ private static final QName QNAME_HANDLER_CHAINS = new QName(JAVA_EE_NS, "handler-chains");
+ private static final QName QNAME_HANDLER_CHAIN = new QName(JAVA_EE_NS, "handler-chain");
private static JAXBContext context;
public HandlerChainsType loadHandlerChains(InputStream in) throws Exception {
@@ -47,7 +49,7 @@
Element el = document.getDocumentElement();
if (!JAVA_EE_NS.equals(el.getNamespaceURI()) ||
!"handler-chains".equals(el.getLocalName())) {
- throw new WebServiceException("Unexpected element. Expected handler-chains element");
+ throw new WebServiceException("Unexpected element {" + el.getNamespaceURI() + "}" + el.getLocalName() + ". Expected " + QNAME_HANDLER_CHAINS + " element");
}
HandlerChainsType handlerChains = new HandlerChainsType();
@@ -57,7 +59,7 @@
el = (Element)node;
if (!JAVA_EE_NS.equals(el.getNamespaceURI()) ||
!el.getLocalName().equals("handler-chain")) {
- throw new WebServiceException("Unexpected element. Expected handler-chain element.");
+ throw new WebServiceException("Unexpected element {" + el.getNamespaceURI() + "}" + el.getLocalName() + ". Expected " + QNAME_HANDLER_CHAIN + " element");
}
handlerChains.getHandlerChain().add(processHandlerChainElement(el));
}
---------------------------------------------------------------------
To unsubscribe, e-mail: axis-cvs-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-cvs-help@ws.apache.org