Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Hudson » hudson-remoting-3.0.1.jar not being found by mavin
hudson-remoting-3.0.1.jar not being found by mavin [message #1124348] Thu, 03 October 2013 12:55 Go to next message
Mathew Anderson is currently offline Mathew AndersonFriend
Messages: 13
Registered: October 2013
Junior Member
During some builds, using maven, we are getting the following:

[ERROR] o.h.m.e.DelegatingEventSpy - Init failed
java.lang.NoClassDefFoundError: hudson/remoting/Channel
	at org.hudsonci.maven.eventspy.common.RemotingClient.open(RemotingClient.java:103) ~[maven3-eventspy-runtime.jar:na]
	at org.hudsonci.maven.eventspy_30.RemotingEventSpy.openChannel(RemotingEventSpy.java:86) ~[maven3-eventspy-3.0.jar:na]
	at org.hudsonci.maven.eventspy_30.RemotingEventSpy.init(RemotingEventSpy.java:114) ~[maven3-eventspy-3.0.jar:na]
	at org.hudsonci.maven.eventspy_30.DelegatingEventSpy.init(DelegatingEventSpy.java:128) ~[maven3-eventspy-3.0.jar:na]
	at org.apache.maven.eventspy.internal.EventSpyDispatcher.init(EventSpyDispatcher.java:84) [maven-core-3.0.3.jar:3.0.3]
	at org.apache.maven.cli.MavenCli.container(MavenCli.java:403) [maven-embedder-3.0.3.jar:3.0.3]
	at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:191) [maven-embedder-3.0.3.jar:3.0.3]
	at org.apache.maven.cli.MavenCli.main(MavenCli.java:141) [maven-embedder-3.0.3.jar:3.0.3]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_14]
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[na:1.6.0_14]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_14]
	at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_14]
	at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290) [plexus-classworlds-2.4.jar:na]
	at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230) [plexus-classworlds-2.4.jar:na]
	at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409) [plexus-classworlds-2.4.jar:na]
	at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352) [plexus-classworlds-2.4.jar:na]
Caused by: java.lang.ClassNotFoundException: hudson.remoting.Channel
	at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50) ~[plexus-classworlds-2.4.jar:na]
	at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:244) ~[plexus-classworlds-2.4.jar:na]
	at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:230) ~[plexus-classworlds-2.4.jar:na]
	at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320) ~[na:1.6.0_14]
	... 16 common frames omitted


Looking closer, I see the classpath that is autogenerated is invalid:

[INFO] Detected Maven 3 installation version: 3.0.3
[workspace] $ /hudson/maven/slavebundle/bundled-maven/bin/mvn test -V -B -Dmaven.ext.class.path=/hudson/maven/slavebundle/resources:/hudson/maven/slavebundle/lib/maven3-eventspy-3.0.jar:/jboss7/standalone/tmp/vfs/deploymentefadcbeddfa044da/hudson-remoting-3.0.1.jar-df31d207bfb82c69/contents -Dhudson.eventspy.port=57649 -Dmaven.repo.local=/hudson/jobs/MyJob/workspace/.maven/repo -f pom.xml


Note the item in the classpath: /jboss7/standalone/tmp/vfs/deploymentefadcbeddfa044da/hudson-remoting-3.0.1.jar-df31d207bfb82c69/contents

looking on disk, the path, including "contents" exists, but the contents folder is empty. On the same level, the jar file exists. As a quick work around, if I remove "contents" and symlink "hudson-remoting-3.0.1.jar" over to contents, the build can continue and work (until I restart hudson, then the path is recreated again).

Ideas on how to fix this?

I am running hudson 3.1.0 on redhat 5 with Jboss 7.1.1 as the app server. Note that this worked without an issue on hudson 2.1.1 (running on jboss 5)
Re: hudson-remoting-3.0.1.jar not being found by mavin [message #1124776 is a reply to message #1124348] Thu, 03 October 2013 22:24 Go to previous messageGo to next message
Winston Prakash is currently offline Winston PrakashFriend
Messages: 534
Registered: August 2011
Location: Fremont, CA USA
Senior Member
I'm not sure if this has anything to do with how JBoss unzip the WAR and expose the libraries of an application (I'm guessing you have deployed Hudson in JBoss)

