Ahh ... sorry about that ... I forgot about the second "gotcha" that would cause build failures for the Geronimo versioned items. As you already discovered, you need to get these artifacts into your local maven repo.

For the benefit of others ... there are a few ways to get them:
- Build the Geronimo 2.1 server locally (from the tag, not the branch - https://svn.apache.org/repos/asf/geronimo/server/tags/2.1.0) - Copy the necessary items into your local repo from the svn tag location (https://svn.apache.org/repos/asf/geronimo/server/tags/2.1.0/repository/org/...) - Copy the necessary items into your local repo from a server runtime image (<geronimo-home>/repository/org...)


Joe


Ashish Jain wrote:
Hi Joe,
The version of maven was a problem. But I hit some new errors where in the following jars where missing from repo
jaxws-tools-2.0.jar
jaxws-rt-2.0.jar
yoko-spec-corba-1.0-r615303.jar
catalina-6.0.14-G614585.jar
jasper-6.0.14-G614585.jar
After manually installing the jars I was able to successfully build all the samples.

Thank you for your suggestion

Regards
Ashish


On Wed, Jun 11, 2008 at 6:59 PM, Joe Bohn <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote:

    Ashish,

    I suspect the problem is your version of maven.  If you are building
    from samples/branches/2.1 you must use maven 2.0.7. <http://2.0.7.>
     See http://cwiki.apache.org/GMOxDOC21/sample-applications.html

    BTW, the samples are still undergoing a lot of change at the moment
    as we try to clean them up and get an official release.

    Joe


    Ashish Jain wrote:

        Hi YunFeng,
        Thanks for your suggestion. I was actually trying to checkout
        the code for
        
https://svn.apache.org/repos/asf/geronimo/samples/branches/2.1/samples/dbtester/
        After I checked out the code from
        https://svn.apache.org/repos/asf/geronimo/samples/branches/2.1/.
        I get the following error once I try to build the samples.

        [ERROR] Could not load deployer configuration:
        org.apache.geronimo.framework/ger
        onimo-gbean-deployer/2.1/car
        org.apache.geronimo.framework/geronimo-gbean-deployer/2.1/car: ADD
        org.apache.geronimo.framework/geronimo-gbean-deployer/2.1/car:
        READING
        org.apache.geronimo.framework/geronimo-gbean-deployer/2.1/car:
        SUCCEEDED
        org.apache.geronimo.framework/geronimo-gbean-deployer/2.1/car:
        RESOLVING
        org.apache.geronimo.framework/geronimo-gbean-deployer/2.1/car:
        SUCCEEDED
        org.apache.geronimo.framework/xmlbeans/2.1/car: ADD
        org.apache.geronimo.framework/xmlbeans/2.1/car: READING
        org.apache.geronimo.framework/xmlbeans/2.1/car: SUCCEEDED
        org.apache.geronimo.framework/xmlbeans/2.1/car: RESOLVING
        FINISHED

        org.apache.geronimo.kernel.config.LifecycleException: load of
        org.apache.geronim
        o.framework/geronimo-gbean-deployer/2.1/car failed
               at
        org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConf
        iguration(SimpleConfigurationManager.java:299)
               at
        org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConf
        iguration(SimpleConfigurationManager.java:280)
               at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
        Method)
               at
        sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
        java:64)
               at
        sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
        sorImpl.java:43)
               at java.lang.reflect.Method.invoke(Method.java:615)
               at
        org.apache.geronimo.gbean.runtime.ReflectionMethodInvoker.invoke(Refl
        ectionMethodInvoker.java:34)
               at
        org.apache.geronimo.gbean.runtime.GBeanOperation.invoke(GBeanOperatio
        n.java:124)
               at
        org.apache.geronimo.gbean.runtime.GBeanInstance.invoke(GBeanInstance.
        java:832)
               at
        org.apache.geronimo.gbean.runtime.RawInvoker.invoke(RawInvoker.java:5
        7)
               at
        org.apache.geronimo.kernel.basic.RawOperationInvoker.invoke(RawOperat
        ionInvoker.java:35)
               at
        org.apache.geronimo.kernel.basic.ProxyMethodInterceptor.intercept(Pro
        xyMethodInterceptor.java:96)
               at
        org.apache.geronimo.kernel.config.ConfigurationManager$$EnhancerByCGL
        IB$$78091158.loadConfiguration(<generated>)
               at
        org.apache.geronimo.mavenplugins.car.PackageMojo.buildPackage(Package
        Mojo.java:339)
               at
        org.apache.geronimo.mavenplugins.car.PackageMojo.doExecute(PackageMoj
        o.java:259)
               at
        org.codehaus.mojo.pluginsupport.MojoSupport.execute(MojoSupport.java:
        122)
               at
        org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPlugi
        nManager.java:451)
               at
        org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(Defa
        ultLifecycleExecutor.java:558)
               at
        org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLi
        fecycle(DefaultLifecycleExecutor.java:499)
               at
        org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(Defau
        ltLifecycleExecutor.java:478)
               at
        org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHan
        dleFailures(DefaultLifecycleExecutor.java:330)
               at
        org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegmen
        ts(DefaultLifecycleExecutor.java:291)
               at
        org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLi
        fecycleExecutor.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:64)
               at
        sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
        sorImpl.java:43)
               at java.lang.reflect.Method.invoke(Method.java:615)
               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.geronimo.kernel.repository.MissingDependencyException:
        Mis
        sing dependency: org.apache.geronimo.framework/j2ee-system//car
               at
        org.apache.geronimo.kernel.repository.DefaultArtifactResolver.resolve
        InClassLoader(DefaultArtifactResolver.java:111)
               at
        org.apache.geronimo.kernel.repository.DefaultArtifactResolver.resolve
        InClassLoader(DefaultArtifactResolver.java:104)
               at
        org.apache.geronimo.kernel.config.SimpleConfigurationManager.resolveP
        arentIds(SimpleConfigurationManager.java:473)
               at
        org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadDept
        hFirst(SimpleConfigurationManager.java:431)
               at
        org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadDept
        hFirst(SimpleConfigurationManager.java:439)
               at
        org.apache.geronimo.kernel.config.SimpleConfigurationManager.loadConf
        iguration(SimpleConfigurationManager.java:296)
               ... 33 more
        [INFO]
        ------------------------------------------------------------------------
        [ERROR] BUILD ERROR
        [INFO]
        ------------------------------------------------------------------------
        [INFO] org.apache.geronimo.framework/geronimo-gbean-deployer/2.1/car

        [INFO]
        ------------------------------------------------------------------------
        [INFO] For more information, run Maven with the -e switch
        [INFO]
        ------------------------------------------------------------------------
        [INFO] Total time: 26 seconds
        [INFO] Finished at: Wed Jun 11 18:36:26 IST 2008
        [INFO] Final Memory: 57M/195M
        [INFO]
        ------------------------------------------------------------------------

        On Wed, Jun 11, 2008 at 1:02 PM, YunFeng Ma
        <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>
        <mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>>> wrote:

           Hi Ashish,

           I guess you must check out only the dbtester source codes from
