axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Glen Daniels (JIRA)" <j...@apache.org>
Subject [jira] Updated: (AXIS2-3983) Axis2 v1.4 wsdl2java with xmlbeams binding failed to process b-2.xsd
Date Tue, 23 Sep 2008 17:03:44 GMT

     [ https://issues.apache.org/jira/browse/AXIS2-3983?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Glen Daniels updated AXIS2-3983:
--------------------------------

    Attachment: wsdl2java.zip

WSDL and generate.bat which demonstrates the problem.

> Axis2 v1.4 wsdl2java with xmlbeams binding failed to process b-2.xsd
> --------------------------------------------------------------------
>
>                 Key: AXIS2-3983
>                 URL: https://issues.apache.org/jira/browse/AXIS2-3983
>             Project: Axis 2.0 (Axis2)
>          Issue Type: Bug
>          Components: codegen
>    Affects Versions: 1.4
>         Environment: AXIS2_HOME:   C:\apache\axis2-1.4
> JAVA_HOME:    C:\Progra~1\Java\jdk1.5.0_12
>            Reporter: Rich Lucente
>         Attachments: wsdl2java.zip
>
>
> I got an error when running wsdl2java with xmlbeans binding: "Problem parsing referenced
XML resource - http://docs.oasis-open.org/wsn/b-2.xsd:1:1: error: Unexpected end of file after
null". Following is the complete exception stack:
> autogen.test:
>      [echo] autogen.missing = true
>      [echo] autogen.copied = true
> perform.autogen:
>      [exec] Generating server source for NotificationConsumer.wsdl ...
>      [exec] Using AXIS2_HOME:   C:\apache\axis2-1.4
>      [exec] Using JAVA_HOME:    C:\Progra~1\Java\jdk1.5.0_12
>      [exec] Retrieving document at 'NotificationConsumer.wsdl'.
>      [exec] Retrieving schema at 'http://docs.oasis-open.org/wsn/b-2.xsd', relative to
'file:/C:/Data/substcc14/WINT/SDF-2007/wint-oe/webServiceClients/messagingclient/config/NotificationConsumer.wsdl'.
>      [exec] Retrieving schema at 'http://docs.oasis-open.org/wsrf/bf-2.xsd', relative
to 'http://docs.oasis-open.org/wsn/b-2.xsd'.
>      [exec] Retrieving schema at 'http://www.w3.org/2001/xml.xsd', relative to 'http://docs.oasis-open.org/wsrf/bf-2.xsd'.
>      [exec] Retrieving schema at 'http://www.w3.org/2005/08/addressing/ws-addr.xsd',
relative to 'http://docs.oasis-open.org/wsrf/bf-2.xsd'.
>      [exec] Retrieving schema at 'http://docs.oasis-open.org/wsn/t-1.xsd', relative to
'http://docs.oasis-open.org/wsn/b-2.xsd'.
>      [exec] Retrieving schema at 'http://www.w3.org/2005/08/addressing/ws-addr.xsd',
relative to 'http://docs.oasis-open.org/wsn/b-2.xsd'.
>      [exec] [INFO] Resolving schema with publicId [null] and systemId [http:\docs.oasis-open.org\wsn\b-2.xsd]
>      [exec] Exception in thread "main" org.apache.axis2.wsdl.codegen.CodeGenerationException:
java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
>      [exec]     at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:271)
>      [exec]     at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
>      [exec]     at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
>      [exec] Caused by: java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
>      [exec]     at org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.engage(XMLBeansExtension.java:126)
>      [exec]     at org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:224)
>      [exec]     ... 2 more
>      [exec] Caused by: java.lang.reflect.InvocationTargetException
>      [exec]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>      [exec]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>      [exec]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>      [exec]     at java.lang.reflect.Method.invoke(Method.java:585)
>      [exec]     at org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.engage(XMLBeansExtension.java:115)
>      [exec]     ... 3 more
>      [exec] Caused by: java.lang.RuntimeException: org.apache.xmlbeans.XmlException:
error: Problem parsing referenced XML resource - http://docs.oasis-open.org/wsn/b-2.xsd:1:1:
error: Unexpected end of file after null
>      [exec]     at org.apache.axis2.xmlbeans.CodeGenerationUtility.processSchemas(CodeGenerationUtility.java:325)
>      [exec]     ... 8 more
>      [exec] Caused by: org.apache.xmlbeans.XmlException: error: Problem parsing referenced
XML resource - http://docs.oasis-open.org/wsn/b-2.xsd:1:1: error: Unexpected end of file after
null
>      [exec]     at org.apache.xmlbeans.impl.schema.SchemaTypeSystemCompiler.compile(SchemaTypeSystemCompiler.java:225)
>      [exec]     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>      [exec]     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>      [exec]     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>      [exec]     at java.lang.reflect.Method.invoke(Method.java:585)
>      [exec]     at org.apache.xmlbeans.XmlBeans.compileXmlBeans(XmlBeans.java:667)
>      [exec]     at org.apache.axis2.xmlbeans.CodeGenerationUtility.processSchemas(CodeGenerationUtility.java:189)
>      [exec]     ... 8 more
> It worked fine with axis2-1.2, but we have to upgrade to axis2-1.4. Any suggestions or
work arounds? Thanks

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: axis-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-dev-help@ws.apache.org


Mime
View raw message