cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Kulp (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CXF-1754) AbstractMethodError in WSDLToJavaContainer.java (130)
Date Wed, 20 Aug 2008 20:04:44 GMT

    [ https://issues.apache.org/jira/browse/CXF-1754?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12624113#action_12624113
] 

Daniel Kulp commented on CXF-1754:
----------------------------------


Way too old.....

Use:
    <dependency> 
       <groupId>xerces</groupId> 
       <artifactId>xercesImpl</artifactId> 
       <version>2.8.1</version> 
     </dependency>
or something more recent. (I think the 2.7's would work as well)

They changed the artifactId at one point.


> AbstractMethodError in WSDLToJavaContainer.java (130)
> -----------------------------------------------------
>
>                 Key: CXF-1754
>                 URL: https://issues.apache.org/jira/browse/CXF-1754
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 2.0.8, 2.1.2
>         Environment: Windows XP, running Maven in Eclipse
>            Reporter: Austin Lowry
>            Priority: Critical
>
> While running the Maven plug-in to generate source code, I get an AbstractMethodError
in WSDLToJavaContainer.java at line 130.  I debugged through to get the line throwing the
error. Essentially, builder.validate(definition) causes the exception.
> The variable builder is an instance of JAXWSDefinitionBuilder, but I'm guessing there
is some sort of Generics problem going on.
> The stack trace:
> org.apache.maven.plugin.MojoExecutionException: org.apache.xerces.dom.DeferredDocumentImpl.getInputEncoding()Ljava/lang/String;
> 	at org.apache.cxf.maven_plugin.WSDL2JavaMojo.processWsdl(WSDL2JavaMojo.java:334)
> 	at org.apache.cxf.maven_plugin.WSDL2JavaMojo.execute(WSDL2JavaMojo.java:228)
> 	at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:578)
> 	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:508)
> 	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:328)
> 	at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:151)
> 	at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:220)
> 	at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:813)
> 	at org.maven.ide.eclipse.embedder.Maven2Executor.main(Maven2Executor.java:85)
> Caused by: java.lang.AbstractMethodError: org.apache.xerces.dom.DeferredDocumentImpl.getInputEncoding()Ljava/lang/String;
> 	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:585)
> 	at org.apache.ws.commons.schema.utils.DOMUtil.getInputEncoding(DOMUtil.java:602)
> 	at org.apache.ws.commons.schema.SchemaBuilder.build(SchemaBuilder.java:84)
> 	at org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:424)
> 	at org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:347)
> 	at org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilder.java:1839)
> 	at org.apache.ws.commons.schema.SchemaBuilder.handleImport(SchemaBuilder.java:1577)
> 	at org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(SchemaBuilder.java:186)
> 	at org.apache.ws.commons.schema.SchemaBuilder.build(SchemaBuilder.java:83)
> 	at org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:424)
> 	at org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:347)
> 	at org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilder.java:1839)
> 	at org.apache.ws.commons.schema.SchemaBuilder.handleImport(SchemaBuilder.java:1577)
> 	at org.apache.ws.commons.schema.SchemaBuilder.handleXmlSchemaElement(SchemaBuilder.java:186)
> 	at org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:431)
> 	at org.apache.cxf.common.xmlschema.SchemaCollection.read(SchemaCollection.java:147)
> 	at org.apache.cxf.wsdl11.SchemaUtil.extractSchema(SchemaUtil.java:111)
> 	at org.apache.cxf.wsdl11.SchemaUtil.getSchemas(SchemaUtil.java:64)
> 	at org.apache.cxf.tools.validator.internal.ValidatorUtil.getSchema(ValidatorUtil.java:64)
> 	at org.apache.cxf.tools.validator.internal.WSDLRefValidator.<init>(WSDLRefValidator.java:126)
> 	at org.apache.cxf.tools.validator.internal.WSDL11Validator.isValid(WSDL11Validator.java:114)
> 	at org.apache.cxf.tools.wsdlto.frontend.jaxws.wsdl11.JAXWSDefinitionBuilder.validate(JAXWSDefinitionBuilder.java:200)
> 	at org.apache.cxf.tools.wsdlto.frontend.jaxws.wsdl11.JAXWSDefinitionBuilder.validate(JAXWSDefinitionBuilder.java:62)
> 	at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:130)
> 	at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaContainer.java:231)
> 	at org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.java:83)
> 	at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:102)
> 	at org.apache.cxf.maven_plugin.WSDL2JavaMojo.processWsdl(WSDL2JavaMojo.java:330)
> 	... 8 more

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


Mime
View raw message