doug.borg wrote:
> Hi all,
>
> I am also seeing this problem. I was upgrading from 1.323. After stopping
> tomcat and rm -rf hudson* in the <CATALINA_HOME>/webapps dir, I wget the
> hudson.war and then restart the webserver. I get exactly the same error. I
> have tried re-downloading and even trying a couple of different tomcat
> installations (6.0.18 and 6.0.20) - same error.
OK, thanks for the additional info.
I just tried a fresh Hudson 1.323 and 1.324 install on a fresh Tomcat
6.0.20 from Apache but those started successfully.
Upon closer look at the stack trace, I see that I initially
misunderstood the problem. There's hudson/Main.class in
hudson-core-*.jar, and this is the class that's supposed to be found.
Hudson has several "Main" classes in various packages, but the error
message gives me an impression that somehow Tomcat picked up
hudson.war!Main.class, although I don't know how that could happen.
Can you go to $TOMCAT_HOME/webapps/hudson/WEB-INF/lib and run
javap -classpath hudson-core-*.jar hudson.Main
... to make sure you see "public class hudson.Main extends
java.lang.Object" ?
> Thanks,
> Doug
>
>
> olivne wrote:
>>
>> Hi Koshuke,
>>
>> Actually, he didn't. I am getting exactly the same error.
>> Also, recently versions of Hudson display empty stack traces in test
>> failure pages. Is that a known bug?
>>
>> Thanks,
>> Oren
>>
>>> I think you messed up your war file handling. You probably ended up
>>> misplacing hudson.war!Main.class into
>>> hudson.war!WEB-INF/classes/hudson/Main.class or something like that.
>>
>>
>
--
Kohsuke Kawaguchi
Sun Microsystems
http://weblogs.java.net/blog/kohsuke/