• 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:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

I am getting java.lang.LinkageError: loader constraint violation:

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have developed a sample portlet(liferay) application using JSF.

The attachment has the folder structures and the jars i have included. I have put jsf-api and jsf-impl
from the jbossweb.sar of jboss 5.1.0, in the build path of the project.

I am getting the following exception on accessing the portlet. Please help me solve this issue

JSF-app.JPG
[Thumbnail for JSF-app.JPG]
My project folder structure
 
Saloon Keeper
Posts: 24861
174
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If Liferay is running in a JBoss container, you should not copy the JSF-impl.jar into the WAR. JBoss itself manages that.

Your actual problem sounds like a different situation, however. If you have an el-impl.jar file in your WAR, remove that. Neither JBoss nor Tomcat6 needs that, and it will interfere with the Tomcat internal copy of el-impl.jar
 
WHAT is your favorite color? Blue, no yellow, ahhhhhhh! 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