What version of Liferay are you using? With the LEP 4.0 you shouldn't have to worry about the version of Myfaces LEP is using since this is segrated into a different classloader. You are free to put whatever version you want in your WEB-INF/lib folder. I am using MyFaces-1.1.4-SNAPSHOT and tomhawk-1.1.2 with no problems.
You DO need util-jsf.jar however, so make sure this is in your portlet's classpath somewhere. Again, WEB-INF/lib is favorite. I also include commons-logging-1.0.4.jar since I'm using it to log in my portlet. Todd > -----Original Message----- > From: Greg Reddin [mailto:[EMAIL PROTECTED] > Sent: Sunday, July 23, 2006 2:48 PM > To: MyFaces Discussion > Subject: Myfaces Portlets With Liferay and Maven > > Hi, > > I'm trying to build a strategy for developing MyFaces > portlets with Maven for deployment into Liferay. I've posted > a thread on the Liferay forum but so far no one has > responded. I wonder if anyone here has any experience or > insight. Here's a link to the thread: > > http://forums.liferay.com/index.php?showtopic=5957 > > I'm not having problems deploying Myfaces as a portlet. The > problem seems to be in using m2 as my build mechanism. I'm > using Myfaces 1.1.1. It is declared as a dependency in my > pom.xml. Liferay ships with a sample MyFaces war file. The > myfaces jars in that war file appear to be 1.1.1 based on the > MANIFEST file. But the war that ships with Liferay contains > different jar files than what I get if I declare myfaces as a > dependency in Maven. So I don't know if the war is > "custom-built" or if it contains a set of jars from the > myfaces distribution. Either way, their war file does not > contain a commons- logging.jar while mine does. Mine seems > to conflict with a commons- logging.jar distributed with > Liferay, but I haven't been able to determine exactly where. > Anyway my deployment works if I remove > commons-logging-1.0.4.jar form WEB-INF/lib and add Liferay's > util- jsf.jar. So... any advice on how I can make my > deployment successful? Do I need to change something in > Liferay's deployment or is an M2-built war not an option? > Also, does anyone know if the Liferay jars are available on a > public Maven repo somewhere or will I have to set up a > private repo somewhere? > > Thanks, > Greg >