On tomcat I don't see the issue

/usr/opt/hudson/hudson_home/maven/slavebundle/bundled-maven/bin/mvn clean install -V -B -e -Dmaven.ext.class.path=/usr/opt/hudson/hudson_home/maven/slavebundle/resources:/usr/opt/hudson/hudson_home/maven/slavebundle/lib/maven3-eventspy-3.0.jar:/usr/opt/hudson/apache-tomcat-7.0.34/hudson-3.1.0/WEB-INF/lib/hudson-remoting-3.0.1.jar -Dhudson.eventspy.port=43184 -f pom.xml


You can see the jar in the classpath is

/usr/opt/hudson/apache-tomcat-7.0.34/hudson-3.1.0/WEB-INF/lib/hudson-remoting-3.0.1.jar


Also I don't see the issue with standalone mode

/usr/opt/hudson/hudson_home/maven/slavebundle/bundled-maven/bin/mvn clean install -V -B -Dmaven.ext.class.path=/usr/opt/hudson/hudson_home/maven/slavebundle/resources:/usr/opt/hudson/hudson_home/maven/slavebundle/lib/maven3-eventspy-3.0.jar:/usr/opt/hudson/hudson_home/war/webapp/WEB-INF/lib/hudson-remoting-3.0.1.jar -Dhudson.eventspy.port=51424 -f pom.xml