https://svn.apache.org/repos/asf/geronimo/samples/branches/2.1/samples/dbtester/,
           then you got that error. It will work fine if you check out
        the all
           the source codes using following command:
             > svn co
           https://svn.apache.org/repos/asf/geronimo/samples/branches/2.1/

           Hope it helpful.

           -- YunFeng Ma


           ----- Original Message ----
           From: Ashish Jain <[EMAIL PROTECTED]
        <mailto:[EMAIL PROTECTED]> <mailto:[EMAIL PROTECTED]
        <mailto:[EMAIL PROTECTED]>>>
           To: [email protected]
        <mailto:[email protected]>
        <mailto:[email protected] <mailto:[email protected]>>
           Sent: Wednesday, June 11, 2008 2:25:58 PM
           Subject: Unable to build dbtester sample

           Hi,
           While building the sample available at
http://cwiki.apache.org/GMOxDOC21/dbtester-db-pool-testing-sample-application.html
           I hit the following error.  I looked into pom.xml and found
        that it
           still contains "2.1-snapshot ".  The error suggests that the
           artifacts are not present at the specified location. I tried
        adding
           mirrors to settings.xml but could not make it work.

           C:\gsamples\dbtester>mvn install
           [INFO] Scanning for projects...
           Downloading:
http://repo1.maven.org/maven2/org/apache/geronimo/samples/samples/2
           ..1/samples-2.1.pom
           [INFO]
