-
Type:
Bug
-
Resolution: Cannot Reproduce
-
Priority:
Major
-
Component/s: other
-
Environment:linux
Version: 1.36 and prior versions
This is a famous bug that is bugging me for a long time now:
java.lang.NoClassDefFoundError: hudson/Main (wrong name: Main)
I noticed in the mailing list that more people have this "mistery error".
I think it's because of the scattered jar's in the hudson.war.
All web app dependent jar's should be located in the WEB-INF/lib dir.
I had this same error again just now
.. and tried about everyting, downloading new version, cleaning tomcat, removing hudson dir, etc...
I then removed the hudson/winstone.jar and everything works fine, even when restaring...
So my conclusion is that the jar's shouldn't be there in the hudson dir but only in the WEB-INF/lib dir, and that for some reason this winstone jar is picked up...
I deployed many app's and never had this error, but on the other hand, also never had jar's scattered around in a web app like in hudson dir.
Hope this helps,
Ed