3 Replies Latest reply on Mar 26, 2008 10:01 AM by bsnyder

    Problems when installing FUSE Tooling - a few questions

    raulvk

      Hi Everyone,

       

      First of all thanks in advance for the clarity of the documentation you offer on how to install the FUSE Tooling. Such clarity is really something to be truly appreciated in the open source community! However, I have been having problems while trying to make the tool generate a new service unit project, the error I get is the following: (Just to point out, I have strictly followed your installation instructions on a fresh installation of Eclipse)

       

       

      INFO Scanning for projects...

      INFO Searching repository for plugin with prefix: 'archetype'.

      INFO org.apache.maven.plugins: checking for updates from central

      INFO org.codehaus.mojo: checking for updates from central

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

      INFO-----

      INFO Building Maven Default Project

      INFO    task-segment: archetype:create (aggregator-style)

      INFO-----

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

      INFO Setting property: classpath.resource.loader.class => 'org.codehaus.plexus.velocity.ContextClassLoaderResourceLoader'.

      INFO Setting property: velocimacro.messages.on => 'false'.

      INFO Setting property: resource.loader => 'classpath'.

      INFO Setting property: resource.manager.logwhenfound => 'false'.

      INFO archetype:create

      INFO Defaulting package to group ID: com.mycompany

      INFO We are using command line specified remote repositories: http://repo.open.iona.com/maven2

      ERROR mojo-execute : archetype:create

      Diagnosis: Error creating from archetype

      FATAL ERROR: Error executing Maven for a project

      ERROR project-execute : org.apache.maven:super-pom:jar:2.0 (  task-segment: archetype:create (aggregator-style) )

      Diagnosis: Error creating from archetype

      FATAL ERROR: Error executing Maven for a project

      INFO-----

      INFO BUILD SUCCESSFUL

      INFO-----

      INFO Total time: 4 second

      INFO Finished at: Tue Mar 25 16:40:56 GMT 2008

      INFO Memory 3M/11M

      INFO-----

      INFO Error for project: Maven Default Project (during archetype:create)

      INFO-----

      INFO Error creating from archetype

       

       

      Embedded error: OldArchetype does not exist.

      http://repo1.maven.org/maven2/org/apache/servicemix/tooling/servicemix-saxon-xslt-service-unit/3.3.0.7-fuse/servicemix-saxon-xslt-service-unit-3.3.0.7-fuse.jar

      INFO-----

      INFO Trace Error creating from archetype

      INFO-----

      ERROR reactor-execute : C:\eclipseProjects\Prueba

      FATAL ERROR: Error executing Maven for a project

      INFO BUILD ERRORS

      INFO-----

      INFO Total time: 8 seconds

      INFO Finished at: Tue Mar 25 16:40:56 GMT 2008

      INFO Final Memory: 7M/14M

      INFO-----

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

      ERROR: JDWP Unable to get JNI 1.2 environment, jvm->GetEnv() return code = -2

      JDWP exit error AGENT_ERROR_NO_JNI_ENV(183):  ../../../src/share/back/util.c:820

       

       

      I've checked the other threads on this forum but I haven't been able to fix it.

       

       

      I also have a few doubts that I outline here:

      • Since I am using a raw installation of ServiceMix v3.2.1 on my development machine, my first question is whether FUSE Tooling is actually straight-forward compatible with ServiceMix on it's own. My guess is that it is, but I would benefit from further clarification from the experts...

      • The version of STP I am able to download from the Europa Discovery site is version 0.7 (incubating), whereas the installation instructions specify version 0.6. Can you think of any incompatibilities that may arise?

      • The latest Eclipse Server Runtime I can find for ServiceMix is for v3.1. Is there any place where I can get the runtime for v3.2.1?

       

       

      Thanks in advance for your help,

       

       

      Raul.

       

      P.S.: Sorry, I have tried everything to get rid of the formatting, but I haven't been able to!

        • 1. Re: Problems when installing FUSE Tooling - a few questions
          bsnyder

          I believe that the problem you're describing is a known issue with the maven-archetype-plugin that has manifested itself in the FUSE Eclipse Tooling. Please run Maven in debug mode (-X) so that there is more detailed info about your issue so we'll know for sure.

           

          If this is the issue you're experiencing, at this time we can only provide a work around to the issue which is to manually execute the maven-archetype-plugin from the command line using the command below:

           

          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 -DgroupId=com.mycompany -DartifactId=jms-in-su -DremoteRepositories=http://repo.open.iona.com/maven2/
          

           

          The command above explicitly notes the version of the maven-archetype-plugin to use which is what works around the problem. This way Maven won't make an assumption to use the latest version of the maven-archeype-plugin which is where the problem lies.

           

          Bruce

          • 2. Re: Problems when installing FUSE Tooling - a few questions
            raulvk

            Hi Bruce,

             

            First of all, I believe you are the same person who replied to my question on the Nabble forum, so I would like to thank you for all your helpful assistance.

             

            Running the command as you specify it is possible from the command-line shell, but how to I specify the parameters you indicate so that they are passed to Maven2 when it is run from Eclipse?

             

            I have also discovered an alternative solution, which allows you to pin down a specific version of a plugin for Maven to use by modifying the plugin-registry.xml on

            http://maven.apache.org/guides/introduction/introduction-to-plugin-registry.html. However I do not find this file on my particular m2 directory or in the global m2 directory, and I am unsure as to whether I should create it from scratch...

             

            Thanks a lot,

             

            Raul.

            • 3. Re: Problems when installing FUSE Tooling - a few questions
              bsnyder

               

              First of all, I believe you are the same person who replied to my question on the Nabble forum, so I would like to thank you for all your helpful assistance.

               

               

              Yes, I'm a committer on Apache ServiceMix and I work for IONA Technologies :-).

               

               

              Running the command as you specify it is possible from the command-line shell, but how to I specify the parameters you indicate so that they are passed to Maven2 when it is run from Eclipse?

               

               

              Unfortunately this is not possible with the current FUSE Eclipse Tooling.

               

               

              I have also discovered an alternative solution, which allows you to pin down a specific version of a plugin for Maven to use by modifying the plugin-registry.xml on

              http://maven.apache.org/guides/introduction/introduction-to-plugin-registry.html. However I do not find this file on my particular m2 directory or in the global m2 directory, and I am unsure as to whether I should create it from scratch...

               

               

              The reason I did not suggest this solution is that using the Maven plugin registry does not affect the FUSE Eclipse Tooling. The FUSE Eclipse Tooling uses the Maven embedder which does not obey the plugin-registry.xml file.

               

              Bruce