dev@glassfish.java.net

Re: Build failed in Hudson: glassfish-v3-devbuild #65

From: Kohsuke Kawaguchi <Kohsuke.Kawaguchi_at_Sun.COM>
Date: Tue, 11 Mar 2008 23:52:20 -0700

Sahoo wrote:
> These failures are anticipated as I changed an interface in HK2 and th
> corresponding implementation in GFv3. Looks like, Hudson is using
> different maven local repo for building HK2 as well as GFv3, or it
> started building GFv3 with older HK2 snapshots.

Good point. The build doesn't kick Maven with the -U option, so it
doesn't discover new HK2 automatically.

I added a batch task [1] so that I can manually trigger this, and I just
started #66-1.

OTOH, the current set up without -U would be a typical mode of operation
for our colleagues, so this kind of change would most likely have broken
builds for people.

We need to come back to how to do versioning and change propagation
between HK2 and GFv3 later. I think this is the crux of the problem we have.

[1]
http://kohsuke.sfbay/hudson/job/glassfish-v3-devbuild/batchTasks/task/snapshot%20update/

>
> Thanks,
> Sahoo
>
> Hudson wrote:
>> See http://kohsuke.sfbay/hudson/job/glassfish-v3-devbuild/65/changes
>>
>> Changes:
>>
>> [Siraj Gaffer] removed dependency on com.sun.enterprise.security.RealmConfig and
>> org.glassfish.core.security
>>
>> ------------------------------------------
>> [...truncated 284 lines...]
>> [INFO] Using default encoding to copy filtered resources.
>> [INFO] [compiler:testCompile]
>> [INFO] No sources to compile
>> [INFO] [surefire:test]
>> [INFO] No tests to run.
>> [INFO] [hk2:package]
>> Mar 11, 2008 10:37:22 PM VersionTranslator MavenToOSGi
>> INFO: qualifier = SNAPSHOT
>> Mar 11, 2008 10:37:22 PM VersionTranslator MavenToOSGi
>> INFO: 10.0-SNAPSHOT -> 10.0.0.SNAPSHOT
>> [INFO] Building jar: http://kohsuke.sfbay/hudson/job/glassfish-v3-devbuild/ws/v3/common/common-util/target/common-util-10.0-SNAPSHOT.jar
>> [INFO] ----------------------------------------------------------------------------
>> [INFO] Building AMX API Implementation
>> [INFO] task-segment: [package]
>> [INFO] ----------------------------------------------------------------------------
>> [INFO] [resources:resources]
>> [INFO] Using default encoding to copy filtered resources.
>> [INFO] [hk2:hk2-compile]
>> [INFO] Nothing to compile - all classes are up to date
>> [INFO] [resources:testResources]
>> [INFO] Using default encoding to copy filtered resources.
>> [INFO] [compiler:testCompile]
>> [INFO] No sources to compile
>> [INFO] [surefire:test]
>> [INFO] No tests to run.
>> [INFO] [hk2:package]
>> Mar 11, 2008 10:37:24 PM VersionTranslator MavenToOSGi
>> INFO: qualifier = SNAPSHOT
>> Mar 11, 2008 10:37:24 PM VersionTranslator MavenToOSGi
>> INFO: 10.0-SNAPSHOT -> 10.0.0.SNAPSHOT
>> [INFO] Building jar: http://kohsuke.sfbay/hudson/job/glassfish-v3-devbuild/ws/v3/common/amx-impl/target/amx-impl-10.0-SNAPSHOT.jar
>> [INFO] ----------------------------------------------------------------------------
>> [INFO] Building Java EE dependent public APIs of Glassfish V3
>> [INFO] task-segment: [package]
>> [INFO] ----------------------------------------------------------------------------
>> [INFO] [resources:resources]
>> [INFO] Using default encoding to copy filtered resources.
>> [INFO] [hk2:hk2-compile]
>> [INFO] Nothing to compile - all classes are up to date
>> [INFO] [resources:testResources]
>> [INFO] Using default encoding to copy filtered resources.
>> [INFO] [compiler:testCompile]
>> [INFO] No sources to compile
>> [INFO] [surefire:test]
>> [INFO] No tests to run.
>> [INFO] [hk2:package]
>> Mar 11, 2008 10:37:25 PM VersionTranslator MavenToOSGi
>> INFO: qualifier = SNAPSHOT
>> Mar 11, 2008 10:37:25 PM VersionTranslator MavenToOSGi
>> INFO: 10.0-SNAPSHOT -> 10.0.0.SNAPSHOT
>> [INFO] Building jar: http://kohsuke.sfbay/hudson/job/glassfish-v3-devbuild/ws/v3/common/glassfish-ee-api/target/glassfish-ee-api-10.0-SNAPSHOT.jar
>> [INFO] ----------------------------------------------------------------------------
>> [INFO] Building Private APIs of Glassfish V3
>> [INFO] task-segment: [package]
>> [INFO] ----------------------------------------------------------------------------
>> [INFO] [resources:resources]
>> [INFO] Using default encoding to copy filtered resources.
>> [INFO] [hk2:hk2-compile]
>> [INFO] Nothing to compile - all classes are up to date
>> [INFO] [resources:testResources]
>> [INFO] Using default encoding to copy filtered resources.
>> [INFO] [compiler:testCompile]
>> [INFO] No sources to compile
>> [INFO] [surefire:test]
>> [INFO] No tests to run.
>> [INFO] [hk2:package]
>> Mar 11, 2008 10:37:25 PM VersionTranslator MavenToOSGi
>> INFO: qualifier = SNAPSHOT
>> Mar 11, 2008 10:37:25 PM VersionTranslator MavenToOSGi
>> INFO: 10.0-SNAPSHOT -> 10.0.0.SNAPSHOT
>> [INFO] Building jar: http://kohsuke.sfbay/hudson/job/glassfish-v3-devbuild/ws/v3/common/internal-api/target/internal-api-10.0-SNAPSHOT.jar
>> [INFO] ----------------------------------------------------------------------------
>> [INFO] Building Java EE Private APIs of Glassfish V3
>> [INFO] task-segment: [package]
>> [INFO] ----------------------------------------------------------------------------
>> [INFO] [resources:resources]
>> [INFO] Using default encoding to copy filtered resources.
>> [INFO] [hk2:hk2-compile]
>> [INFO] No sources to compile
>> [INFO] [resources:testResources]
>> [INFO] Using default encoding to copy filtered resources.
>> [INFO] [compiler:testCompile]
>> [INFO] No sources to compile
>> [INFO] [surefire:test]
>> [INFO] No tests to run.
>> [INFO] [hk2:package]
>> Mar 11, 2008 10:37:26 PM VersionTranslator MavenToOSGi
>> INFO: qualifier = SNAPSHOT
>> Mar 11, 2008 10:37:26 PM VersionTranslator MavenToOSGi
>> INFO: 10.0-SNAPSHOT -> 10.0.0.SNAPSHOT
>> [WARNING] JAR will be empty - no content was marked for inclusion!
>> [INFO] Building jar: http://kohsuke.sfbay/hudson/job/glassfish-v3-devbuild/ws/v3/common/internal-ee-api/target/internal-ee-api-10.0-SNAPSHOT.jar
>> [INFO] ----------------------------------------------------------------------------
>> [INFO] Building GlassFish Java EE Annotation Framework
>> [INFO] task-segment: [package]
>> [INFO] ----------------------------------------------------------------------------
>> [INFO] [resources:resources]
>> [INFO] Using default encoding to copy filtered resources.
>> [INFO] [hk2:hk2-compile]
>> [INFO] Compiling 1 source file to http://kohsuke.sfbay/hudson/job/glassfish-v3-devbuild/ws/v3/common/annotation-framework/target/classes
>> [INFO] [resources:testResources]
>> [INFO] Using default encoding to copy filtered resources.
>> [INFO] [compiler:testCompile]
>> [INFO] No sources to compile
>> [INFO] [surefire:test]
>> [INFO] No tests to run.
>> [INFO] [hk2:package]
>> Mar 11, 2008 10:37:26 PM VersionTranslator MavenToOSGi
>> INFO: qualifier = SNAPSHOT
>> Mar 11, 2008 10:37:26 PM VersionTranslator MavenToOSGi
>> INFO: 10.0-SNAPSHOT -> 10.0.0.SNAPSHOT
>> [INFO] Building jar: http://kohsuke.sfbay/hudson/job/glassfish-v3-devbuild/ws/v3/common/annotation-framework/target/annotation-framework-10.0-SNAPSHOT.jar
>> [INFO] ----------------------------------------------------------------------------
>> [INFO] Building Common Utilities for Java EE implementations
>> [INFO] task-segment: [package]
>> [INFO] ----------------------------------------------------------------------------
>> [INFO] [resources:resources]
>> [INFO] Using default encoding to copy filtered resources.
>> [INFO] [hk2:hk2-compile]
>> [INFO] Nothing to compile - all classes are up to date
>> [INFO] [resources:testResources]
>> [INFO] Using default encoding to copy filtered resources.
>> [INFO] [compiler:testCompile]
>> [INFO] No sources to compile
>> [INFO] [surefire:test]
>> [INFO] No tests to run.
>> [INFO] [hk2:package]
>> Mar 11, 2008 10:37:27 PM VersionTranslator MavenToOSGi
>> INFO: qualifier = SNAPSHOT
>> Mar 11, 2008 10:37:27 PM VersionTranslator MavenToOSGi
>> INFO: 10.0-SNAPSHOT -> 10.0.0.SNAPSHOT
>> [INFO] Building jar: http://kohsuke.sfbay/hudson/job/glassfish-v3-devbuild/ws/v3/common/common-ee-util/target/common-ee-util-10.0-SNAPSHOT.jar
>> [INFO] ----------------------------------------------------------------------------
>> [INFO] Building Deployment Object Library
>> [INFO] task-segment: [package]
>> [INFO] ----------------------------------------------------------------------------
>> [INFO] [resources:resources]
>> [INFO] Using default encoding to copy filtered resources.
>> [INFO] [hk2:hk2-compile]
>> [INFO] Nothing to compile - all classes are up to date
>> [INFO] [resources:testResources]
>> [INFO] Using default encoding to copy filtered resources.
>> [INFO] [compiler:testCompile]
>> [INFO] No sources to compile
>> [INFO] [surefire:test]
>> [INFO] No tests to run.
>> [INFO] [hk2:package]
>> Mar 11, 2008 10:37:28 PM VersionTranslator MavenToOSGi
>> INFO: qualifier = SNAPSHOT
>> Mar 11, 2008 10:37:28 PM VersionTranslator MavenToOSGi
>> INFO: 10.0-SNAPSHOT -> 10.0.0.SNAPSHOT
>> [INFO] Building jar: http://kohsuke.sfbay/hudson/job/glassfish-v3-devbuild/ws/v3/common/dol/target/dol-10.0-SNAPSHOT.jar
>> [INFO] ----------------------------------------------------------------------------
>> [INFO] Building GlassFish Administration related modules
>> [INFO] task-segment: [package]
>> [INFO] ----------------------------------------------------------------------------
>> [INFO] [site:attach-descriptor]
>> [INFO] ----------------------------------------------------------------------------
>> [INFO] Building Administration Configuration APIs
>> [INFO] task-segment: [package]
>> [INFO] ----------------------------------------------------------------------------
>> [INFO] [resources:resources]
>> [INFO] Using default encoding to copy filtered resources.
>> [INFO] [hk2:hk2-compile]
>> [INFO] Nothing to compile - all classes are up to date
>> [INFO] [resources:testResources]
>> [INFO] Using default encoding to copy filtered resources.
>> [INFO] [compiler:testCompile]
>> [INFO] Nothing to compile - all classes are up to date
>> [INFO] [surefire:test]
>> [INFO] Surefire report directory: http://kohsuke.sfbay/hudson/job/glassfish-v3-devbuild/ws/v3/admin/config-api/target/surefire-reports
>>
>> -------------------------------------------------------
>> T E S T S
>> -------------------------------------------------------
>> Running com.sun.enterprise.configapi.tests.ConfigListenerTest
>> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.638 sec
>> Running com.sun.enterprise.configapi.tests.ModulesTest
>> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.086 sec
>> Running com.sun.enterprise.configapi.tests.PersistenceTest
>> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.132 sec
>> Running com.sun.enterprise.configapi.tests.TranslatedValuesTest
>> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.06 sec
>> Running com.sun.enterprise.configapi.tests.ApplicationsTest
>> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.031 sec
>> Running com.sun.enterprise.configapi.tests.Ssl2EnabledTest
>> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.014 sec
>> Running com.sun.enterprise.configapi.tests.RawValueTest
>> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.005 sec
>> Running com.sun.enterprise.configapi.tests.ConcurrentModificationsTest
>> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.066 sec
>> Running com.sun.enterprise.configapi.tests.TransactionListenerTest
>> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.013 sec
>> Running com.sun.enterprise.configapi.tests.ConfigApiTest
>> Tests run: 1, Failures: 0, Errors: 0, Skipped: 1, Time elapsed: 0.003 sec
>> Running com.sun.enterprise.configapi.tests.HttpListenerTest
>> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.041 sec
>> Running com.sun.enterprise.configapi.tests.DomainTest
>> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.004 sec
>> Running com.sun.enterprise.configapi.tests.HttpServiceTest
>> Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.028 sec
>> Running com.sun.enterprise.configapi.tests.EnabledTest
>> Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.007 sec
>>
>> Results :
>>
>> Tests run: 20, Failures: 0, Errors: 0, Skipped: 1
>>
>> [INFO] [hk2:package]
>> Mar 11, 2008 10:37:33 PM VersionTranslator MavenToOSGi
>> INFO: qualifier = SNAPSHOT
>> Mar 11, 2008 10:37:33 PM VersionTranslator MavenToOSGi
>> INFO: 10.0-SNAPSHOT -> 10.0.0.SNAPSHOT
>> [INFO] Building jar: http://kohsuke.sfbay/hudson/job/glassfish-v3-devbuild/ws/v3/admin/config-api/target/config-api-10.0-SNAPSHOT.jar
>> [INFO] ----------------------------------------------------------------------------
>> [INFO] Building GlassFish Core modules
>> [INFO] task-segment: [package]
>> [INFO] ----------------------------------------------------------------------------
>> [INFO] [site:attach-descriptor]
>> [INFO] ----------------------------------------------------------------------------
>> [INFO] Building Kernel Classes
>> [INFO] task-segment: [package]
>> [INFO] ----------------------------------------------------------------------------
>> [INFO] [antrun:run {execution: default}]
>> [INFO] Executing tasks
>> [delete] Deleting: http://kohsuke.sfbay/hudson/job/glassfish-v3-devbuild/ws/v3/core/kernel/src/main/java/com/sun/appserv/server/util/Version.java
>> [copy] Copying 1 file to http://kohsuke.sfbay/hudson/job/glassfish-v3-devbuild/ws/v3/core/kernel/src/main/java/com/sun/appserv/server/util
>> [INFO] Executed tasks
>> [INFO] [resources:resources]
>> [INFO] Using default encoding to copy filtered resources.
>> [INFO] [hk2:hk2-compile]
>> [INFO] Compiling 2 source files to http://kohsuke.sfbay/hudson/job/glassfish-v3-devbuild/ws/v3/core/kernel/target/classes
>> http://kohsuke.sfbay/hudson/job/glassfish-v3-devbuild/ws/v3/core/kernel/src/main/java/com/sun/enterprise/v3/bootstrap/DerbyLifecycle.java :22: com.sun.enterprise.v3.bootstrap.DerbyLifecycle is not abstract and does not override abstract method getService(java.lang.Object) in com.sun.enterprise.module.LifecyclePolicy
>> public class DerbyLifecycle implements LifecyclePolicy {
>> ^
>> 1 error
>> [INFO] ------------------------------------------------------------------------
>> [ERROR] BUILD ERROR
>> [INFO] ------------------------------------------------------------------------
>> [INFO] Fatal error compiling
>>
>> Embedded error: APT failed: 1
>> [INFO] ------------------------------------------------------------------------
>> [INFO] For more information, run Maven with the -e switch
>> [INFO] ------------------------------------------------------------------------
>> [INFO] Total time: 52 seconds
>> [INFO] Finished at: Tue Mar 11 22:37:36 PDT 2008
>> [INFO] Final Memory: 26M/50M
>> [INFO] ------------------------------------------------------------------------
>>
>>
>


-- 
Kohsuke Kawaguchi
Sun Microsystems                   kohsuke.kawaguchi_at_sun.com