]
Alessio Soldano updated JBWS-2208:
----------------------------------
Fix Version/s: (was: jbossws-native-3.0.3)
Impossible to deploy WS containing binding objects that are defined
by XmlAttribute from "http://www.w3.org/XML/1998/namespace"
-------------------------------------------------------------------------------------------------------------------------------
Key: JBWS-2208
URL:
http://jira.jboss.com/jira/browse/JBWS-2208
Project: JBoss Web Services
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: jbossws-native
Affects Versions: jbossws-native-3.0.1
Environment: XP + jvm 1.6.0_04-b12 + jboss.4.2.2-GA
Reporter: Toni Lopez
Attachments: JbossWs-xmlbug.zip
Trying to deploy this WS
@WebMethod ( operationName="setInternationalStringType")
public void setInternationalStringType(
@WebParam(targetNamespace="urn:bug",
name="InternationalStringType")
InternationalStringType ist) {
// TODO Auto-generated method stub
}
where InternationalStringType was
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "InternationalStringType", propOrder = {"value"})
public class InternationalStringType {
@XmlValue
protected String value;
@XmlAttribute(namespace = "http://www.w3.org/XML/1998/namespace", required
= true)
protected String lang;
public String getValue() { return value; }
public void setValue(String value) {this.value = value;}
public String getLang() {return lang;}
public void setLang(String value) {this.lang = value;}
}
i found this error during Deployment Phase
15:44:20,903 ERROR [STDERR] [Fatal Error] :1:319: The prefix "xml" cannot be
bound to any namespace other than its usual namespace; neither can the namespace for
"xml" be bound to any prefix other than "xml".
15:44:20,903 ERROR [DOMUtils] Cannot parse: <definitions name='exampleService'
targetNamespace='http://spi.example.org/'
xmlns='http://schemas.xmlsoap.org/wsdl/'
xmlns:xsd='http://www.w3.org/2001/XMLSchema'
xmlns:soap='http://schemas.xmlsoap.org/wsdl/soap/'
xmlns:tns='http://spi.example.org/' xmlns:ns2='urn:bug'
xmlns:ns1='http://www.w3.org/XML/1998/namespace'><types>
<xs:schema
targetNamespace='http://spi.example.org/' version='1.0'
xmlns:ns1='urn:bug'
xmlns:tns='http://spi.example.org/'
xmlns:xs='http://www.w3.org/2001/XMLSchema'>
<xs:import namespace='urn:bug'/>
<xs:element name='setInternationalStringType'
type='tns:setInternationalStringType'/>
<xs:element name='setInternationalStringTypeResponse'
type='tns:setInternationalStringTypeResponse'/>
<xs:complexType name='setInternationalStringType'>
<xs:sequence>
<xs:element minOccurs='0' ref='ns1:InternationalStringType'/>
</xs:sequence>
</xs:complexType>
<xs:complexType name='setInternationalStringTypeResponse'>
<xs:sequence/>
</xs:complexType>
</xs:schema>
<xs:schema
targetNamespace='http://www.w3.org/XML/1998/namespace'
version='1.0'
xmlns:xs='http://www.w3.org/2001/XMLSchema'>
<xs:attribute name='lang' type='xs:string'/>
</xs:schema>
<xs:schema targetNamespace='urn:bug' version='1.0'
xmlns:tns='urn:bug'
xmlns:xs='http://www.w3.org/2001/XMLSchema'>
<xs:import
namespace='http://www.w3.org/XML/1998/namespace'/>
<xs:element name='InternationalStringType'
type='tns:InternationalStringType'/>
<xs:complexType name='InternationalStringType'>
<xs:simpleContent>
<xs:extension base='xs:string'>
<xs:attribute ref='xml:lang' use='required'/>
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:schema>
</types><message name='example_setInternationalStringType' ><part
name='setInternationalStringType'
element='tns:setInternationalStringType'/></message><message
name='example_setInternationalStringTypeResponse' ><part
name='setInternationalStringTypeResponse'
element='tns:setInternationalStringTypeResponse'/></message><portType
name='example'><operation name='setInternationalStringType'
parameterOrder='setInternationalStringType'><input
message='tns:example_setInternationalStringType'></input><output
message='tns:example_setInternationalStringTypeResponse'></output></operation></portType><binding
name='exampleBinding' type='tns:example'><soap:binding
transport='http://schemas.xmlsoap.org/soap/http'
style='document'/><operation
name='setInternationalStringType'><soap:operation soapAction=""
/><input><soap:body
use='literal'/></input><output><soap:body
use='literal'/></output></operation></binding><service
name='exampleService'><port name='examplePort'
binding='tns:exampleBinding'><soap:address
location='http://pcbcn35:8080/exampleWS/service'/></port></service></definitions>
15:44:20,903 ERROR [MainDeployer] Could not start deployment:
file:/D:/SadielSpace/serverspace/DEV/jboss-4.2.2.GA/server/lab_01/tmp/deploy/tmp30124ear.ear-contents/jboss-bug.jar
org.jboss.ws.WSException: Cannot write generated wsdl
at
org.jboss.ws.metadata.builder.jaxws.JAXWSWebServiceMetaDataBuilder.processOrGenerateWSDL(JAXWSWebServiceMetaDataBuilder.java:403)
at
org.jboss.ws.metadata.builder.jaxws.JAXWSWebServiceMetaDataBuilder.buildWebServiceMetaData(JAXWSWebServiceMetaDataBuilder.java:168)
at
org.jboss.ws.metadata.builder.jaxws.JAXWSServerMetaDataBuilder.setupProviderOrWebService(JAXWSServerMetaDataBuilder.java:52)
at
org.jboss.ws.metadata.builder.jaxws.JAXWSMetaDataBuilderEJB3.buildMetaData(JAXWSMetaDataBuilderEJB3.java:78)
at
org.jboss.wsf.stack.jbws.UnifiedMetaDataDeploymentAspect.create(UnifiedMetaDataDeploymentAspect.java:71)
at
org.jboss.wsf.framework.deployment.DeploymentAspectManagerImpl.deploy(DeploymentAspectManagerImpl.java:118)
at
org.jboss.wsf.container.jboss42.ArchiveDeployerHook.deploy(ArchiveDeployerHook.java:97)
at
org.jboss.wsf.container.jboss42.DeployerInterceptor.start(DeployerInterceptor.java:90)
at
org.jboss.deployment.SubDeployerInterceptorSupport$XMBeanInterceptor.start(SubDeployerInterceptorSupport.java:188)
at
org.jboss.deployment.SubDeployerInterceptor.invoke(SubDeployerInterceptor.java:95)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy34.start(Unknown Source)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1015)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
at sun.reflect.GeneratedMethodAccessor21.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at
org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at
org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy9.deploy(Unknown Source)
at
org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:421)
at
org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:634)
at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:263)
at
org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:336)
at
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:289)
at
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:245)
at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:978)
at $Proxy0.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:417)
at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
at
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy4.start(Unknown Source)
at org.jboss.deployment.SARDeployer.start(SARDeployer.java:302)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:1025)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:819)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:782)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:766)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
at
org.jboss.mx.interceptor.AbstractInterceptor.invoke(AbstractInterceptor.java:133)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at
org.jboss.mx.interceptor.ModelMBeanOperationInterceptor.invoke(ModelMBeanOperationInterceptor.java:142)
at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
at
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:210)
at $Proxy5.deploy(Unknown Source)
at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:482)
at org.jboss.system.server.ServerImpl.start(ServerImpl.java:362)
at org.jboss.Main.boot(Main.java:200)
at org.jboss.Main$1.run(Main.java:508)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.io.IOException: org.xml.sax.SAXParseException: The prefix "xml"
cannot be bound to any namespace other than its usual namespace; neither can the namespace
for "xml" be bound to any prefix other than "xml".
at org.jboss.wsf.common.DOMUtils.parse(DOMUtils.java:160)
at org.jboss.wsf.common.DOMUtils.parse(DOMUtils.java:141)
at org.jboss.ws.tools.wsdl.WSDL11Writer.writeBuilder(WSDL11Writer.java:157)
at org.jboss.ws.tools.wsdl.WSDL11Writer.write(WSDL11Writer.java:151)
at org.jboss.ws.tools.wsdl.WSDLWriter.write(WSDLWriter.java:89)
at
org.jboss.ws.metadata.builder.jaxws.JAXWSWebServiceMetaDataBuilder.writeWsdl(JAXWSWebServiceMetaDataBuilder.java:430)
at
org.jboss.ws.metadata.builder.jaxws.JAXWSWebServiceMetaDataBuilder.processOrGenerateWSDL(JAXWSWebServiceMetaDataBuilder.java:394)
... 82 more
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: