HI I am trying to generate client stubs using xfire in my service unit so that I will be able to write a client class in service unit which will interact with external web service deployed using axis.
My pom file entry is given below. <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> <modelVersion>4.0.0</modelVersion> <parent> <groupId>org.apache.servicemix.samples</groupId> <artifactId>first-web-app-fuse-client</artifactId> <version>3.3.0.10-fuse</version> </parent> <groupId>org.apache.servicemix.samples.first-web-app-fuse-client</groupId> <artifactId>fuse-client-http-su</artifactId> <packaging>jbi-service-unit</packaging> <name>Fuse client HTTP Service Unit :::::::</name> <dependencies> <dependency> <groupId>org.apache.servicemix</groupId> <artifactId>servicemix-core</artifactId> <version>${servicemix-version}</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.apache.servicemix</groupId> <artifactId>servicemix-cxf-se</artifactId> <version>${servicemix-version}</version> </dependency> <dependency> <groupId>org.apache.servicemix</groupId> <artifactId>servicemix-jbi</artifactId> <version>${servicemix-version}</version> <scope>provided</scope> </dependency> <dependency> <groupId>org.apache.servicemix</groupId> <artifactId>servicemix-jsr181</artifactId> <version>${servicemix-version}</version> <scope>provided</scope> </dependency> <dependency> <groupId>javax.xml.bind</groupId> <artifactId>jaxb-api</artifactId> <version>2.1</version> </dependency> <dependency> <groupId>com.sun.xml.bind</groupId> <artifactId>jaxb-impl</artifactId> <version>2.0.2</version> </dependency> <dependency> <groupId>com.sun.xml.bind</groupId> <artifactId>jaxb-xjc</artifactId> <version>2.0.2</version> </dependency> </dependencies> <build> <plugins> <plugin> <artifactId>maven-compiler-plugin</artifactId> <configuration> <source>1.5</source> <target>1.5</target> </configuration> </plugin> <!-- Plugin for xfire stubs --> <plugin> <artifactId>maven-antrun-plugin</artifactId> <executions> <execution> <phase>generate-sources</phase> <configuration> <tasks> <taskdef classname="org.codehaus.xfire.gen.WsGenTask" name="wsgen" classpathref="maven.compile.classpath"> </taskdef> <wsgen wsdl="${basedir}/src/main/resources/fib.wsdl" outputDirectory="${basedir}/target/generated-sources" profile="org.codehaus.xfire.jaxws.gen.JAXWSProfile" explicitAnnotation="true" /> </tasks> <sourceRoot> ${basedir}/target/generated-sources </sourceRoot> </configuration> <goals> <goal>run</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.apache.servicemix.tooling</groupId> <artifactId>jbi-maven-plugin</artifactId> <version>${servicemix-version}</version> <extensions>true</extensions> </plugin> </plugins> </build> </project> But I am getting following error. C:\mavenProject\HTTPFuseClient>mvn -e install + Error stacktraces are turned on. [INFO] Scanning for projects... [INFO] Reactor build order: [INFO] First HTTP Fuse Client Example [INFO] Fuse client HTTP Service Unit ::::::: [INFO] Fuse Client ::::BC [INFO] HTTP Web service Fuse Client:::: [INFO] ------------------------------------------------------------------------ [INFO] Building First HTTP Fuse Client Example [INFO] task-segment: [install] [INFO] ------------------------------------------------------------------------ [INFO] [build:copy {execution: default}] [INFO] [site:attach-descriptor] [INFO] [install:install] [INFO] Installing C:\mavenProject\HTTPFuseClient\pom.xml to \path\to\local\repo\org\apache\servicemix\samples st-web-app-fuse-client\3.3.0.10-fuse\first-web-app-fuse-client-3.3.0.10-fuse.pom [INFO] ------------------------------------------------------------------------ [INFO] Building Fuse client HTTP Service Unit ::::::: [INFO] task-segment: [install] [INFO] ------------------------------------------------------------------------ Downloading: http://repo.open.iona.com/maven2/wss4j/wss4j/1.5.1/wss4j-1.5.1.pom Downloading: http://repo.open.iona.com/maven2-all/wss4j/wss4j/1.5.1/wss4j-1.5.1.pom Downloading: http://repo1.maven.org/maven2/wss4j/wss4j/1.5.1/wss4j-1.5.1.pom Downloading: http://repo.open.iona.com/maven2/xfire/saaj-impl/1.3/saaj-impl-1.3.pom Downloading: http://repo.open.iona.com/maven2-all/xfire/saaj-impl/1.3/saaj-impl-1.3.pom Downloading: http://repo1.maven.org/maven2/xfire/saaj-impl/1.3/saaj-impl-1.3.pom [INFO] [antrun:run {execution: default}] [INFO] Executing tasks [INFO] ------------------------------------------------------------------------ [ERROR] BUILD ERROR [INFO] ------------------------------------------------------------------------ [INFO] Error executing ant tasks Embedded error: org.codehaus.xfire.gen.GenerationException: Error generating JAXB model. [INFO] ------------------------------------------------------------------------ [INFO] Trace org.apache.maven.lifecycle.LifecycleExecutionException: Error executing ant tasks at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:583 at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecu java:499) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:478) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleE tor.java:330) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.j 291) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129) at org.apache.maven.cli.MavenCli.main(MavenCli.java:287) 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: Error executing ant tasks at org.apache.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractAntMojo.java:114) at org.apache.maven.plugin.antrun.AntRunMojo.execute(AntRunMojo.java:83) at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451) at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558 ... 16 more Caused by: org.codehaus.xfire.gen.GenerationException: Error generating JAXB model. at org.codehaus.xfire.gen.WsGenTask.execute(WsGenTask.java:72) 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.maven.plugin.antrun.AbstractAntMojo.executeTasks(AbstractAntMojo.java:108) ... 19 more Caused by: org.codehaus.xfire.gen.GenerationException: Error generating JAXB model. at org.codehaus.xfire.gen.jaxb.JAXBSchemaSupport.initialize(JAXBSchemaSupport.java:108) at org.codehaus.xfire.gen.Wsdl11Generator.generate(Wsdl11Generator.java:154) at org.codehaus.xfire.gen.WsGenTask.execute(WsGenTask.java:68) ... 23 more [INFO] ------------------------------------------------------------------------ [INFO] Total time: 22 seconds [INFO] Finished at: Tue Jul 08 11:53:52 GMT+05:30 2008 [INFO] Final Memory: 23M/41M [INFO] ------------------------------------------------------------------------ Could you please help me in resolving this? Jayasree.B -- View this message in context: http://www.nabble.com/Urgent%3A%3A%3Aorg.codehaus.xfire.gen.GenerationException%3A-Error-generating-JAXB-model-tp18332627p18332627.html Sent from the ServiceMix - User mailing list archive at Nabble.com.
