Win a copy of Micro Frontends in Action this week in the Server-Side JavaScript and NodeJS 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

NoClassDefFoundError: org/apache/tomcat/util/codec/binary/Base64

chowdary kota
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

i have a problem with ant build xml file in eclipse while running tomcat tasks remaining tasks works fine. i am getting this ERROR: NoClassDefFoundError: org/apache/tomcat/util/codec/binary/Base64

ERROR: C:\development\workspace\lumstat\build.xml:153: java.lang.NoClassDefFoundError: org/apache/tomcat/util/codec/binary/Base64

i have checked tomcat-util.jar files toc hck if i am missing any jar files. I can see everythign looks ok.

I am using apache tomcat version 8
eclipse : Eclipse Java EE IDE for Web Developers.
Version: Mars.1 Release (4.5.1)

i tried different methods to overcome this issue. But not able to fix it.
Can someone please help me with this issue !

Tim Holloway
Saloon Keeper
Posts: 22511
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the JavaRanch, Chowdary!

I'm uncomfortable with your Windows pathnames ("C:\development\ ..."). Backslashes can often bite. I prefer the safer form: "C:/development/...".

As I read it, the Ant script is deploying a WAR into a running Tomcat when it fails. You didn't provide much context for the exception, however. If the webapp itself is attempting the use class org.apache.tomcat.util.codec.binary.Base64, then it's probably right to fail. Webapps should not attempt to directly employ Tomcat's internal classes.

If Tomcat is failing, then the stacktrace and related information from the Tomcat catalina.out console log would be useful.
    Bookmark Topic Watch Topic
  • New Topic