Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Maven Build on Slave Fails: NoClassDefFound error when parsing pom.xml
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  9 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Jamie  
View profile  
 More options Nov 3 2011, 8:43 pm
From: Jamie <r...@me.com>
Date: Thu, 3 Nov 2011 17:43:58 -0700 (PDT)
Local: Thurs, Nov 3 2011 8:43 pm
Subject: Maven Build on Slave Fails: NoClassDefFound error when parsing pom.xml
Hi all. I've not been able to find a solution to this one thus far so
am hoping I can crowd-source it somewhat. I have a Jenkins master
running on Linux and a slave running Mac OS X. The master/slave setup
is able to build XCode based projects but fails when I try and build
my Maven one. Slave launch method is 'Launch slave agents on Unix
machines via SSH'. Stack trace:

arsing POMs
ERROR: Failed to parse POMs
hudson.util.IOException2: remote file operation failed: /Users/jenkins/
Documents/work/workspace/recruiting at
hudson.remoting.Channel@1552efb4:raut.apple.com
        at hudson.FilePath.act(FilePath.java:781)
        at hudson.FilePath.act(FilePath.java:767)
        at hudson.maven.MavenModuleSetBuild
$RunnerImpl.parsePoms(MavenModuleSetBuild.java:894)
        at hudson.maven.MavenModuleSetBuild
$RunnerImpl.doRun(MavenModuleSetBuild.java:644)
        at hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:
460)
        at hudson.model.Run.run(Run.java:1404)
        at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:470)
        at hudson.model.ResourceController.execute(ResourceController.java:
88)
        at hudson.model.Executor.run(Executor.java:230)
Caused by: java.io.IOException: Remote call on raut.apple.com failed
        at hudson.remoting.Channel.call(Channel.java:690)
        at hudson.FilePath.act(FilePath.java:774)
        ... 8 more
Caused by: java.lang.NoClassDefFoundError: Could not initialize class
hudson.maven.MavenModuleSetBuild
        at hudson.maven.MavenModuleSetBuild
$PomParser.invoke(MavenModuleSetBuild.java:1156)
        at hudson.maven.MavenModuleSetBuild
$PomParser.invoke(MavenModuleSetBuild.java:1029)
        at hudson.FilePath$FileCallableWrapper.call(FilePath.java:2022)
        at hudson.remoting.UserRequest.perform(UserRequest.java:118)
        at hudson.remoting.UserRequest.perform(UserRequest.java:48)
        at hudson.remoting.Request$2.run(Request.java:287)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:
441)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
        at java.util.concurrent.FutureTask.run(FutureTask.java:138)
        at java.util.concurrent.ThreadPoolExecutor
$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor
$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:680)
Finished: FAILURE

The closest issue I found to this one was:

http://stackoverflow.com/questions/6653147/jenkins-slave-throws-class...

but that solution (delete the xercesImpl.jar in the Jenkins WEB-INF/
lib directory) didn't work for us.

Any ideas? More information I can provide?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jamie  
View profile  
 More options Nov 3 2011, 8:46 pm
From: Jamie <r...@me.com>
Date: Thu, 3 Nov 2011 17:46:11 -0700 (PDT)
Local: Thurs, Nov 3 2011 8:46 pm
Subject: Re: Maven Build on Slave Fails: NoClassDefFound error when parsing pom.xml
I should mention this is Jenkins 1.436 running on Tomcat 7.0.22.

On Nov 3, 5:43 pm, Jamie <r...@me.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Khai Do  
View profile  
 More options Nov 7 2011, 6:28 pm
From: Khai Do <do.k...@gmail.com>
Date: Mon, 7 Nov 2011 15:28:17 -0800 (PST)
Local: Mon, Nov 7 2011 6:28 pm
Subject: Re: Maven Build on Slave Fails: NoClassDefFound error when parsing pom.xml
Very frustrating, I am having the same problem.  The only way I've
been able to recover is to restart the jenkins master, but obviously
that's not a good solution.  Once i restart the master this problem
goes away for a few slave builds then it comes back.  I've tried a few
jenkins versions even the LTS 1.409.2 and I've had this same problem
in all of the versions.  i'm running jenkins in tomcat 6 on a Centos
Linux machine.  My slaves are running on windows and linux.

On Nov 3, 4:46 pm, Jamie <r...@me.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
dpreilan  
View profile  
 More options Nov 8 2011, 8:21 am
From: dpreilan <dreil...@gmail.com>
Date: Tue, 8 Nov 2011 05:21:36 -0800 (PST)
Local: Tues, Nov 8 2011 8:21 am
Subject: Re: Maven Build on Slave Fails: NoClassDefFound error when parsing pom.xml
I am seeing something similar (remote file exceptions) in other areas:
1) inject environment variables from file
2) copying aritifacts from another job
3) saving artifacts

It has become very unstable since updating a few versions ago. I am
not sure I saw any of this at 1.419, but I am not certain of  exact
version where I  started hitting this.
I am down to a single node (master) from 5 for now . My users were
getting build failure emails and thinking they committed bad code and
seeing all these java exceptions from the tool.

Doug

On Nov 7, 6:28 pm, Khai Do <do.k...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jamie  
View profile   Translate to Translated (View Original)
 More options Nov 17 2011, 7:48 pm
From: Jamie <r...@me.com>
Date: Thu, 17 Nov 2011 16:48:06 -0800 (PST)
Local: Thurs, Nov 17 2011 7:48 pm
Subject: Re: Maven Build on Slave Fails: NoClassDefFound error when parsing pom.xml
Just tried with Jenkins 1.439. Still no luck.

On Nov 8, 5:21 am, dpreilan <dreil...@gmail.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jamie  
View profile  
 More options Nov 28 2011, 8:25 pm
From: Jamie <r...@me.com>
Date: Mon, 28 Nov 2011 17:25:25 -0800 (PST)
Local: Mon, Nov 28 2011 8:25 pm
Subject: Re: Maven Build on Slave Fails: NoClassDefFound error when parsing pom.xml
Still there in 1.441

On Nov 17, 4:48 pm, Jamie <r...@me.com> wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
jcsirot  
View profile  
 More options Feb 15 2012, 11:33 am
From: jcsirot <jcsi...@gmail.com>
Date: Wed, 15 Feb 2012 08:33:33 -0800 (PST)
Local: Wed, Feb 15 2012 11:33 am
Subject: Re: Maven Build on Slave Fails: NoClassDefFound error when parsing pom.xml

I'm also facing the same problem.

Jenkins version: 1.451
Jenkins master is running on a Linux Debian
Jenkins slave is a MacOSX Lion 10.7.3
Maven is the default Lion embedded maven 3.0.3
Java is the default Lion embedded JDK

The Log output:

