Get your CodeRanch badge!*
The moose likes JSF and the fly likes I am getting java.lang.LinkageError: loader constraint violation: Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "I am getting java.lang.LinkageError: loader constraint violation:" Watch "I am getting java.lang.LinkageError: loader constraint violation:" New topic
Author

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

Pattamuthu Aru
Greenhorn

Joined: May 25, 2010
Posts: 13
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




[Thumbnail for JSF-app.JPG]

Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 15641
    
  15

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


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: I am getting java.lang.LinkageError: loader constraint violation:
 
Similar Threads
Trying to run portals in action JSF 2.0 example in liferay on glassfish
Liferay: NullPointerException on load.
NullPointerException on Liferay
JBoss 5.1 throwing error for missing jsp files in /WEB-INF folder
Problem Upload files on google docs through Liferay portal 6.0.6