• 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

How to resolve the exception java.lang.LinkageError ?

 
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Having a java class com.birla.NewAPI

Having the A.jsp file

In that jsp,while invoking the method of NewAPI

The below exception came

Servlet.service() for servlet jsp threw exception java.lang.LinkageError: com/birla/NewAPI


How to resolve this exception.

Regards,
Birla.M
 
Ranch Hand
Posts: 5575
Eclipse IDE Windows XP Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
did you add any jar [in WEB-INF/lib ] which is already part of the webcontainer's lib folder .
the error indicate that you have two different version of the same class file in your class path, fix it.
 
Birla Murugesan
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
seetharaman,

Thanks for you suggestions.Actually ,the problem was having same jars in my webapps context and webcontainer lib which was said by you.

once again i thank you for your response.

Regards,
Birla.M
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Windows XP Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Birla Murugesan wrote:
once again i thank you for your response.



you are welcome
 
reply
    Bookmark Topic Watch Topic
  • New Topic