• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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: 27763
196
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.
 
If you two don't stop this rough-housing somebody is going to end up crying. Sit down and read this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic