Author: dkulp
Date: Mon Jun 2 10:40:29 2008
New Revision: 662495
URL: http://svn.apache.org/viewvc?rev=662495&view=rev
Log:
Merged revisions 661909 via svnmerge from
https://svn.apache.org/repos/asf/cxf/trunk
........
r661909 | bimargulies | 2008-05-30 19:06:53 -0400 (Fri, 30 May 2008) | 3 lines
Throw an informative-ish exception when someone tries to use a Holder
type in an interface with the plain RFSB.
........
Modified:
cxf/branches/2.0.x-fixes/ (props changed)
cxf/branches/2.0.x-fixes/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/ReflectionServiceFactoryBean.java
cxf/branches/2.0.x-fixes/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/SimpleMessages.properties
Propchange: cxf/branches/2.0.x-fixes/
------------------------------------------------------------------------------
Binary property 'svnmerge-integrated' - no diff available.
Modified:
cxf/branches/2.0.x-fixes/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/ReflectionServiceFactoryBean.java
URL:
http://svn.apache.org/viewvc/cxf/branches/2.0.x-fixes/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/ReflectionServiceFactoryBean.java?rev=662495&r1=662494&r2=662495&view=diff
==============================================================================
---
cxf/branches/2.0.x-fixes/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/ReflectionServiceFactoryBean.java
(original)
+++
cxf/branches/2.0.x-fixes/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/ReflectionServiceFactoryBean.java
Mon Jun 2 10:40:29 2008
@@ -952,6 +952,12 @@
mpi.setConcreteName(qname);
continue;
} else {
+ if (null == mpi.getTypeQName()) {
+ throw new ServiceConstructionException(new
Message("UNMAPPABLE_PORT_TYPE", LOG,
+
method.getDeclaringClass().getName(),
+
method.getName(),
+
mpi.getName()));
+ }
el.setSchemaTypeName(mpi.getTypeQName());
mpi.setXmlSchema(el);
mpi.setConcreteName(qname);
Modified:
cxf/branches/2.0.x-fixes/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/SimpleMessages.properties
URL:
http://svn.apache.org/viewvc/cxf/branches/2.0.x-fixes/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/SimpleMessages.properties?rev=662495&r1=662494&r2=662495&view=diff
==============================================================================
---
cxf/branches/2.0.x-fixes/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/SimpleMessages.properties
(original)
+++
cxf/branches/2.0.x-fixes/rt/frontend/simple/src/main/java/org/apache/cxf/service/factory/SimpleMessages.properties
Mon Jun 2 10:40:29 2008
@@ -26,3 +26,5 @@
other configuration. (serviceClass/implementorClass attributes on the
endpoint/server spring config entry)
REFERENCE_TO_UNDEFINED_TYPE = Schema element {0} references undefined type {1}
for service {2}.
COULD_NOT_FIND_PART = Could not find a message part matching name {0}.
Possible values are {1}.
+UNMAPPABLE_PORT_TYPE= Service class {0} method {1} part {2} cannot be mapped
to schema. Check for use of a JAX-WS-specific type \
+ without the JAX-WS service factory bean.
\ No newline at end of file