------------------------------------------------------------------------
           [ERROR] FATAL ERROR
           [INFO]
------------------------------------------------------------------------
           [INFO] Failed to resolve artifact.

           GroupId: org.apache.geronimo.samples
           ArtifactId: samples
           Version: 2.1

           Reason: Unable to download the artifact from any repository

             org.apache.geronimo.samples:samples:pom:2.1

           from the specified remote repositories:
             ibiblio.org <http://ibiblio.org> <http://ibiblio.org>
        (http://repo1.maven.org/maven2)



           [INFO]
------------------------------------------------------------------------
           [INFO] Trace
           org.apache.maven.reactor.MavenExecutionException: Cannot find
           parent: org.apache
           .geronimo.samples:samples for project: null:dbtester:pom:null for
           project null:d
           btester:pom:null
                   at
           org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:378)
                   at
           org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:292)
                   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:64)
                   at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
           sorImpl.java:43)
                   at java.lang.reflect.Method.invoke(Method.java:615)
                   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.project.ProjectBuildingException:
        Cannot
           find parent
           : org.apache.geronimo.samples:samples for project:
           null:dbtester:pom:null for pr
           oject null:dbtester:pom:null
                   at
org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(D
           efaultMavenProjectBuilder.java:1370)
                   at
org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(Def
           aultMavenProjectBuilder.java:821)
                   at
org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFi
           leInternal(DefaultMavenProjectBuilder.java:506)
                   at
org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMave
           nProjectBuilder.java:198)
                   at
           org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:583)
                   at
org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:461)
                   at
           org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:365)
                   ... 11 more
           Caused by: org.apache.maven.project.ProjectBuildingException: POM
           'org.apache.ge <http://org.apache.ge> <http://org.apache.ge>

           ronimo.samples:samples' not found in repository: Unable to
        download
           the artifact
            from any repository

             org.apache.geronimo.samples:samples:pom:2.1

           from the specified remote repositories:
             ibiblio.org <http://ibiblio.org> <http://ibiblio.org>
        (http://repo1.maven.org/maven2)

            for project org.apache.geronimo.samples:samples
                   at
org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepo
           sitory(DefaultMavenProjectBuilder.java:603)
                   at
org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(D
           efaultMavenProjectBuilder.java:1366)
                   ... 17 more
           Caused by:
           org.apache.maven.artifact.resolver.ArtifactNotFoundException:
        Unable
           to download the artifact from any repository

             org.apache.geronimo.samples:samples:pom:2.1

           from the specified remote repositories:
             ibiblio.org <http://ibiblio.org> <http://ibiblio.org>
        (http://repo1.maven.org/maven2)


                   at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De
           faultArtifactResolver.java:212)
                   at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De
           faultArtifactResolver.java:74)
                   at
org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepo
           sitory(DefaultMavenProjectBuilder.java:556)
                   ... 18 more
           Caused by: org.apache.maven.wagon.ResourceDoesNotExistException:
           Unable to downl
           oad the artifact from any repository
                   at
org.apache.maven.artifact.manager.DefaultWagonManager.getArtifact(Def
           aultWagonManager.java:331)
                   at
org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De
           faultArtifactResolver.java:200)
                   ... 20 more
           [INFO]
------------------------------------------------------------------------
           [INFO] Total time: 1 second
           [INFO] Finished at: Wed Jun 11 11:50:09 IST 2008
           [INFO] Final Memory: 2M/5M
           [INFO]
------------------------------------------------------------------------






Reply via email to