| Author |
Getting NoClassDefFoundError in Richfaces
|
Dwijen Bhattacharjee
Greenhorn
Joined: Mar 31, 2008
Posts: 26
|
|
Hi All, I am trying to configure richfaces for my application But i am getting the following error during deployment Class : org.richfaces.renderkit.html.HtmlPanelMenuRenderer not found. java.lang.NoClassDefFoundError: org/richfaces/component/UIPanelMenuGroup I included the richfaces-api-3.2.1.GA.jar,richfaces-impl-3.2.1.GA.jar,richfaces-ui-3.2.1.GA.jar inside the WEB-INF/lib folder and added in the classpath. my web.xmi file is as followes-- <?xml version="1.0" encoding="UTF-8"?> <web-app xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="2.4" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"> <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> <context-param> <param-name>javax.faces.CONFIG_FILES</param-name> <param-value>/WEB-INF/faces-config.xml</param-value> </context-param> <servlet> <servlet-name>Faces Servlet</servlet-name> <servlet-class>javax.faces.webapp.FacesServlet</servlet-class> <load-on-startup>0</load-on-startup> </servlet> <servlet-mapping> <servlet-name>Faces Servlet</servlet-name> <url-pattern>*.faces</url-pattern> </servlet-mapping> </web-app> That paricular class is present in side the richfaces-ui-3.2.1.GA.jar file but still I am getting the error. Please help me out.
|
 |
Vesa Tanhua-Tyrkk�
Greenhorn
Joined: Jan 16, 2008
Posts: 25
|
|
Hi, Have you added all needed jar files to WEB-INF/lib folder. I think that RichFaces uses following utility jars: commons-beanutils.jar, commons-collections.jar, commons-digester.jar, commons-logging.jar
|
 |
Dwijen Bhattacharjee
Greenhorn
Joined: Mar 31, 2008
Posts: 26
|
|
|
Yes ,I have all the above mention jars in the WEB-INF/lib folder.
|
 |
 |
|
|
subject: Getting NoClassDefFoundError in Richfaces
|
|
|