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 <ashjain2@gmail.com>
To: user@geronimo.apache.org
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://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
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://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://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] ------------------------------------------------------------------------