2 Replies Latest reply on May 19, 2009 4:29 AM by ranma172

    Strange ConfigurationException / NoClassDefFoundException ..

      Hello,

      I'm a RichFaces/JSF newbie and I don't know why I'm getting these exceptions when starting Tomcat 6 (through Eclipse).

      When I start Tomcat 6, sometimes (but now I can't reproduce it!) I get a JSF ConfigurationException caused by some NoClassDefFoundException (the class not found IS there; this is not a missing JAR problem).

      Now I have all JARs into WEB-INF/lib but, when it happens, I can fix the exception if I move these JARS to Tomcat lib:

      commons-beanutils-1.7.0.jar
      commons-collections-3.2.jar
      commons-digester-1.8.jar
      commons-logging-1.0.4.jar
      jsf-api-1.2_12.jar
      jsf-impl-1.2_12.jar


      Do you know what can be happening?

      Is it correct to put the JSF-related JARs into WEB-INF/lib? Is it better to put them in the server lib folder?

      Thank you very much.

      Some info: I'm running Tomcat 6 on Eclipse Ganymede and these are all the JARs in my WEB-INF/lib:
      commons-beanutils-1.7.0.jar
      commons-collections-3.2.jar
      commons-digester-1.8.jar
      commons-logging-1.0.4.jar
      jsf-api-1.2_12.jar
      jsf-facelets-1.1.14.jar
      jsf-impl-1.2_12.jar
      jstl-1.2.jar
      richfaces-api-3.3.0.GA.jar
      richfaces-impl-3.3.0.GA.jar
      richfaces-ui-3.3.0.GA.jar
      standard-1.1.2.jar


        • 1. Re: Strange ConfigurationException / NoClassDefFoundExceptio
          nbelaevski

          Hi,

          Eclipse sometimes has deployment issues. Make sure that you have no errors in your project -> open "Problems" view and check. Also cleaning the project forces Eclipse to redeploy libraries - try that.

          I'd suggest not to put .jar files into server/lib folder because it will affect all applications running on the server.

          • 2. Re: Strange ConfigurationException / NoClassDefFoundExceptio

             

            "nbelaevski" wrote:
            Eclipse sometimes has deployment issues. Make sure that you have no errors in your project -> open "Problems" view and check. Also cleaning the project forces Eclipse to redeploy libraries - try that.

            So it's an Eclipse problem... Thank you. I'll try that the next time it happens.

            "nbelaevski" wrote:
            I'd suggest not to put .jar files into server/lib folder because it will affect all applications running on the server.

            I know, I agree with that.