[
https://issues.apache.org/jira/browse/AXIS2-4455?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
pradip sonar updated AXIS2-4455:
--------------------------------
Environment: Axis2-1.4.1, WinXP, jdk 1.5 (was: Axis2-1.4.1)
> Exception "org.apache.xmlbeans.XmlException: The filename, directory name, or
> volume label syntax is incorrect" getting when using absolute path for
> resource in wsdl2java.
> ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: AXIS2-4455
> URL: https://issues.apache.org/jira/browse/AXIS2-4455
> Project: Axis 2.0 (Axis2)
> Issue Type: Bug
> Environment: Axis2-1.4.1, WinXP, jdk 1.5
> Reporter: pradip sonar
>
> I was getting this error when I was using absolute path for resource,
> I was trying the following url with wsdl2java untility of axis2-1.4.1 for
> code gen,
> call wsdl2java -uri "http://localhost/TestService.asmx?wsdl" -o "c:\source"
> -d xmlbeans -R "c:\resource" -or.
> In this, the resource path was absolute path and not relative to output path,
> the follwing exception was getting,
> Exception in thread "main"
> org.apache.axis2.wsdl.codegen.CodeGenerationException:
> java.lang.RuntimeException: java.lang.reflect.InvocationTargetExcept
> ion
> at
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:271)
> at org.apache.axis2.wsdl.WSDL2Code.main(WSDL2Code.java:35)
> at org.apache.axis2.wsdl.WSDL2Java.main(WSDL2Java.java:24)
> Caused by: java.lang.RuntimeException:
> java.lang.reflect.InvocationTargetException
> at
> org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.engage(XMLBeansExtension.java:126)
> at
> org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:224)
> ... 2 more
> Caused by: java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at
> org.apache.axis2.wsdl.codegen.extension.XMLBeansExtension.engage(XMLBeansExtension.java:115)
> ... 3 more
> Caused by: java.lang.RuntimeException: org.apache.xmlbeans.XmlException: The
> filename, directory name, or volume label syntax is incorrect (schemaorg_
> apache_xmlbeans.system.s3E2AB9FDDDEAD0D861B806A37906C852.modelconfiguration681ctype)
> - code 9
> at
> org.apache.axis2.xmlbeans.CodeGenerationUtility.processSchemas(CodeGenerationUtility.java:325)
> ... 8 more
> Caused by: org.apache.xmlbeans.XmlException: The filename, directory name, or
> volume label syntax is incorrect (schemaorg_apache_xmlbeans.system.s3E2A
> B9FDDDEAD0D861B806A37906C852.modelconfiguration681ctype) - code 9
> at org.apache.xmlbeans.XmlBeans.wrappedException(XmlBeans.java:149)
> at org.apache.xmlbeans.XmlBeans.compileXmlBeans(XmlBeans.java:675)
> at
> org.apache.axis2.xmlbeans.CodeGenerationUtility.processSchemas(CodeGenerationUtility.java:189)
> ... 8 more
> Caused by: org.apache.xmlbeans.SchemaTypeLoaderException: The filename,
> directory name, or volume label syntax is incorrect (schemaorg_apache_xmlbeans
> .system.s3E2AB9FDDDEAD0D861B806A37906C852.modelconfiguration681ctype) - code 9
> at
> org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl$XsbReader.getSaverStream(SchemaTypeSystemImpl.java:2234)
> at
> org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl$XsbReader.writeRealHeader(SchemaTypeSystemImpl.java:1604)
> at
> org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl.saveType(SchemaTypeSystemImpl.java:1455)
> at
> org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl.saveTypesRecursively(SchemaTypeSystemImpl.java:1331)
> at
> org.apache.xmlbeans.impl.schema.SchemaTypeSystemImpl.save(SchemaTypeSystemImpl.java:1306)
> at
> org.apache.xmlbeans.impl.schema.SchemaTypeSystemCompiler.compile(SchemaTypeSystemCompiler.java:230)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> at java.lang.reflect.Method.invoke(Unknown Source)
> at org.apache.xmlbeans.XmlBeans.compileXmlBeans(XmlBeans.java:667)
> ... 9 more
> I found that the the resource path should be relative to output path to work
> this,
> So I changed the resource path which is relative to output path and the code
> was generated with resources successfully.
> The following code gen url works,
> call wsdl2java -uri "http://localhost/TestService.asmx?wsdl" -o "c:\source"
> -d xmlbeans -R "resource" -or.
> In this, classes will get generated under c:\source directory, resource
> directory will get created under c:\source path and all resources will get
> generated under this resource directory.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.