3 Replies Latest reply on Sep 12, 2007 1:22 AM by kaviarasu

    java.lang.NoClassDefFoundError: org/richfaces/component/UITa

    kaviarasu

      im getting the error of

      java.lang.NoClassDefFoundError: org/richfaces/component/UITabPanel



      im using redhatdeveloperstudio with seam 2.0.0.BETA1


      i added the jar file by right clicking the project in project explorer then select buildpath---configure build path and added the jars

      then i added the following lines in my project

      import org.richfaces.component.UITabPanel;
      private UITabPanel utp;
      
       public UITabPanel getutp()
      
       {
       return utp;
      
       }
      
      public void doi(){
       Integer s= (Integer) getutp().getSelectedTab();
      
       }


      after building the project im getting the error


      java.lang.NoClassDefFoundError: org/richfaces/component/UITabPanel




      Is my procedure to add the package to my project is correct or how to configure the packages


        • 1. Re: java.lang.NoClassDefFoundError: org/richfaces/component/

          what you added and what you removed from the WEB-INF/lib ?

          • 2. Re: java.lang.NoClassDefFoundError: org/richfaces/component/
            kaviarasu

            Hi
            i added
            ajax4jsf-1.1.1
            oscache-2.3.2
            richfaces-3.0.1

            and there is nothing in the folder before im adding


            And added the following coding in web.xml file

            <context-param>
             <param-name>org.richfaces.SKIN</param-name>
             <param-value>blueSky</param-value>
             </context-param>
             <filter>
             <display-name>RichFaces Filter</display-name>
             <filter-name>richfaces</filter-name>
             <filter-class>org.ajax4jsf.Filter</filter-class>
             </filter>
             <filter-mapping>
             <filter-name>richfaces</filter-name>
             <servlet-name>Faces Servlet</servlet-name>
             <dispatcher>REQUEST</dispatcher>
             <dispatcher>FORWARD</dispatcher>
             <dispatcher>INCLUDE</dispatcher>
             </filter-mapping>


            when i added the abovve code it says already have refrence to the skin so i removed
            <context-param>
             <param-name>org.richfaces.SKIN</param-name>
             <param-value>blueSky</param-value>
             </context-param>


            after i build still im getting the same error.



            Thank u
            regrds
            kaviarasu

            • 3. Re: java.lang.NoClassDefFoundError: org/richfaces/component/
              kaviarasu

              hi im using seam gen for creating projects
              when i build project already these files are in project.war--webinf/lib

              how to make work that
              thank u