• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to resolve the exception java.lang.LinkageError ?  RSS feed

 
Birla Murugesan
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • 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
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • 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
  • 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 Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Birla Murugesan wrote:
once again i thank you for your response.


you are welcome
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!