File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes JSF and the fly likes NoClassDefFoundError caused by tomahawk Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "NoClassDefFoundError caused by tomahawk" Watch "NoClassDefFoundError caused by tomahawk" New topic

NoClassDefFoundError caused by tomahawk

liliane fahmy

Joined: Aug 24, 2012
Posts: 22
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=""%>
<%@taglib prefix="h" uri=""%>
<%@taglib prefix="t" uri="" %>
<%@taglib prefix="c" uri="" %>

<!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

Joined: Jun 25, 2001
Posts: 17421

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.

An IDE is no substitute for an Intelligent Developer.
I agree. Here's the link:
subject: NoClassDefFoundError caused by tomahawk
It's not a secret anymore!