Re: [Newbie] Strange NoClassDefFoundError

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Wed Jan 28 2004 - 15:44:23 EST

  • Next message: Mike Kienenberger: "equivalent of DbAttribute.isMandatory() for Relationship?"

    Hi Cyril,

    Haven't been following Tomcat configuration structure evolution for a
    while, but normally default Tomcat install should bootstrap servlet.jar
    on its own. You don't have to (and probably shouldn't) do anything
    specific to install it. In my installation (4.1.27) it is located under
    "$tomcat_home/common/lib". It is quiet possible that shared/lib
    location messes up things.

    BTW, just migrated our Tapestry tutorial to Tapestry 3.0. Will be
    included in the upcoming Alpha-preview of 1.1

    Andrus

    On Jan 28, 2004, at 11:14 AM, Cyril Godefroy wrote:

    > I'm trying to get my mind together on Cayenne+tapestry at the same
    > time and I met really strange behaviors which seem more related to my
    > config than Cayenne or tapestry. Right now, I'm getting crazy about
    > class loader issues.
    >
    > I have Tomcat 4.1.29, Cayenne 1.0.5 (I'm late, I know) and Tapestry
    > 3.0b3. I used bbedit and ant to get my first tap+Cayenne application
    > running, and had problems regarding jars. So I put almost everything
    > in tomcat/shared/lib. At last, it worked.
    >
    > Now, I rebuilt the same app using eclipse 2. Compiles and installs
    > fine. But won't run, and throws an exception: servlet
    > java.lang.NoClassDefFoundError: javax/servlet/ServletContext
    > at
    > org.objectstyle.cayenne.conf.BasicServletConfiguration.(BasicServletCon
    > figuration.java:151)
    > servlet.jar is there, in $tomcat_home/shared/lib/
    > I put also in $tomcat_home/webapps/JWCCayenne/lib, but I've not been
    > more lucky.
    >
    > So what am I doing wrong?



    This archive was generated by hypermail 2.0.0 : Wed Jan 28 2004 - 15:44:31 EST