• 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:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Liutauras Vilda
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Saloon Keepers:
  • Scott Selikoff
  • Tim Holloway
  • Piet Souris
  • Mikalai Zaikin
  • Frits Walraven
Bartenders:
  • Stephan van Hulst
  • Carey Brown

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

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

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 !


 
Saloon Keeper
Posts: 28424
210
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
keep an eye out for scorpions and black widows. But the tiny ads are safe.
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic