掲示板
How to build and run a Liferay IFrame Portlet?
12年前 に Pete Helgren によって更新されました。
How to build and run a Liferay IFrame Portlet?
Regular Member 投稿: 225 参加年月日: 11/04/07 最新の投稿
Don't ask why, but I wanted to see how the IFrame portlet worked in anticipation of making a modification to it so I decided to clone the IFrame portlet, copying the source and compiling it and deploying it. But I have run into a snag I don't quite know how to handle....
In order to compile the IFrame, I have to have the portal-impl-6.0.5.jar in the build path, easy enough with Eclipse. But then if the .jar isn't on the classpath I get a Class not found exception. If I foolishly add it to the Tomcat libs, I get:
java.lang.ClassCastException: org.apache.log4j.ConsoleAppender cannot be cast to org.apache.log4j.Appender
A little searching finds many references to "NEVER put portal-impl-6.0.5.jar in the classpath" in Liferay. So of course the question is: How do you run a class with dependencies on a jar that should NEVER be used? How did you folks get the IFrame Portal to compile and run in the Liferay CE distro?
Thanks,
Pete
In order to compile the IFrame, I have to have the portal-impl-6.0.5.jar in the build path, easy enough with Eclipse. But then if the .jar isn't on the classpath I get a Class not found exception. If I foolishly add it to the Tomcat libs, I get:
java.lang.ClassCastException: org.apache.log4j.ConsoleAppender cannot be cast to org.apache.log4j.Appender
A little searching finds many references to "NEVER put portal-impl-6.0.5.jar in the classpath" in Liferay. So of course the question is: How do you run a class with dependencies on a jar that should NEVER be used? How did you folks get the IFrame Portal to compile and run in the Liferay CE distro?
Thanks,
Pete
12年前 に David H Nebinger によって更新されました。
RE: How to build and run a Liferay IFrame Portlet?
Liferay Legend 投稿: 14915 参加年月日: 06/09/02 最新の投稿
You'll have to do this as an ext plugin, since this portlet will need to be part of the ROOT web application after deployment.
12年前 に Pete Helgren によって更新されました。
RE: How to build and run a Liferay IFrame Portlet?
Regular Member 投稿: 225 参加年月日: 11/04/07 最新の投稿
Thanks David...now, to learn how to create this as an ext plugin....
Climbing the LR learning curve ;-)
Pete
Climbing the LR learning curve ;-)
Pete
12年前 に David H Nebinger によって更新されました。
RE: How to build and run a Liferay IFrame Portlet?
Liferay Legend 投稿: 14915 参加年月日: 06/09/02 最新の投稿
It's the same hill many of us have climbed before, and I'm sure you can do it.