• 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:
  • Devaka Cooray
  • Campbell Ritchie
  • Tim Cooke
  • Ron McLeod
  • Paul Clapham
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Saloon Keepers:
  • Tim Holloway
Bartenders:

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: 29004
214
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.
 
No prison can hold Chairface Chippendale. And on a totally different topic ... my stuff:
The new gardening playing cards kickstarter is now live!
https://www.kickstarter.com/projects/paulwheaton/garden-cards
reply
    Bookmark Topic Watch Topic
  • New Topic