-
Bug
-
Resolution: Not A Defect
-
Major
-
None
-
Ubuntu 12.10, Sun JDK 1.7, OpenJDK 1.7
The tools.jar is missing from the classpath which cause maven compile failure.
I also tried to compile the same project in Eclipse, there is no compiling issue. I don't know where Jenkins only load the JARs from $JAVA_HOME/jre/lib into the classpath.
The current wrong class path set by jenkins:
sun.boot.class.path = /var/lib/jenkins/tools/hudson.model.JDK/Sun_JDK/jre/lib/resources.jar
/var/lib/jenkins/tools/hudson.model.JDK/Sun_JDK/jre/lib/rt.jar
/var/lib/jenkins/tools/hudson.model.JDK/Sun_JDK/jre/lib/sunrsasign.jar
/var/lib/jenkins/tools/hudson.model.JDK/Sun_JDK/jre/lib/jsse.jar
/var/lib/jenkins/tools/hudson.model.JDK/Sun_JDK/jre/lib/jce.jar
/var/lib/jenkins/tools/hudson.model.JDK/Sun_JDK/jre/lib/charsets.jar
/var/lib/jenkins/tools/hudson.model.JDK/Sun_JDK/jre/lib/jfr.jar
/var/lib/jenkins/tools/hudson.model.JDK/Sun_JDK/jre/classes
Also please see the allsetting output in one build:
Started by user anonymous
Building in workspace /var/lib/jenkins/workspace/Google Test
Updating https://192.168.1.7/svn/seleniumCook/SeleniumCook to revision '2012-12-30T03:27:36.988 +0800'
At revision 11
no change for https://192.168.1.7/svn/seleniumCook/SeleniumCook since the previous build
Starting xvnc
[Google Test] $ vncserver :13
New 'Ubuntu1210:13 (jenkins)' desktop is Ubuntu1210:13
Starting applications specified in /var/lib/jenkins/.vnc/xstartup
Log file is /var/lib/jenkins/.vnc/Ubuntu1210:13.log
Parsing POMs
[Google Test] $ /var/lib/jenkins/tools/hudson.model.JDK/Sun_JDK/bin/java -XshowSettings -cp /var/lib/jenkins/plugins/maven-plugin/WEB-INF/lib/maven3-agent-1.2.jar:/usr/share/maven/boot/plexus-classworlds-2.x.jar org.jvnet.hudson.maven3.agent.Maven3Main /usr/share/maven /var/cache/jenkins/war/WEB-INF/lib/remoting-2.19.jar /var/lib/jenkins/plugins/maven-plugin/WEB-INF/lib/maven3-interceptor-1.2.jar 43659
VM settings:
Max. Heap Size (Estimated): 121.81M
Ergonomics Machine Class: client
Using VM: Java HotSpot(TM) Client VM
Property settings:
awt.toolkit = sun.awt.X11.XToolkit
file.encoding = UTF-8
file.encoding.pkg = sun.io
file.separator = /
java.awt.graphicsenv = sun.awt.X11GraphicsEnvironment
java.awt.printerjob = sun.print.PSPrinterJob
java.class.path = /var/lib/jenkins/plugins/maven-plugin/WEB-INF/lib/maven3-agent-1.2.jar
/usr/share/maven/boot/plexus-classworlds-2.x.jar
java.class.version = 51.0
java.endorsed.dirs = /var/lib/jenkins/tools/hudson.model.JDK/Sun_JDK/jre/lib/endorsed
java.ext.dirs = /var/lib/jenkins/tools/hudson.model.JDK/Sun_JDK/jre/lib/ext
/usr/java/packages/lib/ext
java.home = /var/lib/jenkins/tools/hudson.model.JDK/Sun_JDK/jre
java.io.tmpdir = /tmp
java.library.path = /usr/java/packages/lib/i386
/lib
/usr/lib
java.runtime.name = Java(TM) SE Runtime Environment
java.runtime.version = 1.7.0_09-b05
java.specification.name = Java Platform API Specification
java.specification.vendor = Oracle Corporation
java.specification.version = 1.7
java.vendor = Oracle Corporation
java.vendor.url = http://java.oracle.com/
java.vendor.url.bug = http://bugreport.sun.com/bugreport/
java.version = 1.7.0_09
java.vm.info = mixed mode
java.vm.name = Java HotSpot(TM) Client VM
java.vm.specification.name = Java Virtual Machine Specification
java.vm.specification.vendor = Oracle Corporation
java.vm.specification.version = 1.7
java.vm.vendor = Oracle Corporation
java.vm.version = 23.5-b02
line.separator = \n
os.arch = i386
os.name = Linux
os.version = 3.5.0-21-generic
path.separator = :
sun.arch.data.model = 32
sun.boot.class.path = /var/lib/jenkins/tools/hudson.model.JDK/Sun_JDK/jre/lib/resources.jar
/var/lib/jenkins/tools/hudson.model.JDK/Sun_JDK/jre/lib/rt.jar
/var/lib/jenkins/tools/hudson.model.JDK/Sun_JDK/jre/lib/sunrsasign.jar
/var/lib/jenkins/tools/hudson.model.JDK/Sun_JDK/jre/lib/jsse.jar
/var/lib/jenkins/tools/hudson.model.JDK/Sun_JDK/jre/lib/jce.jar
/var/lib/jenkins/tools/hudson.model.JDK/Sun_JDK/jre/lib/charsets.jar
/var/lib/jenkins/tools/hudson.model.JDK/Sun_JDK/jre/lib/jfr.jar
/var/lib/jenkins/tools/hudson.model.JDK/Sun_JDK/jre/classes
sun.boot.library.path = /var/lib/jenkins/tools/hudson.model.JDK/Sun_JDK/jre/lib/i386
sun.cpu.endian = little
sun.cpu.isalist =
sun.io.unicode.encoding = UnicodeLittle
sun.java.command = org.jvnet.hudson.maven3.agent.Maven3Main /usr/share/maven /var/cache/jenkins/war/WEB-INF/lib/remoting-2.19.jar /var/lib/jenkins/plugins/maven-plugin/WEB-INF/lib/maven3-interceptor-1.2.jar 43659
sun.java.launcher = SUN_STANDARD
sun.jnu.encoding = UTF-8
sun.management.compiler = HotSpot Client Compiler
sun.os.patch.level = unknown
user.country = US
user.dir = /var/lib/jenkins/workspace/Google Test
user.home = /var/lib/jenkins
user.language = en
user.name = jenkins
user.timezone =
Locale settings:
default locale = English
default display locale = English (United States)
default format locale = English (United States)
available locales = ar, ar_AE, ar_BH, ar_DZ, ar_EG, ar_IQ, ar_JO, ar_KW,
ar_LB, ar_LY, ar_MA, ar_OM, ar_QA, ar_SA, ar_SD, ar_SY,
ar_TN, ar_YE, be, be_BY, bg, bg_BG, ca, ca_ES,
cs, cs_CZ, da, da_DK, de, de_AT, de_CH, de_DE,
de_LU, el, el_CY, el_GR, en, en_AU, en_CA, en_GB,
en_IE, en_IN, en_MT, en_NZ, en_PH, en_SG, en_US, en_ZA,
es, es_AR, es_BO, es_CL, es_CO, es_CR, es_DO, es_EC,
es_ES, es_GT, es_HN, es_MX, es_NI, es_PA, es_PE, es_PR,
es_PY, es_SV, es_US, es_UY, es_VE, et, et_EE, fi,
fi_FI, fr, fr_BE, fr_CA, fr_CH, fr_FR, fr_LU, ga,
ga_IE, hi_IN, hr, hr_HR, hu, hu_HU, in, in_ID,
is, is_IS, it, it_CH, it_IT, iw, iw_IL, ja,
ja_JP, ja_JP_JP_#u-ca-japanese, ko, ko_KR, lt, lt_LT, lv, lv_LV,
mk, mk_MK, ms, ms_MY, mt, mt_MT, nl, nl_BE,
nl_NL, no, no_NO, no_NO_NY, pl, pl_PL, pt, pt_BR,
pt_PT, ro, ro_RO, ru, ru_RU, sk, sk_SK, sl,
sl_SI, sq, sq_AL, sr, sr_BA, sr_BA_#Latn, sr_CS, sr_ME,
sr_ME_#Latn, sr_RS, sr_RS_#Latn, sr__#Latn, sv, sv_SE, th, th_TH,
th_TH_TH_#u-nu-thai, tr, tr_TR, uk, uk_UA, vi, vi_VN, zh,
zh_CN, zh_HK, zh_SG, zh_TW
<===[JENKINS REMOTING CAPACITY]===>channel started
Executing Maven: -B -f /var/lib/jenkins/workspace/Google Test/pom.xml install
[INFO] Scanning for projects...
Projects to build: [MavenProject: SeleniumCook:SeleniumCook:0.0.1-SNAPSHOT @ /var/lib/jenkins/workspace/Google Test/pom.xml]
projectStarted SeleniumCook:SeleniumCook:0.0.1-SNAPSHOT
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building SeleniumCook 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------------
mojoStarted org.apache.maven.plugins:maven-resources-plugin:2.3(default-resources)
[INFO]
[INFO] — maven-resources-plugin:2.3:resources (default-resources) @ SeleniumCook —
[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO] Copying 0 resource
mojoSucceeded org.apache.maven.plugins:maven-resources-plugin:2.3(default-resources)
mojoStarted org.apache.maven.plugins:maven-compiler-plugin:2.0.2(default-compile)
[INFO]
[INFO] — maven-compiler-plugin:2.0.2:compile (default-compile) @ SeleniumCook —
[INFO] Nothing to compile - all classes are up to date
mojoSucceeded org.apache.maven.plugins:maven-compiler-plugin:2.0.2(default-compile)
mojoStarted org.apache.maven.plugins:maven-resources-plugin:2.3(default-testResources)[WARNING] Using platform encoding (UTF-8 actually) to copy filtered resources, i.e. build is platform dependent!
[INFO]
[INFO] — maven-resources-plugin:2.3:testResources (default-testResources) @ SeleniumCook —
[INFO] Copying 0 resource
mojoSucceeded org.apache.maven.plugins:maven-resources-plugin:2.3(default-testResources)
mojoStarted org.apache.maven.plugins:maven-compiler-plugin:2.0.2(default-testCompile)
[INFO]
[INFO] — maven-compiler-plugin:2.0.2:testCompile (default-testCompile) @ SeleniumCook —
[INFO] Compiling 1 source file to /var/lib/jenkins/workspace/Google Test/target/test-classes
mojoFailed org.apache.maven.plugins:maven-compiler-plugin:2.0.2(default-testCompile)
projectFailed SeleniumCook:SeleniumCook:0.0.1-SNAPSHOT
sessionEnded
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 14.196s
[INFO] Finished at: Sun Dec 30 03:28:13 CST 2012
[INFO] Final Memory: 6M/19M
[INFO] ------------------------------------------------------------------------
Projects to build: [MavenProject: SeleniumCook:SeleniumCook:0.0.1-SNAPSHOT @ /var/lib/jenkins/workspace/Google Test/pom.xml]
[JENKINS] Archiving /var/lib/jenkins/workspace/Google Test/pom.xml to /var/lib/jenkins/jobs/Google Test/modules/SeleniumCook$SeleniumCook/builds/2012-12-30_03-27-46/archive/SeleniumCook/SeleniumCook/0.0.1-SNAPSHOT/SeleniumCook-0.0.1-SNAPSHOT.pom
Waiting for Jenkins to finish collecting data
mavenExecutionResult exceptions not empty
message : Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.0.2:testCompile (default-testCompile) on project SeleniumCook: Compilation failure
cause : Compilation failure
Stack trace :
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:2.0.2:testCompile (default-testCompile) on project SeleniumCook: Compilation failure
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:213)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
at org.jvnet.hudson.maven3.launcher.Maven3Launcher.main(Maven3Launcher.java:79)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchStandard(Launcher.java:329)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:239)
at org.jvnet.hudson.maven3.agent.Maven3Main.launch(Maven3Main.java:158)
at hudson.maven.Maven3Builder.call(Maven3Builder.java:98)
at hudson.maven.Maven3Builder.call(Maven3Builder.java:64)
at hudson.remoting.UserRequest.perform(UserRequest.java:118)
at hudson.remoting.UserRequest.perform(UserRequest.java:48)
at hudson.remoting.Request$2.run(Request.java:326)
at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
Caused by: org.apache.maven.plugin.CompilationFailureException: Compilation failure
at org.apache.maven.plugin.AbstractCompilerMojo.execute(AbstractCompilerMojo.java:516)
at org.apache.maven.plugin.TestCompilerMojo.execute(TestCompilerMojo.java:102)
at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
... 27 more
channel stopped
Taking screenshot.
[Google Test] $ import -window root -display :13 screenshot.jpg
Terminating xvnc.
$ vncserver -kill :13
Killing Xvnc4 process ID 22707
Finished: FAILURE