Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
Building Professional vs. Enterprise with Eclipse
I'm confused by the build process for Liferay -- A readme file would really help <!--emo&
--><img src='@theme_images_path@/emotions/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif' /><!--endemo--> The documentation on the website doesn't seem to match up exactly.<br /><br />I created a new eclipse workspace in c:/sourceforge/liferay/eclipse_workspace and started eclipse. I checked out the project from CVS into the workspace via eclipse. I wanted to take a look at the Blog code to see if a few things are fixed in CVS that are bugging me with the RSS.<br /><br />When I build, I get a failure that says the Jboss-jetty directory is not found.<br /><br />Here are my questions:<br /><br />1. Is the build process the same for professional and enterprise?<br />2. I created appserver.bbonner.properties, release.bbonner.properties and build.bbonner.properties as documented in the instructions.<br /><br />I left the lp.xxx.dir directories the same.<br /><br />It was not clear to me what the intent of these directories were and where they should be relative to each other--it seems that there are relative path dependencies in the build files that require these to be setup a certain way. Can someone describe this?<br /><br />3. Is JONAS required to be downloaded if I'm building for Tomcat?<br />4. Is the CVS code setup to use Hypersonic SQL?<br /><br />Here's my"perfect" world for liferay:<br /><br />1. I'd like to have liferay imported as a project (or projects) into eclipse<br />2. I'd like to be able to debug in eclipse (as I do my other web/java projects) using the integrated debugger<br />3. I'd like to be able to develop jsr-168 portlets in eclipse with liferay.<br /><br />I'm hoping that I can create a simple readme to make it easier to get started once I understand how to do it.<br /><br />Thanks,<br />Brian
I'm confused by the build process for Liferay -- A readme file would really help <!--emo&<br />Yes, but if you are using the ext environment, you will need to have downloaded and setup the appropriate bundled container.<br />--><img src='@theme_images_path@/emotions/smile.gif' border='0' style='vertical-align:middle' alt='smile.gif' /><!--endemo--> The documentation on the website doesn't seem to match up exactly.<br /><br />I created a new eclipse workspace in c:/sourceforge/liferay/eclipse_workspace and started eclipse. I checked out the project from CVS into the workspace via eclipse. I wanted to take a look at the Blog code to see if a few things are fixed in CVS that are bugging me with the RSS.<br /><br />When I build, I get a failure that says the Jboss-jetty directory is not found.<br /><br />Here are my questions:<br /><br />1. Is the build process the same for professional and enterprise?<br />
2. I created appserver.bbonner.properties, release.bbonner.properties and build.bbonner.properties as documented in the instructions.<br /><br />I left the lp.xxx.dir directories the same.<br /><br />OK.<br />
It was not clear to me what the intent of these directories were and where they should be relative to each other--it seems that there are relative path dependencies in the build files that require these to be setup a certain way. Can someone describe this?<br /><br />These dirs are important if you want to use the targets that customise your portal using the ext environment.<br />
3. Is JONAS required to be downloaded if I'm building for Tomcat?<br /><br />No.<br />
4. Is the CVS code setup to use Hypersonic SQL?<br /><br />Yes, but you can easily change it to any DB of your choosing by modifying the container's DB setup in the ext environment.<br />
Here's my"perfect" world for liferay:<br /><br />1. I'd like to have liferay imported as a project (or projects) into eclipse<br />2. I'd like to be able to debug in eclipse (as I do my other web/java projects) using the integrated debugger<br /><br />Both very achievable using container plugins such as Sysdeo.<br />
3. I'd like to be able to develop jsr-168 portlets in eclipse with liferay.<br /><br />Also pretty straightforward, start by importing test.war.<br />
Brett, thanks for the patient reply. I reviewed the site/forum/mailing lists in a good amount of detail.<br /><br />I use sysdeo on a regular basis. I'd like to work on the blog portlet code.<br /><br />What's the best/easiest way to build/edit and debug the portal in tomcat under eclipse?<br /><br />I've done more research. I ran ant start which compiled everything OK.<br /><br />There are multiple WAR files generated:<br />portal-ear\liferay-portal.ear<br />portal-ear\liferay-portal.war<br />portal-ear\liferay-portal-jaas.jar<br />portal-ejb\portal-ejb.jar<br />portal-web\portal-web.war<br /><br />but it doesn't look like the deploy target does what I need.<br /><br />Brian
I just saw a post where you responded:<br /><br />
The "ear" target in portal-ear/build.xml builds the WAR. It is smaller than the downloaded one as it does not include the required libraries, as it is assumed that you will deploy those (to a container classloader) once, separately.<br /><br />I'll give this a shot.
I noticed that the jar files that are part of liferay-portal.war (except for util-taglib.jar) appear under WEB-INF/lib vs. ext as in the downloadable liferay-portal-pro-3.2.0-tomcat.war.
What's the best/easiest way to build/edit and debug the portal in tomcat under eclipse?<br />Depends on your requirements, i.e. extra steps if you also need to debug JSPs. I find that the most straightforward approach is to setup the ext environment with Tomcat container, and point Sysdeo at this Tomcat. After you setup source paths etc, you will be able to step-debug portal/portlet code.
Community
Company
Feedback