Win a copy of Terraform in Action this week in the Cloud forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Jesse Silverman
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • Al Hobbs
  • salvin francis

java.lang.NoClassDefFoundError error in servlet project

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hey what'up guys.
I just want to know what's wrong with this code a copy from a book.
It's a Servlet project and have to do with deploy and  undeploy with Ant. I can't find the error, mean i spent a full day trying it, can someone help?

the error..
Buildfile: C:\Users\andre\Desktop\eclipse-workspace\Servlet01\build.xml
undeploy:

BUILD FAILED
C:\Users\andre\Desktop\eclipse-workspace\Servlet01\build.xml:55: java.lang.NoClassDefFoundError: org/apache/tomcat/util/buf/B2CConverter

build.xml


NOTE: all the others tasks works fine, but deploy and undeploy not.
 
Marshal
Posts: 74392
334
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Welcome to the Ranch

Please tell us which book, preferably with page number, to prevent copyright problems.

Please always use the code button; since you are new I'll go back and edit your post with the code button, so you can see how much better it looks Moved discussion to our Servlets forum.
 
Andre Luis Silva
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The book's name:
  Desenvolvimento para WEB com java. by Everton Coimbra de Araujo.
from page 34 to 50.
From some researches i got some tips on set the classpath to include servlet-api.jar. but it continues the same. Erros keep coming.

thank you!
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic