Kai, Please log *another* bug :)
thanks, dims On 9/29/06, Kai Hüner <[EMAIL PROTECTED]> wrote:
Hi Dims, First of all thank you for your fast support. Of course, you're right: there is a little mistake in the WS-Agreement specification I try to implement. But when I change the single occourence of "wsagreement" in the wsdl to "ws-agreement" I can generate code by using the acctual WSDL2JAVA and as well a aar-archive - realy cool! But when I try to call the deployed service, I get an irritating error message (see above) telling me something about a not allowd binding of a "xml" prefix. But I only used standardized WSDLs and Schemas, so I don't think there's a mistake like a not allowed binding. Do you have any idea, wht's wrong this time? Best regards, Kai The error message of axis2: Error: org.apache.axis2.deployment.DeploymentException: java.lang.RuntimeException: org.apache.ws.commons.schema.XmlSchemaException: 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".; nested exception is: java.lang.RuntimeException: java.lang.RuntimeException: org.apache.ws.commons.schema.XmlSchemaException: 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".; nested exception is: org.apache.axis2.AxisFault: java.lang.RuntimeException: org.apache.ws.commons.schema.XmlSchemaException: 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".; nested exception is: java.lang.RuntimeException: java.lang.RuntimeException: org.apache.ws.commons.schema.XmlSchemaException: 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".; nested exception is: org.apache.axis2.deployment.DeploymentException: java.lang.RuntimeException: org.apache.ws.commons.schema.XmlSchemaException: 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".; nested exception is: java.lang.RuntimeException: java.lang.RuntimeException: org.apache.ws.commons.schema.XmlSchemaException: 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".; nested exception is: org.apache.axis2.AxisFault: java.lang.RuntimeException: org.apache.ws.commons.schema.XmlSchemaException: 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".; nested exception is: java.lang.RuntimeException: java.lang.RuntimeException: org.apache.ws.commons.schema.XmlSchemaException: 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.apache.axis2.deployment.repository.util.ArchiveReader.processWSDLs(ArchiveReader.java:347) at org.apache.axis2.deployment.DeploymentEngine.doDeploy(DeploymentEngine.java:515) at org.apache.axis2.deployment.repository.util.WSInfoList.update(WSInfoList.java:200) at org.apache.axis2.deployment.RepositoryListener.update(RepositoryListener.java:209) at org.apache.axis2.deployment.RepositoryListener.checkServices(RepositoryListener.java:156) at org.apache.axis2.deployment.RepositoryListener.startListener(RepositoryListener.java:201) at org.apache.axis2.deployment.scheduler.SchedulerTask.checkRepository(SchedulerTask.java:61) at org.apache.axis2.deployment.scheduler.SchedulerTask.run(SchedulerTask.java:68) at org.apache.axis2.deployment.scheduler.Scheduler$SchedulerTimerTask.run(Scheduler.java:76) at java.util.TimerThread.mainLoop(Unknown Source) at java.util.TimerThread.run(Unknown Source) Caused by: org.apache.axis2.deployment.DeploymentException: java.lang.RuntimeException: org.apache.ws.commons.schema.XmlSchemaException: 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".; nested exception is: java.lang.RuntimeException: java.lang.RuntimeException: org.apache.ws.commons.schema.XmlSchemaException: 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".; nested exception is: org.apache.axis2.AxisFault: java.lang.RuntimeException: org.apache.ws.commons.schema.XmlSchemaException: 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".; nested exception is: java.lang.RuntimeException: java.lang.RuntimeException: org.apache.ws.commons.schema.XmlSchemaException: 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.apache.axis2.deployment.repository.util.ArchiveReader.processWSDLFile(ArchiveReader.java:202) at org.apache.axis2.deployment.repository.util.ArchiveReader.processWSDLs(ArchiveReader.java:327) ... 10 more Caused by: org.apache.axis2.AxisFault: java.lang.RuntimeException: org.apache.ws.commons.schema.XmlSchemaException: 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".; nested exception is: java.lang.RuntimeException: java.lang.RuntimeException: org.apache.ws.commons.schema.XmlSchemaException: 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.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:240) at org.apache.axis2.deployment.repository.util.ArchiveReader.processWSDLFile(ArchiveReader.java:200) ... 11 more Caused by: java.lang.RuntimeException: java.lang.RuntimeException: org.apache.ws.commons.schema.XmlSchemaException: 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.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilder.java:1803) at org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilder.java:1815) at org.apache.ws.commons.schema.SchemaBuilder.handleInclude(SchemaBuilder.java:1594) at org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(SchemaBuilder.java:150) at org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:315) at org.apache.axis2.description.WSDLToAxisServiceBuilder.getXMLSchema(WSDLToAxisServiceBuilder.java:132) at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.copyExtensibleElements(WSDL11ToAxisServiceBuilder.java:1618) at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:205) ... 12 more Caused by: java.lang.RuntimeException: org.apache.ws.commons.schema.XmlSchemaException: 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.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilder.java:1803) at org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilder.java:1815) at org.apache.ws.commons.schema.SchemaBuilder.handleImport(SchemaBuilder.java:1547) at org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(SchemaBuilder.java:156) at org.apache.ws.commons.schema.SchemaBuilder.build(SchemaBuilder.java:67) at org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:325) at org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:272) at org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilder.java:1801) ... 19 more Caused by: org.apache.ws.commons.schema.XmlSchemaException: 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.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:278) at org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilder.java:1801) ... 26 more On 9/26/06, Davanum Srinivas (JIRA) <[EMAIL PROTECTED]> wrote: > [ http://issues.apache.org/jira/browse/AXIS2-1235?page=all ] > > Davanum Srinivas resolved AXIS2-1235. > ------------------------------------- > > Resolution: Invalid > > Here's the error report from the latest nightly: > > Retrieving document at 'http://docs.oasis-open.org/wsrf/rpw-2.wsdl', relative to 'file:/C:/junk/'. > Retrieving document at 'http://docs.oasis-open.org/wsrf/rw-2.wsdl', relative to 'http://docs.oasis-open.org/wsrf/rpw-2.wsdl'. > Retrieving schema at 'http://docs.oasis-open.org/wsrf/r-2.xsd', relative to 'http://docs.oasis-open.org/wsrf/rw-2.wsdl'. > Retrieving schema at 'http://docs.oasis-open.org/wsrf/bf-2.xsd', relative to 'http://docs.oasis-open.org/wsrf/r-2.xsd'. > Retrieving schema at 'http://www.w3.org/2001/xml.xsd', relative to 'http://docs.oasis-open.org/wsrf/bf-2.xsd'. > Retrieving schema at 'http://www.w3.org/2005/08/addressing/ws-addr.xsd', relative to 'http://docs.oasis-open.org/wsrf/bf-2.xsd'. > Retrieving schema at 'http://docs.oasis-open.org/wsrf/rp-2.xsd', relative to 'http://docs.oasis-open.org/wsrf/rpw-2.wsdl'. > Retrieving schema at 'http://docs.oasis-open.org/wsrf/bf-2.xsd', relative to 'http://docs.oasis-open.org/wsrf/rp-2.xsd'. > Retrieving schema at 'agreement_types.xsd', relative to 'file:/C:/junk/'. > Retrieving schema at 'http://docs.oasis-open.org/wsrf/bf-2.xsd', relative to 'file:/C:/junk/agreement_types.xsd'. > Retrieving schema at 'http://www.w3.org/2001/XMLSchema.xsd', relative to 'file:/C:/junk/agreement_types.xsd'. > Retrieving schema at 'http://www.w3.org/2001/xml.xsd', relative to 'http://www.w3.org/2001/XMLSchema.xsd'. > Retrieving schema at 'http://www.w3.org/2005/08/addressing/ws-addr.xsd', relative to 'file:/C:/junk/agreement_types.xsd'. > Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException: Error parsing WSDL > at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:112) > at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:32) > at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:21) > Caused by: org.apache.axis2.AxisFault: org.apache.ws.commons.schema.XmlSchemaException: An included schema was announced to have the default target namespace or the target namespace http://schemas.ggf.org/graap/2005/09/wsagreement, but has the target namespace http://schemas.ggf.org/graap/2005/09/ws-agreement; nested exception is: > java.lang.RuntimeException: org.apache.ws.commons.schema.XmlSchemaException: An included schema was announced to have the default target namespace or the target namespace http://schemas.ggf.org/graap/2005/09/wsagreement, but has the target namespace http://schemas.ggf.org/graap/2005/09/ws-agreement > at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:239) > at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.<init>(CodeGenerationEngine.java:103) > ... 2 more > Caused by: java.lang.RuntimeException: org.apache.ws.commons.schema.XmlSchemaException: An included schema was announced to have the default target namespace or the target namespace http://schemas.ggf.org/graap/2005/09/wsagreement, but has the target namespace http://schemas.ggf.org/graap/2005/09/ws-agreement > at org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilder.java:1803) > at org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilder.java:1815) > at org.apache.ws.commons.schema.SchemaBuilder.handleInclude(SchemaBuilder.java:1594) > at org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(SchemaBuilder.java:150) > at org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:315) > at org.apache.axis2.description.WSDLToAxisServiceBuilder.getXMLSchema(WSDLToAxisServiceBuilder.java:132) > at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.copyExtensibleElements(WSDL11ToAxisServiceBuilder.java:1611) > at org.apache.axis2.description.WSDL11ToAxisServiceBuilder.populateService(WSDL11ToAxisServiceBuilder.java:204) > ... 3 more > Caused by: org.apache.ws.commons.schema.XmlSchemaException: An included schema was announced to have the default target namespace or the target namespace http://schemas.ggf.org/graap/2005/09/wsagreement, but has the target namespace http://schemas.ggf.org/graap/2005/09/ws-agreement > at org.apache.ws.commons.schema.SchemaBuilder$2.validate(SchemaBuilder.java:1619) > at org.apache.ws.commons.schema.SchemaBuilder.setNamespaceAttributes(SchemaBuilder.java:283) > at org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(SchemaBuilder.java:78) > at org.apache.ws.commons.schema.SchemaBuilder.build(SchemaBuilder.java:67) > at org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:325) > at org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:272) > at org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilder.java:1801) > ... 10 more > > -- dims > > > Unsupported content Complex Content ! > > ------------------------------------- > > > > Key: AXIS2-1235 > > URL: http://issues.apache.org/jira/browse/AXIS2-1235 > > Project: Apache Axis 2.0 (Axis2) > > Issue Type: Bug > > Affects Versions: 1.0 > > Environment: Windows XP, Java 1.5 SDK, virtual machine (32 bit) > > Reporter: Kai Huener > > Attachments: agreement_types.xsd, AgreementFactoryPortType.wsdl > > > > > > I tried to generate Java code by using the WSDL2Java.bat of the actual > > nightly build, but with no success. I got the error message: > > Exception in thread "main" > > org.apache.axis2.wsdl.codegen.CodeGenerationException: > > java.lang.RuntimeException: > > org.apache.axis2.schema.SchemaCompilationException : Unsupported > > content Complex Content ! at > > org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:185) > > best regards, > > Kai Huener > > -- > This message is automatically generated by JIRA. > - > If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa > - > For more information on JIRA, see: http://www.atlassian.com/software/jira > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
-- Davanum Srinivas : http://www.wso2.net (Oxygen for Web Service Developers) --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
