• 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 ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Bear Bibeault
  • Henry Wong
  • Devaka Cooray
Saloon Keepers:
  • salvin francis
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Frits Walraven
Bartenders:
  • Jj Roberts
  • Carey Brown
  • Scott Selikoff

NoClassDefFoundError

 
Ranch Hand
Posts: 90
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi,
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 mail.jar.here 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
Naresh
 
Ranch Hand
Posts: 328
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

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...

Thanks,
Shriniwas
 
No matter how many women are assigned to the project, a pregnancy takes nine months. Much longer than this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic