aspose file tools*
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: 16236
    
  21

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: