cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alessio Soldano (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (CXF-5197) No Java extensionType found to represent {http://www.w3.org/2006/05/addressing/wsdl}UsingAddressing
Date Mon, 12 Aug 2013 14:06:47 GMT

    [ https://issues.apache.org/jira/browse/CXF-5197?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13736880#comment-13736880
] 

Alessio Soldano edited comment on CXF-5197 at 8/12/13 2:05 PM:
---------------------------------------------------------------

A bit of debugging revealed that the extensionTypeReg map in javax.wsdl.extensions.ExtensionRegistry
contains a org.apache.cxf.ws.addressing.wsdl.UsingAddressing reference, but that's for '{##default}UsingAddressing'
element, hence the lookup in org.apache.cxf.jaxws.support.JaxWsEndpointImpl:buildWsdlExtensibilities
is failing.

I propose fixing this as follows
{noformat}
Index: api/src/main/java/org/apache/cxf/ws/addressing/wsdl/UsingAddressing.java
===================================================================
--- api/src/main/java/org/apache/cxf/ws/addressing/wsdl/UsingAddressing.java	(revision 1510980)
+++ api/src/main/java/org/apache/cxf/ws/addressing/wsdl/UsingAddressing.java	(working copy)
@@ -33,7 +33,7 @@
 
 @XmlAccessorType(XmlAccessType.FIELD)
 @XmlType(name = "")
-@XmlRootElement(name = "UsingAddressing")
+@XmlRootElement(name = "UsingAddressing", namespace = "http://www.w3.org/2006/05/addressing/wsdl")
 public class UsingAddressing extends TExtensibilityElementImpl {
 
     @XmlAnyAttribute
{noformat}

but I'd appreciate others / Dan's opinion on this as I'm not sure why this is needed now only,
and wonder if this is going to cause any issue given all the supported ws-addressing versions.
                
      was (Author: asoldano):
    A bit of debugging revealed that the extensionTypeReg map in javax.wsdl.extensions.ExtensionRegistry
contains a org.apache.cxf.ws.addressing.wsdl.UsingAddressing reference, but that's for {##default}UsingAddressing
element, hence the lookup in org.apache.cxf.jaxws.support.JaxWsEndpointImpl:buildWsdlExtensibilities
is failing.

I propose fixing this as follows
{noformat}
Index: api/src/main/java/org/apache/cxf/ws/addressing/wsdl/UsingAddressing.java
===================================================================
--- api/src/main/java/org/apache/cxf/ws/addressing/wsdl/UsingAddressing.java	(revision 1510980)
+++ api/src/main/java/org/apache/cxf/ws/addressing/wsdl/UsingAddressing.java	(working copy)
@@ -33,7 +33,7 @@
 
 @XmlAccessorType(XmlAccessType.FIELD)
 @XmlType(name = "")
-@XmlRootElement(name = "UsingAddressing")
+@XmlRootElement(name = "UsingAddressing", namespace = "http://www.w3.org/2006/05/addressing/wsdl")
 public class UsingAddressing extends TExtensibilityElementImpl {
 
     @XmlAnyAttribute
{noformat}

but I'd appreciate others / Dan's opinion on this as I'm not sure why this is needed now only,
and wonder if this is going to cause any issue given all the supported ws-addressing versions.
                  
> No Java extensionType found to represent {http://www.w3.org/2006/05/addressing/wsdl}UsingAddressing
> ---------------------------------------------------------------------------------------------------
>
>                 Key: CXF-5197
>                 URL: https://issues.apache.org/jira/browse/CXF-5197
>             Project: CXF
>          Issue Type: Bug
>          Components: WS-* Components
>            Reporter: Alessio Soldano
>
> Using latest 2.7.7-SNAPSHOT version, I noticed a regression in JBossWS-CXF integration
testsuite since commit 1510980.
> I've a java first endpoint as follows:
> {code}
> @WebService
> (
>    portName = "AddressingServicePort",
>    serviceName = "AddressingService",
>    targetNamespace = "http://www.jboss.org/jbossws/ws-extensions/wsaddressing",
>    endpointInterface = "org.jboss.test.ws.jaxws.samples.wsa.ServiceIface"
> )
> @Addressing(enabled=true, required=true)
> public class ServiceImpl implements ServiceIface
> {
>    ...
> }
> {code}
> during deployment I get the following error in the logs:
> {noformat}
> 11:36:51,504 ERROR [stderr] (MSC service thread 1-7) javax.wsdl.WSDLException: WSDLException:
faultCode=CONFIGURATION_ERROR: No Java extensionType found to represent a '{http://www.w3.org/2006/05/addressing/wsdl}UsingAddressing'
element in the context of a 'javax.wsdl.Binding'.
> 11:36:51,504 ERROR [stderr] (MSC service thread 1-7) 	at javax.wsdl.extensions.ExtensionRegistry.createExtension(ExtensionRegistry.java:350)
> 11:36:51,504 ERROR [stderr] (MSC service thread 1-7) 	at org.apache.cxf.jaxws.support.JaxWsEndpointImpl.buildWsdlExtensibilities(JaxWsEndpointImpl.java:337)
> 11:36:51,505 ERROR [stderr] (MSC service thread 1-7) 	at org.apache.cxf.jaxws.support.JaxWsEndpointImpl.<init>(JaxWsEndpointImpl.java:203)
> 11:36:51,505 ERROR [stderr] (MSC service thread 1-7) 	at org.apache.cxf.jaxws.support.JaxWsServiceFactoryBean.createEndpoint(JaxWsServiceFactoryBean.java:239)
> 11:36:51,505 ERROR [stderr] (MSC service thread 1-7) 	at org.apache.cxf.frontend.AbstractWSDLBasedEndpointFactory.createEndpoint(AbstractWSDLBasedEndpointFactory.java:173)
> 11:36:51,505 ERROR [stderr] (MSC service thread 1-7) 	at org.apache.cxf.frontend.ServerFactoryBean.create(ServerFactoryBean.java:159)
> 11:36:51,505 ERROR [stderr] (MSC service thread 1-7) 	at org.apache.cxf.jaxws.JaxWsServerFactoryBean.create(JaxWsServerFactoryBean.java:211)
> 11:36:51,505 ERROR [stderr] (MSC service thread 1-7) 	at org.apache.cxf.jaxws.EndpointImpl.getServer(EndpointImpl.java:454)
> 11:36:51,506 ERROR [stderr] (MSC service thread 1-7) 	at org.apache.cxf.jaxws.EndpointImpl.doPublish(EndpointImpl.java:334)
> 11:36:51,506 ERROR [stderr] (MSC service thread 1-7) 	at org.jboss.wsf.stack.cxf.deployment.EndpointImpl.doPublish(EndpointImpl.java:66)
> 11:36:51,506 ERROR [stderr] (MSC service thread 1-7) 	at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:251)
> 11:36:51,506 ERROR [stderr] (MSC service thread 1-7) 	at org.apache.cxf.jaxws.EndpointImpl.publish(EndpointImpl.java:537)
> 11:36:51,506 ERROR [stderr] (MSC service thread 1-7) 	at org.jboss.wsf.stack.cxf.configuration.NonSpringBusHolder.configure(NonSpringBusHolder.java:117)
> 11:36:51,506 ERROR [stderr] (MSC service thread 1-7) 	at org.jboss.wsf.stack.cxf.deployment.aspect.BusDeploymentAspect.startDeploymentBus(BusDeploymentAspect.java:129)
> 11:36:51,507 ERROR [stderr] (MSC service thread 1-7) 	at org.jboss.wsf.stack.cxf.deployment.aspect.BusDeploymentAspect.start(BusDeploymentAspect.java:67)
> 11:36:51,507 ERROR [stderr] (MSC service thread 1-7) 	at org.jboss.as.webservices.deployers.AspectDeploymentProcessor.deploy(AspectDeploymentProcessor.java:75)
> 11:36:51,507 ERROR [stderr] (MSC service thread 1-7) 	at org.jboss.as.server.deployment.DeploymentUnitPhaseService.start(DeploymentUnitPhaseService.java:159)
> 11:36:51,507 ERROR [stderr] (MSC service thread 1-7) 	at org.jboss.msc.service.ServiceControllerImpl$StartTask.startService(ServiceControllerImpl.java:1944)
> 11:36:51,507 ERROR [stderr] (MSC service thread 1-7) 	at org.jboss.msc.service.ServiceControllerImpl$StartTask.run(ServiceControllerImpl.java:1877)
> 11:36:51,508 ERROR [stderr] (MSC service thread 1-7) 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> 11:36:51,508 ERROR [stderr] (MSC service thread 1-7) 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> 11:36:51,508 ERROR [stderr] (MSC service thread 1-7) 	at java.lang.Thread.run(Thread.java:722)
> {noformat}
> and the generated wsdl for the endpoint has no UsingAddressing / ws-addressing policy.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message