1 2 Previous Next 22 Replies Latest reply on Apr 1, 2009 2:57 AM by ankit.vernekar Go to original post
      • 15. Re: Archetype does not exist - trying to run example by A.Trenaman, file-to-jms
        finn.kerry

        Sure - its "org.apahce.servicemix-file-poller-service-unitL3.2.3 "

        • 16. Re: Archetype does not exist - trying to run example by A.Trenaman, file-to-jms
          ubhole

          I have just tried it and with nexus indexer I had no problem using file poller archetype. I didn't even change from embedded maven to external 2.0.9 version.

          • 17. Re: Archetype does not exist - trying to run example by A.Trenaman, file-to-jms
            finn.kerry

            Not sure this helps - but here's what I get when I run the mvn archetype:generate command.

             

            Any help is appreciated.

            Kerry

             

            $ mvn archetype:generate -DarchetypeRepository=http://repo.open.iona.com/maven2

            -DarchetypeGroupId=org.apache.servicemix.tooling -DarchetypeArtifactId=service

            mix-file-poller-service-unit -DarchetypeVersion=3.3.1.11-fuse -DgroupId=com.pro

            gress.ps -DartifactId=file2jms -Dversion=1.0-SNAPSHOT

            Scanning for projects...

            Searching repository for plugin with prefix: 'archetype'.

            -


            Building Maven Default Project

                task-segment: archetype:generate (aggregator-style)

            -


            Preparing archetype:generate

            No goals needed for project - skipping

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

            .velocity.ContextClassLoaderResourceLoader'.

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

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

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

            archetype:generate

            Generating project in Interactive mode

            Archetype defined by properties

            Confirm properties configuration:

            groupId: com.progress.ps

            artifactId: file2jms

            version: 1.0-SNAPSHOT

            package: com.progress.ps

            Y: :

            -


            ---

            Using following parameters for creating OldArchetype: servicemix-file-pol

            ler-service-unit:3.3.1.11-fuse

            -


            ---

            Parameter: groupId, Value: com.progress.ps

            Parameter: packageName, Value: com.progress.ps

            Parameter: basedir, Value: c:\dev\FUSE\maventest

            Parameter: package, Value: com.progress.ps

            Parameter: version, Value: 1.0-SNAPSHOT

            Parameter: artifactId, Value: file2jms

            org.apache.velocity.runtime.exception.ReferenceException: reference :

            template = archetype-resources/pom.xml : ${servicemix-versio

            n} is not a valid reference.

            org.apache.velocity.runtime.exception.ReferenceException: reference :

            template = archetype-resources/pom.xml : ${servicemix-versio

            n} is not a valid reference.

            org.apache.velocity.runtime.exception.ReferenceException: reference :

            template = archetype-resources/pom.xml : ${servicemix-versi

            on} is not a valid reference.

            ********************* End of debug info from resources from generated POM

            ***********************

            OldArchetype created in dir: c:\dev\FUSE\maventest\file2jms

            -


            BUILD SUCCESSFUL

            -


            Total time: 54 seconds

            Finished at: Sat Mar 07 19:30:52 GMT 2009

            Final Memory: 8M/14M

            -


             

            • 18. Re: Archetype does not exist - trying to run example by A.Trenaman, file-to-jms
              ubhole
              finn.kerry wrote:

               

              OldArchetype created in dir: c:\dev\FUSE\maventest\file2jms

              ------------------------------------------------------------------------

              BUILD SUCCESSFUL

               

              Hi Kerry,

              This does say it has generated the project. If you look at the file2jms folder you should see src/main/resources/xbean.xml.

               

              Ulhas

              • 19. Re: Archetype does not exist - trying to run example by A.Trenaman, file-to-jms
                finn.kerry

                Ulhas,

                thanks for your help, i decided to start with the latest version of FUSE (4) and things are going much better.

                 

                Kerry

                • 20. Re: Archetype does not exist - trying to run example by A.Trenaman, file-to-jms
                  ankit.vernekar

                  Hello folks,

                                 I am also trying to run the file poller. Read all the solutions on the forum and implemented the same.I am using eclipse 3.4.1 and fuse esb 4.0.Also tried all the versions of jbi-maven plugin(3.2.3,3.3.1.13-fuse,4.0) but still no sucess.Sometimes i get a successful build but no entry in the repository.Also the errors that I get at times are

                   

                  Exception in thread "main" java.lang.NoSuchMethodError: org.apache.maven.artifact.resolver.ArtifactResolutionResult.setArtifactResolutionNodes(Ljava/util/Set;)V at org.apache.servicemix.maven.plugin.jbi.GraphArtifactCollector.collect(GraphArtifactCollector.java:92)

                       at org.apache.servicemix.maven.plugin.jbi.AbstractJbiMojo.resolveProject(AbstractJbiMojo.java:215)

                       at org.apache.servicemix.maven.plugin.jbi.GenerateServiceAssemblyDescriptorMojo.execute(GenerateServiceAssemblyDescriptorMojo.java:157)

                       at etc... (using 3.2.3 or 3.3.1.13-fuse)

                   

                   

                  and for 4.0 i get

                   

                  java.lang.StringIndexOutOfBoundsException: String index out of range: -1

                       at java.lang.String.substring(Unknown Source)

                       at org.apache.servicemix.maven.plugin.jbi.GenerateServiceAssemblyDescriptorMojo.generateJbiDescriptor(GenerateServiceAssemblyDescriptorMojo.java:212)

                       at org.apache.servicemix.maven.plugin.jbi.GenerateServiceAssemblyDescriptorMojo.execute(GenerateServiceAssemblyDescriptorMojo.java:158)

                       at org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:579)

                       at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:498)

                       at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmentForProject(DefaultLifecycleExecutor.java:265)

                       at org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:191)

                       at org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:149)

                       at org.apache.maven.DefaultMaven.execute_aroundBody0(DefaultMaven.java:223)

                       at org.apache.maven.DefaultMaven.execute_aroundBody1$advice(DefaultMaven.java:304)

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

                   

                  Please help .Thank You in advance

                   

                  Regards

                  Ankit Vernekar

                  • 21. Re: Archetype does not exist - trying to run example by A.Trenaman, file-to-jms
                    ubhole

                    Hi Ankit,

                    can you tell me more about what you are trying to do?

                     

                    Ulhas

                    • 22. Re: Archetype does not exist - trying to run example by A.Trenaman, file-to-jms
                      ankit.vernekar

                      Hi Ulhas

                                 I was trying to run the file poller example by A.Trenaman.Reading a xml from dir and sending it to activemq.Now using maven externally i am able to run the example.The issue has been resolved.

                                 But there is a twist here.I need to get a acknowledgment from active mq when the receiver receives the xml file.I have searched for solutions but they require a lot of resources.Do u have any idea as how to receive a async acknowledgment so that i am sure whether the xml reached the receiver (main focus on easily implementable solution).Thanks in advance.

                       

                      Ankit

                      1 2 Previous Next