dev@glassfish.java.net

Build failing for 3.1.1 on new machines...

From: Naman Mehta <naman.mehta_at_oracle.com>
Date: Fri, 03 Jun 2011 11:57:06 +0530

hi all,

I am setting up hudson machine for embedded GF build to run CTS. I tried
to build 3.1.1 GF on two of the machines (SunOS and Suse). These are new
lab machines which has never build any GF before.

But when I tried building 3.1.1 with fresh checkout the build is failing
on both the machine at deployment/common test run. Any work around for
the same?

I followed the same instructions mention on the site:
http://wikis.sun.com/display/GlassFish/V3FullBuildInstructions

java -version
java version "1.6.0_22-fastdebug"
Java(TM) SE Runtime Environment (build 1.6.0_22-fastdebug-b04)
Java HotSpot(TM) Server VM (build 17.1-b03-fastdebug, mixed mode)

mvn -version
Apache Maven 2.2.1 (r801777; 2009-08-07 00:46:01+0530)
Java version: 1.6.0_22-fastdebug
Java home: /root/jdk1.6.0_22_withdebug/fastdebug/jre
Default locale: en_IN, platform encoding: UTF-8
OS name: "linux" version: "2.6.27.19-5-default" arch: "i386" Family: "unix"

If I tried to build on my laptop it's going fine without any error.
Looks like this issues is coming only for new machines and fresh setup.

[INFO] Building in /root/hudsetup/glassfish3/glassfish/domains/domain1/applications/hudson/jobs/EmbeddedGF/workspace/3.1.1/deployment/common
[INFO] ------------------------------------------------------------------------
[INFO] [resources:resources {execution: default-resources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 3 resources
[INFO] [hk2:hk2-compile {execution: default-hk2-compile}]
[INFO] Compiling 35 source files to /root/hudsetup/glassfish3/glassfish/domains/domain1/applications/hudson/jobs/EmbeddedGF/workspace/3.1.1/deployment/common/target/classes
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
[INFO] [bundle:manifest {execution: bundle-manifest}]
[INFO] [resources:testResources {execution: default-testResources}]
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /root/hudsetup/glassfish3/glassfish/domains/domain1/applications/hudson/jobs/EmbeddedGF/workspace/3.1.1/deployment/common/src/test/resources
[INFO] [hk2:hk2-test-compile {execution: default-hk2-test-compile}]
[INFO] Compiling 4 source files to /root/hudsetup/glassfish3/glassfish/domains/domain1/applications/hudson/jobs/EmbeddedGF/workspace/3.1.1/deployment/common/target/test-classes
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
[INFO] [surefire:test {execution: default-test}]
[INFO] Surefire report directory: /root/hudsetup/glassfish3/glassfish/domains/domain1/applications/hudson/jobs/EmbeddedGF/workspace/3.1.1/deployment/common/target/surefire-reports

-------------------------------------------------------
  T E S T S
-------------------------------------------------------
Running com.sun.enterprise.deploy.shared.FileArchiveTest
testSubarchive
testSubArchiveCreateWithStaleEntry
2 Jun, 2011 5:24:36 PM com.sun.enterprise.deploy.shared.FileArchive$StaleFileManagerImpl isEntryValid
WARNING: DPL8031: Ignoring subarch/oldLower/ because the containing archive /tmp/FileArch8000398062214087637 recorded it as a pre-existing stale file
2 Jun, 2011 5:24:36 PM com.sun.enterprise.deploy.shared.FileArchive$StaleFileManagerImpl isEntryValid
WARNING: DPL8031: Ignoring subarch/oldLower/ because the containing archive /tmp/FileArch8000398062214087637 recorded it as a pre-existing stale file
testNormalCreate
testCreateWithOlderLeftoverEntry
2 Jun, 2011 5:24:36 PM com.sun.enterprise.deploy.shared.FileArchive$StaleFileManagerImpl isEntryValid
WARNING: DPL8031: Ignoring oldLower/oldFile.txt because the containing archive /tmp/FileArch3867143102731636621 recorded it as a pre-existing stale file
testCreateWithOlderLeftoverEntryWhichIsCreatedAgain
Skipping (as successful) testCreateWithOlderLeftoverEntryAndThenOpen because this is not a Windows system
testOpenWithPreexistingDir
testInaccessibleDirectoryInFileArchive
Tests run: 8, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 1.804 sec<<< FAILURE!
Running org.glassfish.deployment.versioning.VersioningUtilsTest
Tests run: 9, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.114 sec
Running com.sun.enterprise.deployment.deploy.shared.JarArchiveTest
Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.024 sec
Running com.sun.enterprise.deployment.deploy.shared.InputJarArchiveTest
collection wrapped enumeration - simple iterator test
collection wrapped enumeration - initial size() call
collection wrapped enumeration - middle size() call
collection wrapped enumeration - end size() call
top-level directory entry names in InputJarArchive
non-directory entry names in InputJarArchive
nested top-level directory entry names in InputJarArchive
nested non-directory entry names in InputJarArchive
Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.257 sec

Results :

Failed tests:
   testInaccessibleDirectoryInFileArchive(com.sun.enterprise.deploy.shared.FileArchiveTest)

Tests run: 29, Failures: 1, Errors: 0, Skipped: 0



Regards,
Naman