Win a copy of Java Database Connections & Transactions (e-book only) this week in the JDBC 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
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

NoClassDefFoundError  RSS feed

Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am new to java mail api.I am getting this exception while running the program java.lang.NoClassDefFoundError: com/sun/activation/registries/LogSupport.
i have setted the class path for activation.jar and i am using the JBOSS 3.2.6 please help me out of this.

i have did the same program as Sevlet that time it is running corrctly with out throwing any exception at all.

please find the senerio and help me out of this.

Thanks and Regards
Ranch Hand
Posts: 328
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

You might have the mail and activation classes in 2 different jars in the application classpath. There is a chance that both j2ee.jar and (mail.jar & activation.jar). The versions are different - it was using the javax.mail classes from j2ee.jar. So please do a search in all your jars for the file MailcapCommandMap.class and identify the wrong version.

Hope this helps...

My pie came with a little toothpic holding up this tiny ad:
how do I do my own kindle-like thing - without amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!