Yep, that was it, works fine now, thanks! -----Original Message----- From: Beryozkin, Sergey [mailto:[EMAIL PROTECTED] Sent: Monday, November 26, 2007 3:40 PM To: [email protected] Subject: RE: Error with wsdl2java from maven
Most likely what this means is that the module you're building has some dependencies which pull in older Xerces impls, Say xerces 2.6.2... What you can do is to remove a content of xerces section in your mvn repo, except for the latest 2.8.1 one and then do mvn -o install in the module which fails, thus identifying dependencies to blame. You can then explicitly exclude older Xerces dependencies from being pulled in. Alterantively you may want to try to fork a wsdl-to-java for your particular module using fork=once property Cheers, Sergey -----Original Message----- From: Silberman, Nathan [mailto:[EMAIL PROTECTED] Sent: 26 November 2007 20:07 To: [email protected] Subject: Error with wsdl2java from maven Has anybody encountered the following error type when using wsdl2java from maven? The error: [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] org.apache.xerces.dom.DeferredDocumentImpl.getInputEncoding()Ljava/lang/ S tring; [INFO] ------------------------------------------------------------------------ [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: org.apache.xerces.dom.De ferredDocumentImpl.getInputEncoding()Ljava/lang/String; at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa ultLifecycleExecutor.java:564) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi fecycle(DefaultLifecycleExecutor.java:480) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau ltLifecycleExecutor.java:459) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan dleFailures(DefaultLifecycleExecutor.java:311) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen ts(DefaultLifecycleExecutor.java:278) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi fecycleExecutor.java:143) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:334) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125) at org.apache.maven.cli.MavenCli.main(MavenCli.java:280) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.maven.plugin.MojoExecutionException: org.apache.xerces.dom .DeferredDocumentImpl.getInputEncoding()Ljava/lang/String; at org.apache.cxf.maven_plugin.WSDL2JavaMojo.processWsdl(WSDL2JavaMojo.j ava:233) at org.apache.cxf.maven_plugin.WSDL2JavaMojo.execute(WSDL2JavaMojo.java: 129) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi nManager.java:443) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa ultLifecycleExecutor.java:539) ... 16 more Caused by: java.lang.AbstractMethodError: org.apache.xerces.dom.DeferredDocument Impl.getInputEncoding()Ljava/lang/String; at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl. java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces sorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at org.apache.ws.commons.schema.utils.DOMUtil.getInputEncoding(DOMUtil.j ava:594) at org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollec tion.java:365) at org.apache.cxf.wsdl11.SchemaUtil.extractSchema(SchemaUtil.java:106) at org.apache.cxf.wsdl11.SchemaUtil.getSchemas(SchemaUtil.java:66) at org.apache.cxf.tools.validator.internal.ValidatorUtil.getSchema(Valid atorUtil.java:63) at org.apache.cxf.tools.validator.internal.WSDLRefValidator.<init>(WSDLR efValidator.java:122) at org.apache.cxf.tools.validator.internal.WSDL11Validator.isValid(WSDL1 1Validator.java:99) at org.apache.cxf.tools.wsdlto.frontend.jaxws.wsdl11.JAXWSDefinitionBuil der.validate(JAXWSDefinitionBuilder.java:198) at org.apache.cxf.tools.wsdlto.frontend.jaxws.wsdl11.JAXWSDefinitionBuil der.validate(JAXWSDefinitionBuilder.java:61) at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaCon tainer.java:128) at org.apache.cxf.tools.wsdlto.WSDLToJavaContainer.execute(WSDLToJavaCon tainer.java:229) at org.apache.cxf.tools.common.toolspec.ToolRunner.runTool(ToolRunner.ja va:83) at org.apache.cxf.tools.wsdlto.WSDLToJava.run(WSDLToJava.java:102) at org.apache.cxf.tools.wsdlto.WSDLToJava.main(WSDLToJava.java:171) at org.apache.cxf.maven_plugin.WSDL2JavaMojo.processWsdl(WSDL2JavaMojo.j ava:220) ... 19 more [INFO] ------------------------------------------------------------------------ [INFO] Total time: 19 seconds [INFO] Finished at: Mon Nov 26 15:00:27 EST 2007 [INFO] Final Memory: 11M/21M [INFO] ------------------------------------------------------------------------ maven config: <plugin> <groupId>org.apache.cxf</groupId> <artifactId>cxf-codegen-plugin</artifactId> <version>2.0.3-incubator</version> <executions> <execution> <id>generate-sources</id> <phase>generate-sources</phase> <configuration> <sourceRoot>${basedir}/src/main/java</sourceRoot> <wsdlOptions> <wsdlOption> <wsdl>${basedir}/src/main/webapp/WEB-INF/wsdl/MyService.wsdl</wsdl> </wsdlOption> </wsdlOptions> </configuration> <goals> <goal>wsdl2java</goal> </goals> </execution> </executions> </plugin> ---------------------------- IONA Technologies PLC (registered in Ireland) Registered Number: 171387 Registered Address: The IONA Building, Shelbourne Road, Dublin 4, Ireland
