12 Replies Latest reply on Mar 17, 2008 4:27 PM by Bruce Snyder

    Problem with first tutorial

    Frédéric Therrien Newbie

      Hey, I've just download Fuse plug-in for eclipse and I'm doing the tutorial here :http://repo.open.iona.com/podcasts/servicemix/contract-first.swf

       

      When I create the projet, I click finished and I got an error message:

       

      Embedded error: OldArchetype does not exist.

      http://repo1.maven.org/maven2/org/apache/servicemix/tooling/servicemix-jsr181-wsdl-first-service-unit/3.3.0.7-fuse/servicemix-jsr181-wsdl-first-service-unit-3.3.0.7-fuse.jar

      -


      Trace Error creating from archetype

      -


      reactor-execute : C:\workspaces\TA09\Code\PricingService

      FATAL ERROR: Error executing Maven for a project

      BUILD ERRORS

      -


      Total time: 4 seconds

      Finished at: Thu Mar 13 16:04:54 EDT 2008

      Final Memory: 7M/14M

      -


      org.apache.maven.reactor.MavenExecutionException: Some builds failed

           at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:210)

           at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:690)

           at org.maven.ide.eclipse.Maven2Executor.main(Maven2Executor.java:112)

       

       

      Anyone know what to do with that ?

       

      Thx

        • 1. Re: Problem with first tutorial
          Bruce Snyder Novice

          This error is the result of a known issue with the maven-archetype-plugin. Recently a new version of the maven-archetype-plugin was released that completely changed the functionality and caused some errors. The only work around is to execute the command to utilize the maven-archetype-plugin from the command line instead of from inside the FUSE Eclipse Tooling. The following command is equivalent to creating a new project in Eclipse using the servicemix-jsr181 component but it needs to be run from the command line:

           

          mvn org.apache.maven.plugins:maven-archetype-plugin:1.0-alpha-7:create -DarchetypeGroupId=org.apache.servicemix.tooling -DarchetypeArtifactId=servicemix-jsr181-service-unit -DarchetypeVersion=3.3.0.7-fuse -DremoteRepositories=http://repo.open.iona.com/maven2 -DgroupId=com.mycompany  -DartifactId=my-jsr181-su
          

           

          The command above runs Maven directly from the command line and specifies the package-name:plugin-name:version:goal-name that needs to be run and the options for that plugin and goal. By explicitly specifying the package-name:plugin-name:version:goal-name for the maven-archetype-plugin in this manner, you will work around the problem of Maven downloading and using the latest version of the maven-archetype-plugin. Version 1.0-alpha-7 is the previous version of the maven-archetype-plugin that worked correctly.

           

          Bruce

          • 2. Re: Problem with first tutorial
            Frédéric Therrien Newbie

            Hey Bruce, thx for your help. I run your command and I have 2 problems:

             

            The more important is I still have an error message, I got:

            "Embedded error: Archetype does not exist.

            Unable to download the artifact from any repository"

             

            The second one (maybe related to the first one) is there is no project created in my folder.

             

            Do you have any other idea ?

             

            Edit 1********************

            I just ran:

             

            mvn org.apache.maven.plugins:maven-archetype-plugin:1.0-alpha-7:create -DarchetypeGroupId=net.liftweb -DarchetypeArtifactId=lift-archetype-basic -DarchetypeVersion=0.6 -DremoteRepositories=http://scala-tools.org/repo-releases -DgroupId=com.liftone -DartifactId=liftone

             

            and it works perfectly, so I don't understand why our command line isn't working... :S

             

            Edit2****************

            I just noticed that we try to download something from:

            http://repo.open.iona.com/maven2/org/apache/servicemix/tooling/servicemix-jsr181-service-unit/3.3.0.7-fuse/servicemix-jsr181-service-unit-3.3.0.7-fuse.jar     

             

            But this path doesn't exist. What I found look like:

            http://repo.open.iona.com/maven2/org/apache/servicemix/tooling/servicemix-service-unit/3.3.0.7-fuse/servicemix-service-unit-3.3.0.7-fuse.jar

             

            Seem they rename directory....

             

            Edit3********************

            Here is the modified command I ran:

            mvn org.apache.maven.plugins:maven-archetype-plugin:1.0-alpha-7:create -DarchetypeGroupId=org.apache.servicemix.tooling -DarchetypeArtifactId=servicemix-service-unit  -DarchetypeVersion=3.3.0.7-fuse -DremoteRepositories=http://repo.open.iona.com/maven2  -DgroupId=com.mycompany  -DartifactId=my-jsr181-su

             

            The project was successfully created, but now I can't import or open it with eclipse... that's bad, I can't continue to code :S

             

            Any idea for that ??

             

            Another problem with that is some folder seem to be missing. In the tutorial, we have the folders: target/generated-sources, build and src, etc... I didn't see that.

             

            Edit4*************************

            Ok, I found the good cmd:

            mvn org.apache.maven.plugins:maven-archetype-plugin:1.0-alpha-7:create -DarchetypeGroupId=org.apache.servicemix.tooling -DarchetypeArtifactId=servicemix-jsr181-wsdl-first-service-unit -DarchetypeVersion=3.3.0.7-fuse -DremoteRepositories=http://repo.open.iona.com/maven2  -DgroupId=com.mycompany  -DartifactId=my-jsr181-su

             

            By the way, in the tool of Fuse, it seem to try to access the url http://repo1.... I don't know if it's ok, but you can take a look if you want.

             

            Thx

             

            Edited by: fredth on Mar 14, 2008 9:00 AM

             

            Edited by: fredth on Mar 14, 2008 9:07 AM

             

            Edited by: fredth on Mar 14, 2008 9:16 AM

             

            Edited by: fredth on Mar 14, 2008 9:18 AM

             

            Edited by: fredth on Mar 14, 2008 9:46 AM

            • 3. Re: Problem with first tutorial
              Frédéric Therrien Newbie

              Ok, I've been trying the tutorial since like 8h and I'm still only at the half. Is it in the plan to review the tutorial and the plug-in to match the new version. I mean, the first step is to create the projet and the project doesn't have the same name in the new version. We have to create manually all the project because of the maven bug. When we want to create the code from the wsdl, the path isn't the good one (not looking in the projet but in the folder upper), etc.

               

              I don't think I can continue right now.

              • 4. Re: Problem with first tutorial
                Bruce Snyder Novice

                 

                The project was successfully created, but now I can't import or open it with eclipse... that's bad, I can't continue to code :S

                 

                Any idea for that ??

                 

                 

                The problem is that you're working through a tutorial that is a bit outdated. Most folks access the old tutorials from the bottom of the FUSE Eclipse Tooling wiki page where there's a statement about them being outdated.

                 

                You will be able to import this into Eclipse if you simply run the eclipse:eclipse goal from within the project directory. Then just do File>Import>Existing Projects in Workspace and select the project directory and it should recognize the project. This is the easiest way to import projects currently.

                 

                 

                Another problem with that is some folder seem to be missing. In the tutorial, we have the folders: target/generated-sources, build and src, etc... I didn't see that.

                 

                 

                If you edit the pom.xml file and change the configuration of the xfire-maven-plugin's outputDirectory element to point to the correct directory. Below is the correct element:

                 

                <outputDirectory>target/generated-sources</outputDirectory>
                

                 

                This will update the output directory for the sources to match that of the directory included as a build resource in the pom.xml.

                 

                 

                By the way, in the tool of Fuse, it seem to try to access the url http://repo1.... I don't know if it's ok, but you can take a look if you want.

                 

                 

                Yes, that's standard functionality for Maven. The FUSE Eclipse Tooling uses Maven to create JBI projects so it's using standard Maven functionality which requires that it download artifacts from Maven repositories on the internet.

                 

                Bruce

                • 5. Re: Problem with first tutorial
                  Bruce Snyder Novice

                   

                  Ok, I've been trying the tutorial since like 8h and I'm still only at the half. Is it in the plan to review the tutorial and the plug-in to match the new version. I mean, the first step is to create the projet and the project doesn't have the same name in the new version. We have to create manually all the project because of the maven bug. When we want to create the code from the wsdl, the path isn't the good one (not looking in the projet but in the folder upper), etc.

                   

                  I don't think I can continue right now.

                   

                   

                  As I stated previously, the tutorial you're using is outdated. Anymore, when folks need to develop web services, we recommend the use of the FUSE Services Framework (which is based on Apache CXF) via the use of the servicemix-cxf-bc and servicemix-cxf-se JBI components. Have you looked at the cxf-wsdl-first example?

                   

                  As for the issues in the maven-archetype-plugin, the best way to work around them right now is to run the Maven commands on the command line. This will allow you to create projects the same way that the FUSE Eclipse Tooling creates projects.

                   

                  If you have anymore questions, please let us know.

                   

                  Bruce

                  • 6. Re: Problem with first tutorial
                    Frédéric Therrien Newbie

                    Hey Bruce, thx for all your help. I've tried everything you said and it's working great. I'm still at the beginning of the second tutorial, but with your comments, I should be able to continue. I will tell you if I have other problems.

                     

                    Fred

                    • 7. Re: Problem with first tutorial
                      Frédéric Therrien Newbie

                      Here is my next question: When I'm done create the wsdl as I wish, I need to generate source. When I do that, I go an error:

                       

                      Embedded error: org.codehaus.xfire.gen.GenerationException: Error generating JAXB model.

                       

                      I have the same error when trying to install the service and httpconsumer.

                      I check on the net and they talk about a bad librairy, but I'm not sure of that... or duplicate definition, but I don't know how to work around.

                       

                      Any idea ?

                       

                      Full stack:

                      Scanning for projects...

                      -


                      Building An example JSR-181 Service Unit

                          task-segment:

                      -


                      artifact org.apache.maven.plugins:maven-resources-plugin: checking for updates from open.iona.m2

                      artifact org.apache.maven.plugins:maven-resources-plugin: checking for updates from central

                      artifact org.apache.maven.plugins:maven-compiler-plugin: checking for updates from open.iona.m2

                      artifact org.apache.maven.plugins:maven-compiler-plugin: checking for updates from central

                      artifact org.apache.maven.plugins:maven-surefire-plugin: checking for updates from open.iona.m2

                      artifact org.apache.maven.plugins:maven-surefire-plugin: checking for updates from central

                      artifact org.apache.maven.plugins:maven-jar-plugin: checking for updates from open.iona.m2

                      artifact org.apache.maven.plugins:maven-jar-plugin: checking for updates from central

                      artifact org.apache.maven.plugins:maven-install-plugin: checking for updates from open.iona.m2

                      artifact org.apache.maven.plugins:maven-install-plugin: checking for updates from central

                      Unable to get resource from repository open.iona.m2 (http://repo.open.iona.com/maven2)

                      Unable to get resource from repository central (http://repo1.maven.org/maven2)

                      Unable to get resource from repository open.iona.m2 (http://repo.open.iona.com/maven2)

                      Unable to get resource from repository central (http://repo1.maven.org/maven2)

                      Unable to get resource from repository open.iona.m2 (http://repo.open.iona.com/maven2)

                      Unable to get resource from repository central (http://repo1.maven.org/maven2)

                      Unable to get resource from repository open.iona.m2 (http://repo.open.iona.com/maven2)

                      Unable to get resource from repository central (http://repo1.maven.org/maven2)

                      Unable to get resource from repository open.iona.m2 (http://repo.open.iona.com/maven2)

                      Unable to get resource from repository central (http://repo1.maven.org/maven2)

                      xfire:wsgen

                      Executing XFire WsGen task with url: file:/C:/Documents%20and%20Settings/therrifr.DMR/workspace/PricingService/src/main/resources/service.wsdl

                      log4j:WARN No appenders could be found for logger (org.codehaus.xfire.gen.Wsdl11Generator).

                       

                      log4j:WARN Please initialize the log4j system properly.

                       

                      mojo-execute : xfire:wsgen

                      Diagnosis: command execution failed

                      FATAL ERROR: Error executing Maven for a project

                      project-execute : com.mycompany:PricingService:jbi-service-unit:1.0-SNAPSHOT (  task-segment: )

                      Diagnosis: command execution failed

                      FATAL ERROR: Error executing Maven for a project

                      -


                      BUILD SUCCESSFUL

                      -


                      Total time: 16 second

                      Finished at: Sat Mar 15 10:50:52 EDT 2008

                      Memory 2M/20M

                      -


                      Error for project: An example JSR-181 Service Unit (during install)

                      -


                      command execution failed

                       

                      Embedded error: org.codehaus.xfire.gen.GenerationException: Error generating JAXB model.

                      -


                      Trace command execution failed

                      -


                      reactor-execute : C:\Documents and Settings\therrifr.DMR\workspace\PricingService

                      FATAL ERROR: Error executing Maven for a project

                      BUILD ERRORS

                      -


                      Total time: 17 seconds

                      Finished at: Sat Mar 15 10:50:52 EDT 2008

                      Final Memory: 11M/20M

                      -


                      org.apache.maven.reactor.MavenExecutionException: Some builds failed

                           at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:210)

                           at org.apache.maven.embedder.MavenEmbedder.execute(MavenEmbedder.java:690)

                           at org.maven.ide.eclipse.Maven2Executor.main(Maven2Executor.java:112)

                      • 8. Re: Problem with first tutorial
                        Bruce Snyder Novice

                         

                        Here is my next question: When I'm done create the wsdl as I wish, I need to generate source. When I do that, I go an error:

                         

                        Embedded error: org.codehaus.xfire.gen.GenerationException: Error generating JAXB model.

                         

                        I have the same error when trying to install the service and httpconsumer.

                        I check on the net and they talk about a bad librairy, but I'm not sure of that... or duplicate definition, but I don't know how to work around.

                         

                         

                        This might be due to the use of RPC encoding. Are you using RPC encoding perhaps? XFire doesn't support RPC encoding; you should trying using doc literal instead.

                         

                        Bruce

                        • 9. Re: Problem with first tutorial
                          Frédéric Therrien Newbie

                          I've tried to change it to document and it's not working....

                           

                          Other ideas ?

                          • 10. Re: Problem with first tutorial
                            Bruce Snyder Novice

                            Please attach the Maven debug output (add -X to the command) so I can see exactly what is happening.

                             

                            Bruce

                            • 11. Re: Problem with first tutorial
                              Frédéric Therrien Newbie

                              The stack trace is REALLY LONG... but here is the last stuff I have.

                               

                              me)

                                     org.codehaus.xfire:xfire-core:jar:1.2.5:runtime (selected for runt

                              ime)

                                       javax.mail:mail:jar:1.4:runtime (selected for runtime)

                                       wsdl4j:wsdl4j:jar:1.6.1:runtime (selected for runtime)

                                       jaxen:jaxen:jar:1.1-beta-9:runtime (selected for runtime)

                                         jaxen:jaxen:jar:1.0-FCS:runtime (removed - causes a cycle in t

                              he graph)

                                         jdom:jdom:jar:1.0:runtime (selected for runtime)

                                         xerces:xmlParserAPIs:jar:2.6.2:runtime (selected for runtime)

                                         xerces:xercesImpl:jar:2.6.2:runtime (selected for runtime)

                                       stax:stax-api:jar:1.0.1:runtime (selected for runtime)

                                       commons-codec:commons-codec:jar:1.3:runtime (selected for runtim

                              e)

                                       org.apache.ws.commons:XmlSchema:jar:1.1:runtime (selected for ru

                              ntime)

                                         stax:stax-api:jar:1.0:runtime (removed - nearer found: 1.0.1)

                                       org.codehaus.woodstox:wstx-asl:jar:3.2.0:runtime (selected for r

                              untime)

                                       jdom:jdom:jar:1.0:runtime (selected for runtime)

                                       commons-logging:commons-logging:jar:1.0.4:runtime (selected for

                              runtime)

                                       commons-httpclient:commons-httpclient:jar:3.0:runtime (selected

                              for runtime)

                                         commons-logging:commons-logging:jar:1.0.3:runtime (removed - n

                              earer found: 1.0.4)

                                         commons-codec:commons-codec:jar:1.2:runtime (removed - nearer

                              found: 1.3)

                              While downloading stax-utils:stax-utils:snapshot-20040917

                                This artifact has been relocated to net.java.dev.stax-utils:stax-utils:2004091

                              7.

                               

                               

                                     net.java.dev.stax-utils:stax-utils:jar:20040917:runtime (selected

                              for runtime)

                                   javax.xml.ws:jaxws-api:jar:2.0:runtime (selected for runtime)

                                     javax.xml.bind:jaxb-api:jar:2.0:runtime (selected for runtime)

                                       javax.xml.bind:jsr173_api:jar:1.0:runtime (selected for runtime)

                               

                                   org.codehaus.xfire:xfire-core:jar:1.2.5:runtime (selected for runtim

                              e)

                                     javax.mail:mail:jar:1.4:runtime (selected for runtime)

                                     wsdl4j:wsdl4j:jar:1.6.1:runtime (selected for runtime)

                                     jaxen:jaxen:jar:1.1-beta-9:runtime (selected for runtime)

                                       jaxen:jaxen:jar:1.0-FCS:runtime (removed - causes a cycle in the

                              graph)

                                       jdom:jdom:jar:1.0:runtime (selected for runtime)

                                       xerces:xmlParserAPIs:jar:2.6.2:runtime (selected for runtime)

                                       xerces:xercesImpl:jar:2.6.2:runtime (selected for runtime)

                                     stax:stax-api:jar:1.0.1:runtime (selected for runtime)

                                     commons-codec:commons-codec:jar:1.3:runtime (selected for runtime)

                               

                                     org.apache.ws.commons:XmlSchema:jar:1.1:runtime (selected for runt

                              ime)

                                       stax:stax-api:jar:1.0:runtime (removed - nearer found: 1.0.1)

                                     org.codehaus.woodstox:wstx-asl:jar:3.2.0:runtime (selected for run

                              time)

                                     jdom:jdom:jar:1.0:runtime (selected for runtime)

                                     commons-logging:commons-logging:jar:1.0.4:runtime (selected for ru

                              ntime)

                                     commons-httpclient:commons-httpclient:jar:3.0:runtime (selected fo

                              r runtime)

                                       commons-logging:commons-logging:jar:1.0.3:runtime (removed - nea

                              rer found: 1.0.4)

                                       commons-codec:commons-codec:jar:1.2:runtime (removed - nearer fo

                              und: 1.3)

                                   org.codehaus.xfire:xfire-jaxb2:jar:1.2.5:runtime (selected for runti

                              me)

                                     org.codehaus.xfire:xfire-java5:jar:1.2.5:runtime (selected for run

                              time)

                                       org.codehaus.xfire:xfire-annotations:jar:1.2.5:runtime (selected

                              for runtime)

                                         commons-beanutils:commons-beanutils:jar:1.7.0:runtime (selecte

                              d for runtime)

                                           commons-logging:commons-logging:jar:1.0.3:runtime (removed -

                              nearer found: 1.0.4)

                                         commons-attributes:commons-attributes-api:jar:2.1:runtime (sel

                              ected for runtime)

                                           ant:ant:jar:1.5:runtime (selected for runtime)

                                           qdox:qdox:jar:1.5:runtime (selected for runtime)

                                       xfire:xfire-jsr181-api:jar:1.0-M1:runtime (selected for runtime)

                               

                                     org.codehaus.xfire:xfire-annotations:jar:1.2.5:runtime (selected f

                              or runtime)

                                       commons-beanutils:commons-beanutils:jar:1.7.0:runtime (selected

                              for runtime)

                                         commons-logging:commons-logging:jar:1.0.3:runtime (removed - n

                              earer found: 1.0.4)

                                       commons-attributes:commons-attributes-api:jar:2.1:runtime (selec

                              ted for runtime)

                                         ant:ant:jar:1.5:runtime (selected for runtime)

                                         qdox:qdox:jar:1.5:runtime (selected for runtime)

                                     com.sun.xml.bind:jaxb-xjc:jar:2.0.1:runtime (selected for runtime)

                               

                                       com.sun.xml.bind:jaxb-impl:jar:2.0.1:runtime (selected for runti

                              me)

                                         javax.xml:jaxb-api:jar:2.0:runtime (selected for runtime)

                                   xfire:saaj-impl:jar:1.3:runtime (selected for runtime)

                                   org.codehaus.xfire:xfire-java5:jar:1.2.5:runtime (selected for runti

                              me)

                                     xfire:xfire-jsr181-api:jar:1.0-M1:runtime (selected for runtime)

                                   org.codehaus.xfire:xfire-generator:jar:1.2.5:runtime (selected for r

                              untime)

                                     org.codehaus.xfire:xfire-xmlbeans:jar:1.2.5:runtime (selected for

                              runtime)

                                       xmlbeans:xbean:jar:2.2.0:runtime (selected for runtime)

                                     org.codehaus.xfire:xfire-spring:jar:1.2.5:runtime (selected for ru

                              ntime)

                                       org.apache.xbean:xbean-spring:jar:2.8:runtime (selected for runt

                              ime)

                                         commons-logging:commons-logging:jar:1.0.3:runtime (removed - n

                              earer found: 1.0.4)

                                         org.springframework:spring:jar:1.2.4:runtime (selected for run

                              time)

                                       org.springframework:spring:jar:1.2.4:runtime (removed - nearer f

                              ound: 1.2.6)

                                       org.springframework:spring:jar:1.2.6:runtime (selected for runti

                              me)

                                   org.codehaus.xfire:xfire-xmlbeans:jar:1.2.5:runtime (selected for ru

                              ntime)

                                     xmlbeans:xbean:jar:2.2.0:runtime (selected for runtime)

                                   org.codehaus.xfire:xfire-annotations:jar:1.2.5:runtime (selected for

                              runtime)

                                     commons-beanutils:commons-beanutils:jar:1.7.0:runtime (selected fo

                              r runtime)

                                       commons-logging:commons-logging:jar:1.0.3:runtime (removed - nea

                              rer found: 1.0.4)

                                     commons-attributes:commons-attributes-api:jar:2.1:runtime (selecte

                              d for runtime)

                                       ant:ant:jar:1.5:runtime (selected for runtime)

                                       qdox:qdox:jar:1.5:runtime (selected for runtime)

                                   javax.xml.soap:saaj-api:jar:1.3:runtime (selected for runtime)

                              While downloading activation:activation:1.0.2

                                This artifact has been relocated to javax.activation:activation:1.0.2.

                               

                               

                                     javax.activation:activation:jar:1.0.2:runtime (removed - nearer fo

                              und: 1.1)

                              Adding managed dependencies for org.apache.maven:maven-plugin-api

                                 org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9

                                 org.codehaus.plexus:plexus-utils:jar:1.0.5

                                 org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-5

                                 org.apache.maven.wagon:wagon-ssh:jar:1.0-alpha-5

                                 org.apache.maven.wagon:wagon-file:jar:1.0-alpha-5

                                 org.apache.maven.wagon:wagon-http-lightweight:jar:1.0-alpha-5

                                 org.apache.maven:maven-plugin-api:jar:2.0.1:runtime (selected for runt

                              ime)

                                 javax.servlet:servlet-api:jar:2.3:runtime (selected for runtime)

                                 org.codehaus.xfire:xfire-generator:jar:1.2.5:runtime (selected for run

                              time)

                                   org.codehaus.xfire:xfire-spring:jar:1.2.5:runtime (selected for runt

                              ime)

                                     junit:junit:jar:3.8.1:runtime (selected for runtime)

                                     org.apache.xbean:xbean-spring:jar:2.8:runtime (selected for runtim

                              e)

                                       commons-logging:commons-logging:jar:1.0.3:runtime (removed - nea

                              rer found: 1.0.4)

                                       org.springframework:spring:jar:1.2.4:runtime (selected for runti

                              me)

                                     org.springframework:spring:jar:1.2.4:runtime (removed - nearer fou

                              nd: 1.2.6)

                                     org.springframework:spring:jar:1.2.6:runtime (selected for runtime

                              )

                              Retrieving parent-POM: org.apache.maven:maven-script::2.0 for project: n

                              ull:maven-script-ant:jar:2.0.1 from the repository.

                              Retrieving parent-POM: org.apache.maven:maven::2.0 for project: null:mav

                              en-script:pom:2.0 from the repository.

                              Adding managed dependencies for unknown:maven-script-ant

                                 org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8

                                 org.codehaus.plexus:plexus-utils:jar:1.0.4

                                 org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-5

                                 org.apache.maven.wagon:wagon-ssh:jar:1.0-alpha-5

                                 org.apache.maven.wagon:wagon-file:jar:1.0-alpha-5

                                 org.apache.maven.wagon:wagon-http-lightweight:jar:1.0-alpha-5

                                 org.apache.maven:maven-script-ant:jar:2.0.1:runtime (selected for runt

                              ime)

                              Retrieving parent-POM: org.codehaus.plexus:plexus-component-factories::1

                              .0-alpha-5 for project: null:plexus-ant-factory:jar:1.0-alpha-1 from the reposit

                              ory.

                                   org.codehaus.plexus:plexus-ant-factory:jar:1.0-alpha-1:runtime (sele

                              cted for runtime)

                                     ant:ant-launcher:jar:1.6.5:runtime (selected for runtime)

                                     ant:ant:jar:1.5:runtime (removed - nearer found: 1.6.5)

                                     ant:ant:jar:1.6.5:runtime (selected for runtime)

                                   org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9:runtime

                              (removed - nearer found: 1.0-alpha-8)

                                   org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-8:runtime

                              (selected for runtime)

                                     org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (removed - near

                              er found: 1.0.5)

                                 org.codehaus.plexus:plexus-utils:jar:1.1:runtime (removed - nearer fou

                              nd: 1.0.5)

                                 org.apache.maven:maven-project:jar:2.0.1:runtime (selected for runtime

                              )

                                   org.apache.maven:maven-profile:jar:2.0.1:runtime (selected for runti

                              me)

                                     org.apache.maven:maven-model:jar:2.0.1:runtime (selected for runti

                              me)

                                     org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9:runti

                              me (removed - nearer found: 1.0-alpha-8)

                                   org.apache.maven:maven-model:jar:2.0.1:runtime (selected for runtime

                              )

                                   org.apache.maven:maven-artifact-manager:jar:2.0.1:runtime (selected

                              for runtime)

                                     org.apache.maven:maven-repository-metadata:jar:2.0.1:runtime (sele

                              cted for runtime)

                                     org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9:runti

                              me (removed - nearer found: 1.0-alpha-8)

                                     org.apache.maven.wagon:wagon-provider-api:jar:1.0-alpha-5:runtime

                              (selected for runtime)

                                       org.codehaus.plexus:plexus-utils:jar:1.0.4:runtime (removed - ne

                              arer found: 1.0.5)

                                   org.codehaus.plexus:plexus-container-default:jar:1.0-alpha-9:runtime

                              (removed - nearer found: 1.0-alpha-8)

                                 log4j:log4j:jar:1.2.13:runtime (selected for runtime)

                              Configuring mojo 'org.apache.servicemix.tooling:xfire-maven-plugin:3.3.0

                              .7-fuse:wsgen' -->

                                 (f) outputDirectory = C:\Documents and Settings\therrifr.DMR\workspace

                              \PricingService\target\generated-sources

                                 (f) profile = org.codehaus.xfire.jaxws.gen.JAXWSProfile

                                 (f) project = MavenProject: com.mycompany:PricingService:1.0-SNAPSHOT

                              @ C:\Documents and Settings\therrifr.DMR\workspace\PricingService\pom.xml

                                 (f) wsdls = [C:\Documents and Settings\therrifr.DMR\workspace\PricingS

                              ervice/src/main/resources/service.wsdl]

                              -- end configuration --

                              xfire:wsgen {execution: default}

                              Executing XFire WsGen task with url: file:/C:/Documents%20and%20Settings/

                              therrifr.DMR/workspace/PricingService/src/main/resources/service.wsdl

                              log4j:WARN No appenders could be found for logger (org.codehaus.xfire.ge

                              n.Wsdl11Generator).

                              log4j:WARN Please initialize the log4j system properly.

                              -


                              BUILD ERROR

                              -


                              command execution failed

                               

                              Embedded error: org.codehaus.xfire.gen.GenerationException: Error generating JAX

                              B model.

                              -


                              Trace

                              org.apache.maven.lifecycle.LifecycleExecutionException: command execution failed

                               

                                      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:333)

                                      at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:126)

                                      at org.apache.maven.cli.MavenCli.main(MavenCli.java:282)

                                      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:597)

                                      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: command execution fai

                              led

                                      at org.apache.servicemix.maven.plugin.xfire.WsgenMojo.exec(WsgenMojo.jav

                              a:192)

                                      at org.apache.servicemix.maven.plugin.xfire.WsgenMojo.execute(WsgenMojo.

                              java:105)

                                      at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi

                              nManager.java:447)

                                      at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa

                              ultLifecycleExecutor.java:539)

                                      ... 16 more

                              Caused by: org.codehaus.xfire.gen.GenerationException: Error generating JAXB mod

                              el.

                                      at org.codehaus.xfire.gen.WsGenTask.execute(WsGenTask.java:70)

                                      at org.apache.servicemix.maven.plugin.xfire.WsgenMojo.exec(WsgenMojo.jav

                              a:190)

                                      ... 19 more

                              Caused by: org.codehaus.xfire.gen.GenerationException: Error generating JAXB mod

                              el.

                                      at org.codehaus.xfire.gen.jaxb.JAXBSchemaSupport.initialize(JAXBSchemaSu

                              pport.java:105)

                                      at org.codehaus.xfire.gen.Wsdl11Generator.generate(Wsdl11Generator.java:

                              151)

                                      at org.codehaus.xfire.gen.WsGenTask.execute(WsGenTask.java:66)

                                      ... 20 more

                              -


                              Total time: 32 seconds

                              Finished at: Mon Mar 17 11:26:48 EDT 2008

                              Final Memory: 10M/20M

                              -


                               

                              C:\Documents and Settings\therrifr.DMR\workspace\PricingService>

                               

                              Hope it can help

                              • 12. Re: Problem with first tutorial
                                Bruce Snyder Novice

                                 

                                The stack trace is REALLY LONG... but here is the last stuff I have.

                                 

                                 

                                This is why I suggested that you attach the file instead of paste it. Copying/pasting it into the message has caused it to be truncated by the Jive Forums software so I can't really see what's happening. Please attach the Maven debug output as well as pom.xml file from your project. I may need more than this, but let's just start here for now.

                                 

                                Bruce