Winston Prakash
Eclipse Hudson team
Re: hudson-remoting-3.0.1.jar not being found by mavin [message #1125362 is a reply to message #1124776] Fri, 04 October 2013 12:38 Go to previous messageGo to next message
Mathew Anderson is currently offline Mathew AndersonFriend
Messages: 13
Registered: October 2013
Junior Member

Winston - Thanks for the response.
One of my developers was able to duplicate this as well. Here is his account :

I downloaded the Hudson-3.1.0.war and ran it locally with "java jar hudson-3.1.0.war"

I installed the Promotion Process Plugin (by checking the checkbox when prompted) and other plugins. I created a very simple project with a promotion process and the exact same stack trace was produced.
Re: hudson-remoting-3.0.1.jar not being found by mavin [message #1125716 is a reply to message #1125362] Fri, 04 October 2013 20:29 Go to previous messageGo to next message
Winston Prakash is currently offline Winston PrakashFriend
Messages: 534
Registered: August 2011
Location: Fremont, CA USA
Senior Member
Ok, I will try to reproduce this. I will start with a clean Hudson home. Mean while can you get these info

- Was he building on the master or some slave
- What is the version of maven3 plugin
- Version of JDK


Winston Prakash
Eclipse Hudson team
Re: hudson-remoting-3.0.1.jar not being found by mavin [message #1125731 is a reply to message #1125716] Fri, 04 October 2013 20:47 Go to previous messageGo to next message
Mathew Anderson is currently offline Mathew AndersonFriend
Messages: 13
Registered: October 2013
Junior Member
For mine : Master, no slave server
maven3 : 3.0.3
JDK : 1.6.0_14-b08

I'll get the information from my developer and post that shortly.
Re: hudson-remoting-3.0.1.jar not being found by mavin [message #1125742 is a reply to message #1125731] Fri, 04 October 2013 21:01 Go to previous messageGo to next message
Winston Prakash is currently offline Winston PrakashFriend
Messages: 534
Registered: August 2011
Location: Fremont, CA USA
Senior Member
Mathew, I see you have two topics. One related to

- hudson-remoting-3.0.1.jar not being found (this topic)
- Promoted Builds Plugin on 3.1.0 (http://www.eclipse.org/forums/index.php/t/537649/)

I guess, the message "One of my developers was able to duplicate this as well." is for the latter one which I'm able to reproduce and looking in to it.

I cannot reproduce the remoting issue though. I will download JBoss and try to reproduce



Winston Prakash
Eclipse Hudson team
Re: hudson-remoting-3.0.1.jar not being found by mavin [message #1128311 is a reply to message #1125742] Mon, 07 October 2013 15:03 Go to previous messageGo to next message
Mathew Anderson is currently offline Mathew AndersonFriend
Messages: 13
Registered: October 2013
Junior Member
The duplication was for this issue, not the promoted builds issue. Here we are able to duplicate on windows 7 and on RHEL 5.

For my developer, this is what he said:
I downloaded the Hudson-3.1.0.war and ran it locally on my Windows 7 machine with "java jar hudson-3.1.0.war"
Java version is 1.6.0_32
I installed the Promotion Process Plugin (by checking the checkbox when prompted) and other plugins.

I created a very simple project with a promotion process and the exact same stack trace was produced. I did not need to install maven or even run the build, as the exception happens when you simply "SAVE" the configuration. (I used ant as the build step inside of the promotion process)

Re: hudson-remoting-3.0.1.jar not being found by mavin [message #1128645 is a reply to message #1128311] Mon, 07 October 2013 22:34 Go to previous messageGo to next message
Winston Prakash is currently offline Winston PrakashFriend
Messages: 534
Registered: August 2011
Location: Fremont, CA USA
Senior Member
I'm confused

I did the exact same step as your developer. When I saved the job configuration, I get the exception

java.lang.ClassCastException: hudson.model.LazyTopLevelItem cannot be cast to hudson.plugins.promoted_builds.PromotionProcess
	hudson.plugins.promoted_builds.JobPropertyImpl.<init>(JobPropertyImpl.java:99)
	hudson.plugins.promoted_builds.JobPropertyImpl$DescriptorImpl.newInstance(JobPropertyImpl.java:299)


(As reported in http://www.eclipse.org/forums/index.php/t/537649/)

Not

java.lang.NoClassDefFoundError: hudson/remoting/Channel


As you reported in this thread.

Am I doing something wrong in my steps?





Winston Prakash
Eclipse Hudson team
Re: hudson-remoting-3.0.1.jar not being found by mavin [message #1129249 is a reply to message #1128645] Tue, 08 October 2013 12:54 Go to previous messageGo to next message
Mathew Anderson is currently offline Mathew AndersonFriend
Messages: 13
Registered: October 2013
Junior Member
Winston -
Thank you for keeping up with this. You are correct in that these are two different issues. I am very sorry for the confusion. My developer was looking at the other issue that I posted about, not the jboss7/classpathing issue. Sorry to have wasted your time down that rabbit hole.


Have you tried with jboss 7 to see if the classpath is being set incorrectly for you?
Re: hudson-remoting-3.0.1.jar not being found by mavin [message #1129458 is a reply to message #1129249] Tue, 08 October 2013 16:47 Go to previous messageGo to next message
Winston Prakash is currently offline Winston PrakashFriend
Messages: 534
Registered: August 2011
Location: Fremont, CA USA
Senior Member
Mathew, no problem. Good news is, I have fixed the promoted builds plugin issue. I will release a new version shortly. Next, I'll start looking at the jboss7 ClassPath issue.

Winston Prakash
Eclipse Hudson team
Re: hudson-remoting-3.0.1.jar not being found by mavin [message #1129522 is a reply to message #1129458] Tue, 08 October 2013 18:24 Go to previous messageGo to next message
Winston Prakash is currently offline Winston PrakashFriend
Messages: 534
Registered: August 2011
Location: Fremont, CA USA
Senior Member
Mathew, can you give me the quick steps how you deployed Hudson to JBoss 7.2 (I guess EAP 6.1)

Winston Prakash
Eclipse Hudson team
Re: hudson-remoting-3.0.1.jar not being found by mavin [message #1130445 is a reply to message #1129522] Wed, 09 October 2013 15:06 Go to previous messageGo to next message
Mathew Anderson is currently offline Mathew AndersonFriend
Messages: 13
Registered: October 2013
Junior Member
I am using jboss-as-7.1.1.Final.

tar -zxvf jboss-as-7.1.1.Final.tar.gz
cd jboss-as-7.1.1.Final/bin
./standalone.sh &
cd ../standalone/deployments
cp ~hudson-3.1.0.war hudson.war


Re: hudson-remoting-3.0.1.jar not being found by mavin [message #1148632 is a reply to message #1130445] Mon, 21 October 2013 16:41 Go to previous messageGo to next message
Mathew Anderson is currently offline Mathew AndersonFriend
Messages: 13
Registered: October 2013
Junior Member
Any luck?
Re: hudson-remoting-3.0.1.jar not being found by mavin [message #1148786 is a reply to message #1148632] Mon, 21 October 2013 18:53 Go to previous messageGo to next message
Mathew Anderson is currently offline Mathew AndersonFriend
Messages: 13
Registered: October 2013
Junior Member
From here:

http://grepcode.com/file/repo1.maven.org/maven2/org.eclipse.hudson/hudson-remoting/3.0.0/hudson/remoting/Which.java#Which.jarFile%28java.lang.Class%29

It looks like you may need a section for JBoss7. as it extracts the deployment a little differently.

Re: hudson-remoting-3.0.1.jar not being found by mavin [message #1150313 is a reply to message #1148786] Tue, 22 October 2013 17:37 Go to previous messageGo to next message
Winston Prakash is currently offline Winston PrakashFriend
Messages: 534
Registered: August 2011
Location: Fremont, CA USA
Senior Member
Hi Mathew, I'm able to reproduce your problem. I tried both ways, assembled war and unzipped war. I thought, if I used unzipped war, then JBoss may not create the temp folder to extract out the bundled jars in the WEB-INF folder. Unfortunately it does.

BTW, that for hint on where it may be failing. I may be able to fix it in the remoting module, but the fix may be available only in Hudson 3.1.1.

Can you please file a bug on this. I'll try fixing it in the remoting module


Winston Prakash
Eclipse Hudson team
Re: hudson-remoting-3.0.1.jar not being found by mavin [message #1150935 is a reply to message #1150313] Wed, 23 October 2013 03:27 Go to previous messageGo to next message
Winston Prakash is currently offline Winston PrakashFriend
Messages: 534
Registered: August 2011
Location: Fremont, CA USA
Senior Member
Mathew, can you try this development version and see if you still see the problem https://hudson.eclipse.org/hudson-project/job/hudson-core/lastSuccessfulBuild/artifact/hudson-war/target/hudson-war-3.1.1-SNAPSHOT.war

Winston Prakash
Eclipse Hudson team
Re: hudson-remoting-3.0.1.jar not being found by mavin [message #1153378 is a reply to message #1150935] Thu, 24 October 2013 15:19 Go to previous messageGo to next message
Mathew Anderson is currently offline Mathew AndersonFriend
Messages: 13
Registered: October 2013
Junior Member
Winston - I have submitted the bug (Bug 420289) and will try out the war file and get back with you.

thanks!
icon14.gif  Re: hudson-remoting-3.0.1.jar not being found by mavin [message #1153430 is a reply to message #1153378] Thu, 24 October 2013 15:59 Go to previous messageGo to next message
Mathew Anderson is currently offline Mathew AndersonFriend
Messages: 13
Registered: October 2013
Junior Member
The path now shows : /jboss7/standalone/tmp/vfs/tempe3c563fe3f5ca32f/hudson.war-34cccc744a255d42/WEB-INF/lib/hudson-remoting-3.0.2.jar

It appears to be fixed, thanks for help. I look forward to the stable release of 3.1.1.
Re: hudson-remoting-3.0.1.jar not being found by mavin [message #1153527 is a reply to message #1153430] Thu, 24 October 2013 17:23 Go to previous messageGo to next message
Mathew Anderson is currently offline Mathew AndersonFriend
Messages: 13
Registered: October 2013
Junior Member
Quick question for you - If I see any issues with the 3.1.1-snapshot should I bring them up here (create a new thread?)
Specifically I see a minor one with the email-ext plugin. I want to make sure I post the issue in the correct location.
-mathew
Re: hudson-remoting-3.0.1.jar not being found by mavin [message #1153714 is a reply to message #1153527] Thu, 24 October 2013 20:15 Go to previous message
Winston Prakash is currently offline Winston PrakashFriend
Messages: 534
Registered: August 2011
Location: Fremont, CA USA
Senior Member
It would help if you create a bug at bugzilla and add the whiteboard key word "candidate-3.1.1". Thanks.

Winston Prakash
Eclipse Hudson team
Previous Topic:Deploy to Wildfly (jBoss 8.x?)
Next Topic:Plugin - Grinder patch
Goto Forum:
  


Current Time: Thu Mar 28 21:47:59 GMT 2024

Powered by FUDForum. Page generated in 0.04330 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top