• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

NoClassDefFoundError caused by tomahawk

liliane fahmy
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all
I want to add tomahawk component in Jsf via Netbean 7:
1-I added all needed jars:1-commons-validator-1.3.1.jar
2-I modified the web.xml:

<servlet-name>Faces Servlet</servlet-name>
<servlet-name>Faces Servlet</servlet-name>



<!-- extension mapping for adding <script/>, <link/>, and other resource tags to JSF-pages -->
<!-- servlet-name must match the name of your javax.faces.webapp.FacesServlet entry -->
<servlet-name>Faces Servlet</servlet-name>

<!-- extension mapping for serving page-independent resources (javascript, stylesheets, images, etc.) -->

3-and my jsf is:

Document : searchTrip
Created on : Sep 6, 2012, 12:07:09 AM
Author : HP
<%@page contentType="text/html" pageEncoding="UTF-8"%>

<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<%@taglib prefix="t" uri="http://myfaces.apache.org/tomahawk" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"


<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>

<f:loadBundle basename="com.airline.bundles.LocalizationResources" var="pro"/>
<title><hutputText value="#{pro.SEARCH_TICK}"/></title>
<h1><hutputText value="search trip!"/></h1>
<t:panelTabbedPane bgcolor="#FFFFCC">
<t:panelTab label="Tab 1">
<f:verbatim><H1>Tab 1</H1></f:verbatim>
<t:panelTab label="Tab 2">
<f:verbatim><H1>Tab 2</H1></f:verbatim>
<t:panelTab label="Tab 3">
<f:verbatim><H1>Tab 3</H1></f:verbatim>
<h:commandButton value="Common Button" />


and the exception thrown in the page is java.lang.NoClassDefFoundError: org/apache/commons/lang/builder/HashCodeBuilder

PLease help me ,it 's serious

Tim Holloway
Saloon Keeper
Posts: 18319
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Be kind to our eyes. Use the "Code" tags to wrap sample Java and XML and produce formatted displays. There's a "Code" button in the message editor that will insert them.

My best guess is that you're not including the apache commons collections JAR in your build. I think that's where the missing class comes from.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic