[
http://issues.apache.org/jira/browse/AXIS2-668?page=comments#action_12378201 ]
Kent Tong commented on AXIS2-668:
---------------------------------
The verbose output from Ant shows the stack trace below:
BUILD FAILED
C:\Books\DWSAA\v20\workspace\FooService\build.xml:22:
org.apache.axis2.wsdl.codegen.CodeGenerationException:
org.apache.axis2.wsdl.codegen.CodeGenerationException:
java.lang.RuntimeException: WSDL writing failed!
at
org.apache.axis2.tool.ant.AntCodegenTask.execute(AntCodegenTask.java:241)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
at
org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at
org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
at
org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)
Caused by: org.apache.axis2.wsdl.codegen.CodeGenerationException:
org.apache.axis2.wsdl.codegen.CodeGenerationException:
java.lang.RuntimeException: WSDL writing failed!
at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:185)
at
org.apache.axis2.tool.ant.AntCodegenTask.execute(AntCodegenTask.java:239)
... 11 more
Caused by: org.apache.axis2.wsdl.codegen.CodeGenerationException:
java.lang.RuntimeException: WSDL writing failed!
at
org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitSkeleton(AxisServiceBasedMultiLanguageEmitter.java:644)
at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:168)
... 12 more
Caused by: java.lang.RuntimeException: WSDL writing failed!
at
org.apache.axis2.wsdl.codegen.writer.WSDLWriter.writeWSDL(WSDLWriter.java:45)
at
org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.writeWSDLFiles(AxisServiceBasedMultiLanguageEmitter.java:740)
at
org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitSkeletonService(AxisServiceBasedMultiLanguageEmitter.java:706)
at
org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitSkeleton(AxisServiceBasedMultiLanguageEmitter.java:642)
... 13 more
Caused by: org.apache.axis2.AxisFault: com.ctc.wstx.stax.WstxInputFactory;
nested exception is:
java.lang.ClassCastException: com.ctc.wstx.stax.WstxInputFactory
at
org.apache.axis2.description.AxisService.getWSDL(AxisService.java:556)
at
org.apache.axis2.description.AxisService.printWSDL(AxisService.java:544)
at
org.apache.axis2.wsdl.codegen.writer.WSDLWriter.writeWSDL(WSDLWriter.java:40)
... 16 more
Caused by: java.lang.ClassCastException: com.ctc.wstx.stax.WstxInputFactory
at
javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:136)
at
org.apache.axis2.description.AxisService2OM.generateOM(AxisService2OM.java:148)
at
org.apache.axis2.description.AxisService.getWSDL(AxisService.java:551)
... 18 more
--- Nested Exception ---
org.apache.axis2.wsdl.codegen.CodeGenerationException:
org.apache.axis2.wsdl.codegen.CodeGenerationException:
java.lang.RuntimeException: WSDL writing failed!
at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:185)
at
org.apache.axis2.tool.ant.AntCodegenTask.execute(AntCodegenTask.java:239)
at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
at org.apache.tools.ant.Task.perform(Task.java:364)
at org.apache.tools.ant.Target.execute(Target.java:341)
at org.apache.tools.ant.Target.performTasks(Target.java:369)
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1216)
at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
at
org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:40)
at
org.eclipse.ant.internal.ui.antsupport.EclipseDefaultExecutor.executeTargets(EclipseDefaultExecutor.java:32)
at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at
org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:423)
at
org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:137)
Caused by: org.apache.axis2.wsdl.codegen.CodeGenerationException:
java.lang.RuntimeException: WSDL writing failed!
at
org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitSkeleton(AxisServiceBasedMultiLanguageEmitter.java:644)
at
org.apache.axis2.wsdl.codegen.CodeGenerationEngine.generate(CodeGenerationEngine.java:168)
... 12 more
Caused by: java.lang.RuntimeException: WSDL writing failed!
at
org.apache.axis2.wsdl.codegen.writer.WSDLWriter.writeWSDL(WSDLWriter.java:45)
at
org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.writeWSDLFiles(AxisServiceBasedMultiLanguageEmitter.java:740)
at
org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitSkeletonService(AxisServiceBasedMultiLanguageEmitter.java:706)
at
org.apache.axis2.wsdl.codegen.emitter.AxisServiceBasedMultiLanguageEmitter.emitSkeleton(AxisServiceBasedMultiLanguageEmitter.java:642)
... 13 more
Caused by: org.apache.axis2.AxisFault: com.ctc.wstx.stax.WstxInputFactory;
nested exception is:
java.lang.ClassCastException: com.ctc.wstx.stax.WstxInputFactory
at
org.apache.axis2.description.AxisService.getWSDL(AxisService.java:556)
at
org.apache.axis2.description.AxisService.printWSDL(AxisService.java:544)
at
org.apache.axis2.wsdl.codegen.writer.WSDLWriter.writeWSDL(WSDLWriter.java:40)
... 16 more
Caused by: java.lang.ClassCastException: com.ctc.wstx.stax.WstxInputFactory
at
javax.xml.stream.XMLInputFactory.newInstance(XMLInputFactory.java:136)
at
org.apache.axis2.description.AxisService2OM.generateOM(AxisService2OM.java:148)
at
org.apache.axis2.description.AxisService.getWSDL(AxisService.java:551)
... 18 more
The offending line is in AxisService2OM:
XMLInputFactory xmlInputFactory = XMLInputFactory.newInstance();
This is saying com.ctc.wstx.stax.WstxInputFactory is not an XMLInputFactory.
Very weird! Sounds like classloader issues.
> AntCodegenTask throws exception
> -------------------------------
>
> Key: AXIS2-668
> URL: http://issues.apache.org/jira/browse/AXIS2-668
> Project: Apache Axis 2.0 (Axis2)
> Type: Bug
> Components: Tools
> Versions: 1.0
> Environment: axis2-1.0 svn 2005-05-04 (noon)
> Reporter: Bryan Brouckaert
> Attachments: build-test.xml
>
> The AntCodegenTask throws following error:
> "javax.xml.stream.FactoryConfigurationError: Provider
> com.bea.xml.stream.MXParserFactory not found"
> All jars of the Axis2 library are included in the class path.
--
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