Re: wsdl2java problem
Hi , The cxf system test module also uses this plugin to generate code . It works fine . I did not see any error related to wsdl2java tool or this plugin from the maven output . Use mvn -e to see if you can get the error stack trace . Cheers Jim Ivo van Dongen wrote: Hi, We're using the cxf-codegen-plugin for maven 2.1-snapshot atm and this worked out great until yesterday when the source generation suddenly failed. The last build that succeeded was on monday and no builds were made in between. The strangest part is that I can't get it working again even when using a maven plugin version from last week (2.1-incubator-20071008.202151-8) which certainly worked then. This leads me to beleive that something has changed in one of the dependencies, but I can't figure out where. Has somebody else expirienced this problem? Going back to the 2.0.2 release seems to fix it. The relevant part of the maven output: Oct 19, 2007 10:48:13 AM org.apache.cxf.tools.wsdlto.core.PluginLoader loadPlugin INFO: Loading plugin jar:file:/home/ivo/.m2/repository/org/apache/cxf/cxf-tools-wsdlto-frontend-jaxws/2.1-incubator-SNAPSHOT/cxf-tools-wsdlto-frontend-jaxws-2.1-incubator-SNAPSHOT.jar!/META-INF/tools-plugin.xml Oct 19, 2007 10:48:13 AM org.apache.cxf.tools.wsdlto.core.PluginLoader loadPlugin INFO: Found 1 frontends in jaxws plugin. Oct 19, 2007 10:48:13 AM org.apache.cxf.tools.wsdlto.core.PluginLoader loadPlugin INFO: Loading jaxws frontend from jaxws plugin. Oct 19, 2007 10:48:13 AM org.apache.cxf.tools.wsdlto.core.PluginLoader loadPlugin INFO: Loading plugin jar:file:/home/ivo/.m2/repository/org/apache/cxf/cxf-tools-wsdlto-databinding-jaxb/2.1-incubator-SNAPSHOT/cxf-tools-wsdlto-databinding-jaxb-2.1-incubator-SNAPSHOT.jar!/META-INF/tools-plugin.xml Oct 19, 2007 10:48:13 AM org.apache.cxf.tools.wsdlto.core.PluginLoader loadPlugin INFO: Found 1 databindings in jaxb plugin. Oct 19, 2007 10:48:13 AM org.apache.cxf.tools.wsdlto.core.PluginLoader loadPlugin INFO: Loading jaxb databinding from jaxb plugin. Loading FrontEnd jaxws ... Loading DataBinding jaxb ... wsdl2java -d /local/home/ivo/workspace-fresh/tesis/target/xfire-source -verbose -all /local/home/ivo/workspace-fresh/tesis/src/main/wsdl/backstage/TesisBackstageServices.wsdl wsdl2java - Apache CXF (incubator) 2.1-incubator-SNAPSHOT Oct 19, 2007 10:48:14 AM org.springframework.context.support.AbstractApplicationContext prepareRefresh INFO: Refreshing [EMAIL PROTECTED]: display name [EMAIL PROTECTED]; startup date [Fri Oct 19 10:48:14 CEST 2007]; root of context hierarchy Oct 19, 2007 10:48:14 AM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions INFO: Loading XML bean definitions from class path resource [META-INF/cxf/cxf.xml] Oct 19, 2007 10:48:15 AM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions INFO: Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-xml.xml] Oct 19, 2007 10:48:15 AM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions INFO: Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-soap.xml] Oct 19, 2007 10:48:15 AM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions INFO: Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-http.xml] Oct 19, 2007 10:48:15 AM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions INFO: Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-http-jetty.xml] Oct 19, 2007 10:48:15 AM org.springframework.context.support.AbstractApplicationContext obtainFreshBeanFactory INFO: Bean factory for application context [EMAIL PROTECTED]: [EMAIL PROTECTED] Oct 19, 2007 10:48:15 AM org.springframework.context.support.AbstractApplicationContext$BeanPostProcessorChecker postProcessAfterInitialization INFO: Bean 'org.apache.cxf.bus.spring.Jsr250BeanPostProcessor' is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) Oct 19, 2007 10:48:15 AM org.springframework.context.support.AbstractApplicationContext$BeanPostProcessorChecker postProcessAfterInitialization INFO: Bean 'org.apache.cxf.bus.spring.BusExtensionPostProcessor' is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) Oct 19, 2007 10:48:15 AM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons INFO: Pre-instantiating singletons in [EMAIL PROTECTED]: defining beans
wsdl2java problem
Hi, We're using the cxf-codegen-plugin for maven 2.1-snapshot atm and this worked out great until yesterday when the source generation suddenly failed. The last build that succeeded was on monday and no builds were made in between. The strangest part is that I can't get it working again even when using a maven plugin version from last week (2.1-incubator-20071008.202151-8) which certainly worked then. This leads me to beleive that something has changed in one of the dependencies, but I can't figure out where. Has somebody else expirienced this problem? Going back to the 2.0.2 release seems to fix it. The relevant part of the maven output: Oct 19, 2007 10:48:13 AM org.apache.cxf.tools.wsdlto.core.PluginLoader loadPlugin INFO: Loading plugin jar:file:/home/ivo/.m2/repository/org/apache/cxf/cxf-tools-wsdlto-frontend-jaxws/2.1-incubator-SNAPSHOT/cxf-tools-wsdlto-frontend-jaxws-2.1-incubator-SNAPSHOT.jar!/META-INF/tools-plugin.xml Oct 19, 2007 10:48:13 AM org.apache.cxf.tools.wsdlto.core.PluginLoader loadPlugin INFO: Found 1 frontends in jaxws plugin. Oct 19, 2007 10:48:13 AM org.apache.cxf.tools.wsdlto.core.PluginLoader loadPlugin INFO: Loading jaxws frontend from jaxws plugin. Oct 19, 2007 10:48:13 AM org.apache.cxf.tools.wsdlto.core.PluginLoader loadPlugin INFO: Loading plugin jar:file:/home/ivo/.m2/repository/org/apache/cxf/cxf-tools-wsdlto-databinding-jaxb/2.1-incubator-SNAPSHOT/cxf-tools-wsdlto-databinding-jaxb-2.1-incubator-SNAPSHOT.jar!/META-INF/tools-plugin.xml Oct 19, 2007 10:48:13 AM org.apache.cxf.tools.wsdlto.core.PluginLoader loadPlugin INFO: Found 1 databindings in jaxb plugin. Oct 19, 2007 10:48:13 AM org.apache.cxf.tools.wsdlto.core.PluginLoader loadPlugin INFO: Loading jaxb databinding from jaxb plugin. Loading FrontEnd jaxws ... Loading DataBinding jaxb ... wsdl2java -d /local/home/ivo/workspace-fresh/tesis/target/xfire-source -verbose -all /local/home/ivo/workspace-fresh/tesis/src/main/wsdl/backstage/TesisBackstageServices.wsdl wsdl2java - Apache CXF (incubator) 2.1-incubator-SNAPSHOT Oct 19, 2007 10:48:14 AM org.springframework.context.support.AbstractApplicationContext prepareRefresh INFO: Refreshing [EMAIL PROTECTED]: display name [EMAIL PROTECTED]; startup date [Fri Oct 19 10:48:14 CEST 2007]; root of context hierarchy Oct 19, 2007 10:48:14 AM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions INFO: Loading XML bean definitions from class path resource [META-INF/cxf/cxf.xml] Oct 19, 2007 10:48:15 AM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions INFO: Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-xml.xml] Oct 19, 2007 10:48:15 AM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions INFO: Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-soap.xml] Oct 19, 2007 10:48:15 AM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions INFO: Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-http.xml] Oct 19, 2007 10:48:15 AM org.springframework.beans.factory.xml.XmlBeanDefinitionReader loadBeanDefinitions INFO: Loading XML bean definitions from class path resource [META-INF/cxf/cxf-extension-http-jetty.xml] Oct 19, 2007 10:48:15 AM org.springframework.context.support.AbstractApplicationContext obtainFreshBeanFactory INFO: Bean factory for application context [EMAIL PROTECTED]: [EMAIL PROTECTED] Oct 19, 2007 10:48:15 AM org.springframework.context.support.AbstractApplicationContext$BeanPostProcessorChecker postProcessAfterInitialization INFO: Bean 'org.apache.cxf.bus.spring.Jsr250BeanPostProcessor' is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) Oct 19, 2007 10:48:15 AM org.springframework.context.support.AbstractApplicationContext$BeanPostProcessorChecker postProcessAfterInitialization INFO: Bean 'org.apache.cxf.bus.spring.BusExtensionPostProcessor' is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying) Oct 19, 2007 10:48:15 AM org.springframework.beans.factory.support.DefaultListableBeanFactory preInstantiateSingletons INFO: Pre-instantiating singletons in [EMAIL PROTECTED]: defining beans
Re: wsdl2java problem
Hi, Thanks for the tip, this seems to be the cause of the problem. We have a couple of dependencies that in turn depend on XmlSchema 1.1 (XFire among others). I think we need to look at that first because forcing the right version isn't working since the groupId changed, this means that both versions are on the classpath and that's no good at all. Regards, Ivo van Dongen James Mao wrote: We upgrade the dependency groupIdorg.apache.ws.commons.schema/groupId artifactIdXmlSchema/artifactId -version1.2/version +version1.3.2/version /dependency So you have to make sure you get this lib upgraded as well. James Hi, The stacktrace is not that informative actually (perhaps it means something to you): [INFO] [ERROR] BUILD ERROR [INFO] [INFO] org.apache.xerces.dom.DeferredDocumentImpl.getInputEncoding()Ljava/lang/String; [INFO] [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: org.apache.xerces.dom.DeferredDocumentImpl.getInputEncoding()Ljava/lang/String; at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:559) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:475) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkProjectLifecycle(DefaultLifecycleExecutor.java:891) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.forkLifecycle(DefaultLifecycleExecutor.java:734) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:505) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:488) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:458) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:306) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:273) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:140) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:322) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:115) at org.apache.maven.cli.MavenCli.main(MavenCli.java:256) 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.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.java:233) at org.apache.cxf.maven_plugin.WSDL2JavaMojo.execute(WSDL2JavaMojo.java:129) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:412) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:534) ... 20 more 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:594) at org.apache.ws.commons.schema.SchemaBuilder.build(SchemaBuilder.java:83) at org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:359) at org.apache.ws.commons.schema.XmlSchemaCollection.read(XmlSchemaCollection.java:304) at org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilder.java:1884) at org.apache.ws.commons.schema.SchemaBuilder.resolveXmlSchema(SchemaBuilder.java:1902) at org.apache.ws.commons.schema.SchemaBuilder.handleInclude(SchemaBuilder.java:1674) at