Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

LinkageError

 
Mike Broadbear
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm getting the following error when I try to access an ejb from a jsp page. I have read several interpretations of the LinkageError. The gist of the cause seems to be multiple, non-identical versions of a class in the classpath. I am most interested to know how to figure out specifically what class is causing the error and why. How do I isolate the problem and fix it?

java.lang.LinkageError: loader constraints violated when linking org/cayambe/core/CategoryVO class
at org.cayambe.client.CategoryDelegate.listCategories(Unknown Source)
at org.cayambe.web.admin.action.ListCategoriesAction.perform(Unknown Source)
at org.apache.struts.action.ActionServlet.processActionPerform(ActionServlet.java:1787)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1586)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic