I just switched to Eclipse version 3 and Tomcat 5. Also, I'm using the
Sysdeo plug-in for Tomcat. I've been running through a Spring tutorial and
I was having a problem with NoClassDefFound. The class in question is in
the common/lib/commons-el.jar of Tomcat. I didn't remember having this
problem when I was using Eclipse 2.1.2 and Tomcat 4, but I went in to the
Tomcat preferences and added the common/lib directory to my JVM settings.
This didn't help, so I specifically added the commons-el.jar to the JVM
settings. That fixed this error, but then I got another one ... this time
for a spring class where the jar was in my WEB-INF/lib directory. I
eventually added all jars in Tomcat's common/lib and my WEB-INF/lib to the
JVM settings and everything worked. This doesn't sound right, I would think
these would be loaded automatically (If I run Tomcat outside of Eclipse they
certainly are). Any ideas what I might be doing wrong?
Thanks,
Mike WItt
|