Parsing POMs ERROR: Failed to parse POMs hudson.util.IOException2<http://stacktrace.jenkins-ci.org/search?query=hudson.util.IOException2>:
remote file operation failed: work/workspace/JAPI-test-mac at
hudson.remoting.Channel@11cf4e5:Mac Mini 1 at
hudson.FilePath.act(FilePath.java:784)<http://stacktrace.jenkins-ci.org/search/?query=hudson.FilePath.act&en...>at
hudson.FilePath.act(FilePath.java:770)<http://stacktrace.jenkins-ci.org/search/?query=hudson.FilePath.act&en...>at
hudson.maven.MavenModuleSetBuild$RunnerImpl.parsePoms(MavenModuleSetBuild.j ava:914)<http://stacktrace.jenkins-ci.org/search/?query=hudson.maven.MavenModu...>at
hudson.maven.MavenModuleSetBuild$RunnerImpl.doRun(MavenModuleSetBuild.java: 658)<http://stacktrace.jenkins-ci.org/search/?query=hudson.maven.MavenModu...>at
hudson.model.AbstractBuild$AbstractRunner.run(AbstractBuild.java:470)<http://stacktrace.jenkins-ci.org/search/?query=hudson.model.AbstractB...>at
hudson.model.Run.run(Run.java:1409)<http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Run.run&e...>at
hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:481)<http://stacktrace.jenkins-ci.org/search/?query=hudson.maven.MavenModu...>at
hudson.model.ResourceController.execute(ResourceController.java:88)<http://stacktrace.jenkins-ci.org/search/?query=hudson.model.ResourceC...>at
hudson.model.Executor.run(Executor.java:238)<http://stacktrace.jenkins-ci.org/search/?query=hudson.model.Executor....>Caused by:
java.io.IOException<http://stacktrace.jenkins-ci.org/search?query=java.io.IOException>:
Remote call on Mac Mini 1 failed at
hudson.remoting.Channel.call(Channel.java:690)<http://stacktrace.jenkins-ci.org/search/?query=hudson.remoting.Channe...>at
hudson.FilePath.act(FilePath.java:777)<http://stacktrace.jenkins-ci.org/search/?query=hudson.FilePath.act&en...>... 8 more Caused by:
java.lang.NoClassDefFoundError<http://stacktrace.jenkins-ci.org/search?query=java.lang.NoClassDefFou...>:
Could not initialize class hudson.maven.MavenModuleSetBuild at
hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java: 1180)<http://stacktrace.jenkins-ci.org/search/?query=hudson.maven.MavenModu...>at
hudson.maven.MavenModuleSetBuild$PomParser.invoke(MavenModuleSetBuild.java: 1049)<http://stacktrace.jenkins-ci.org/search/?query=hudson.maven.MavenModu...>at
hudson.FilePath$FileCallableWrapper.call(FilePath.java:2099)<http://stacktrace.jenkins-ci.org/search/?query=hudson.FilePath$FileCa...>at
hudson.remoting.UserRequest.perform(UserRequest.java:118)<http://stacktrace.jenkins-ci.org/search/?query=hudson.remoting.UserRe...>at
hudson.remoting.UserRequest.perform(UserRequest.java:48)<http://stacktrace.jenkins-ci.org/search/?query=hudson.remoting.UserRe...>at
hudson.remoting.Request$2.run(Request.java:287)<http://stacktrace.jenkins-ci.org/search/?query=hudson.remoting.Reques...>at
hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorServ ice.java:72)<http://stacktrace.jenkins-ci.org/search/?query=hudson.remoting.Interc...>at
java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)<http://stacktrace.jenkins-ci.org/search/?query=java.util.concurrent.F...>at
java.util.concurrent.FutureTask.run(FutureTask.java:138)<http://stacktrace.jenkins-ci.org/search/?query=java.util.concurrent.F...>at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.j ava:886)<http://stacktrace.jenkins-ci.org/search/?query=java.util.concurrent.T...>at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java: 908)<http://stacktrace.jenkins-ci.org/search/?query=java.util.concurrent.T...>at
java.lang.Thread.run(Thread.java:680)<http://stacktrace.jenkins-ci.org/search/?query=java.lang.Thread.run&e...>Finished: FAILURE

any help will be appreciated.

--
Jean-Christophe


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Anura S Nawarathna  
View profile  
 More options Sep 4 2012, 1:26 am
From: Anura S Nawarathna <anur...@gmail.com>
Date: Mon, 3 Sep 2012 22:26:48 -0700 (PDT)
Local: Tues, Sep 4 2012 1:26 am
Subject: Re: Maven Build on Slave Fails: NoClassDefFound error when parsing pom.xml

I also has the same problem and disconnect and reconnect the slave solved
the problem.
Try this.
Good Luck!


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Michaël Pailloncy  
View profile  
 More options Sep 4 2012, 4:20 am
From: Michaël Pailloncy <mpapo....@gmail.com>
Date: Tue, 4 Sep 2012 10:20:10 +0200
Local: Tues, Sep 4 2012 4:20 am
Subject: Re: Maven Build on Slave Fails: NoClassDefFound error when parsing pom.xml

We also have been faced on the same problem.
We were obliged to restart several times slaves before they can be reused
(randomly).
For the record, which version of java on slave and master are you using ?

Our configuration :
Master : AIX 5.3 - java version "1.6.0" Java(TM) SE Runtime Environment
(build pap3260sr9-20101125_01(SR9)) (IBM)
Slaves : RHEL 5 - java "1.6.0_25" Java(TM) SE Runtime Environment (build
1.6.0_25-b06) Java HotSpot(TM) 64-Bit Server VM (build 20.0-b11, mixed
mode)

I think the problem is caused by a different packaging of xercesImpl.jar in
master's JRE and slaves' JRE.

see
https://issues.jenkins-ci.org/browse/JENKINS-10238?focusedCommentId=1...

I've added the xercesImpl.jar implementation of the master directly in the
classpath of the slaves' launchers to be sure that the same packaging
of xercesImpl.jar is applyied in both cases.
I'm not sure to clearly understand the root cause, but since I applied this
solution the bug doesn't appear anymore (perhaps, I'm just a lucky guy for
2 months :-) ).

An opinion from a more experienced java developer on different types of JVM
would be interesting.

Michaël

2012/9/4 Anura S Nawarathna <anur...@gmail.com>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »