provide-free-support Ujjwal's Blog: Building a Tomcat Bundle from Liferay Source

Friday, July 5, 2013

Building a Tomcat Bundle from Liferay Source

Few steps for creating your own tomcat bundle from Liferay Source.
  • Extract plain  tomcat .
  • Rename apache- tomcat-7.0.23  to tomcat-7.0.23(tomcat-[version]).
  • Download/checkout liferay source from https://lportal.svn.sourceforge.net/svnroot/lportal/portal/.
  • Import this in eclipse
  • Create app.server[userName].properties in portal-trunk(userName-User Name of your PC)
  • Override three properties in above file
  1. app.server.parent.dir =Parent directory path of tomcat
  2. app.server.tomcat.portal.dir=Absolute path of portal-trunk/portal-web/docroot
  3. app.server.tomcat.version=tomcat version
Eg. Suppose your source code in C:/WorkSpace folder & tomcat in C:/deployment folder with name tomcat-7.0.23.
  1. app.server.parent.dir =C:/deployment (don’t consider tomcat-7.0.23 in this path)
  2. app.server.tomcat.portal.dir = C:/WorkSpace/portal-trunk/portal-web/docroot
  3. app.server.tomcat.version =7.0.23
  • Then build ant all.
  • If it will throw out of memory then set VM arguments to -Xms512m or more
Right click of build.xml -> Run As -> 2 Ant Build -> JRE here you will find VM arguments.
  • Copy & replace catalina.properties from liferay bundle/conf  to tomcat/conf
  • Create portal-ext.properties in \tomcat-[version]\webapps\ROOT\WEB-INF\classes
Copy following configurations in portal-ext.properties
  1. jdbc.default.driverClassName=com.mysql.jdbc.Driver
  2. jdbc.default.url=jdbc:mysql://localhost/[ DN_NAME]?useUnicode=true&characterEncoding=UTF-8&useFastDateParsing=false
  3. jdbc.default.username=root
  4. jdbc.default.password=root
change properties as per your database.

No comments:

best-it-exam-    | for-our-work-    | hottst-on-sale-    | it-sale-    | tast-dumps-us-    | test-king-number-    | pass-do-it-    | just-do-it-    | pass-with-us-    | passresults-everything-    | passtutor-our-dumps-    | realtests-us-exam-    | latest-update-source-for-    | cbtnuggets-sale-exam    | experts-revised-exam    | certguide-sale-exam    | test4-sale-exam    | get-well-prepared-    | certkiller-sale-exam    | buy-discount-dumps    | how-to-get-prepared-for-the    | in-an-easy-way    | brain-dumps-sale    | with-pass-exam-guarantee    | accurate-study-material    | at-first-try    | 100%-successful-rate    | get-certification-easily    | material-provider-exam    | real-exam-practice    | with-pass-score-guarantee    | certification-material-provider    | for-certification-professionals    | get-your-certification-successfully    | 100%-Pass-Rate    | in-pdf-file    | practice-exam-for    | it-study-guides    | study-material-sku    | study-guide-pdf    | prep-guide-demo    | certification-material-id    | actual-tests-demo    | brain-demos-test    | best-pdf-download    | our-certification-material    | best-practice-test    | leading-provider-on    | this-course-is-about    | the-most-reliable    | high-pass-rate-of    | high-pass-rate-demo    | recenty-updated-key    | only-for-students-free-download    | courseware-plus-kit-for    | accurate-answers-of    | the-most-reliable-id    | provide-training-for    | welcome-to-buy    | material-for-success-pass    | provide-free-support    | best-book-for-pass    | accuracy-of-the-answers    | pass-guarantee-id    | pass-exam-key    | pass-sku-id    | study-for-exid    | pdf-sku-exid    | sku-pdf-id    | pdf-demo-key    | exam-demo-ske    | pass-it-dump    |
http://www.menuiserie-dauvergne.com/    | http://www.menuiserie-dauvergne.com/    |