Author: thomas.diesler(a)jboss.com
Date: 2008-02-25 14:44:59 -0500 (Mon, 25 Feb 2008)
New Revision: 5803
Modified:
stack/native/trunk/src/main/java/org/jboss/ws/metadata/builder/jaxws/JAXWSWebServiceMetaDataBuilder.java
Log:
[JBWS-1861] Improve exception message on invalid @WebService usage on SEI
Modified:
stack/native/trunk/src/main/java/org/jboss/ws/metadata/builder/jaxws/JAXWSWebServiceMetaDataBuilder.java
===================================================================
---
stack/native/trunk/src/main/java/org/jboss/ws/metadata/builder/jaxws/JAXWSWebServiceMetaDataBuilder.java 2008-02-25
16:22:35 UTC (rev 5802)
+++
stack/native/trunk/src/main/java/org/jboss/ws/metadata/builder/jaxws/JAXWSWebServiceMetaDataBuilder.java 2008-02-25
19:44:59 UTC (rev 5803)
@@ -328,7 +328,7 @@
throw new WSException("Interface does not have a @WebService annotation:
" + seiName);
if (seiAnnotation.portName().length() > 0 ||
seiAnnotation.serviceName().length() > 0 || seiAnnotation.endpointInterface().length()
> 0)
- throw new
WSException("@WebService[portName,serviceName,endpointInterface] MUST NOT be defined
on: " + seiName);
+ throw new WSException("@WebService cannot have attribute
'portName', 'serviceName', 'endpointInterface' on: " +
seiName);
// Redefine the interface or "PortType" name
name = seiAnnotation.name();
Show replies by date