Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Marhgil Macuha
Documentation for Liferay Ver 5.2.1
February 16, 2009 9:21 PM
Answer

Marhgil Macuha

Rank: New Member

Posts: 2

Join Date: February 16, 2009

Recent Posts

Hi! I'm new to Liferay and this is actually my first post in this community. I've downloaded the latest version, Tomcat 6.0 bundle since it's the recommended version for people who are new to this thing. I wanted to setup Liferay with MYSQL database, however, I can't figure it out. Your documentation is outdated and it's hard looking for information on setting 5.2.1 up.

My immediate superior told me to use 5.1 instead, since it's the one with documentation. But I can't find your 5.1 version download link on this site. Where is it?

Can someone give me an updated documentation on 5.2.1? I prefer using the latest version instead of working with an outdated version. We are planning to migrate our existing portal to Liferay and a detailed documentation including database schema will really help a lot.

Thanks in advance!
Kanakaraj Cheram
RE: Documentation for Liferay Ver 5.2.1
February 17, 2009 3:53 AM
Answer

Kanakaraj Cheram

Rank: New Member

Posts: 19

Join Date: April 8, 2008

Recent Posts

Hi

please visit liferay 5.1 documents

there you can see the older versions of liferay docs ...
from videos u can get how to do things


-live
-rajcheram
Thomas Vaughan
RE: Documentation for Liferay Ver 5.2.1
February 17, 2009 10:29 AM
Answer

Thomas Vaughan

Rank: New Member

Posts: 8

Join Date: February 17, 2009

Recent Posts

I'm trying to get Liferay 5.2.1 installed on a fresh jetty 5.1.1 instance and I can't figure out how to configure liferay to use MySQL either...

I've followed (what I think are) the latest instructions in the liferay-admin-guide and on context startup, the liferay war still tries to connect to a HSQL source.

I created the database as described in the instructions by running the create-minimal.sql script such that my "lportal" database now contains these tables:

mysql> show tables;
+--------------------------------+
| Tables_in_lportal              |
+--------------------------------+
| Account_                       |
| Address                        |
| AnnouncementsDelivery          |
| AnnouncementsEntry             |
....
| WikiNode                       |
| WikiPage                       |
| WikiPageResource               |
+--------------------------------+
140 rows in set (0.00 sec)


My jetty.xml includes this new service block, and that's all I could find in the documentation about what needed to be done. Is there anything else? Some config file somewhere that tells Liferay to use MySql?


  <Call name="addService">
    <Arg>
      <New class="org.mortbay.jetty.plus.JotmService">
        <Set name="Name">TransactionMgr</Set>
        <Call name="addDataSource">
          <Arg>jdbc/LiferayPool</Arg>
          <Arg>
            <New class="org.enhydra.jdbc.standard.StandardXADataSource">
              <Set name="DriverName">com.mysql.jdbc.Driver</Set>
              <Set name="Url">jdbc:mysql://localhost/lportal?useUnicode=true&amp;characterEncoding=UTF-8</Set>
              <Set name="User">root</Set>
              <Set  name="Password">xxx</Set>
            </New>
          </Arg>
          <Arg>
            <New class="org.enhydra.jdbc.pool.StandardXAPoolDataSource">
              <Arg type="Integer">4</Arg>
              <Set name="MinSize">4</Set>
              <Set name="MaxSize">15</Set>
            </New>
          </Arg>
        </Call>
      </New>
    </Arg>
  </Call>


On startup, there's this block that makes me suspect I'm not using HSQL:


SLF4J: This version of SLF4J requires log4j version 1.2.12 or later. See also http://www.slf4j.org/codes.html#log4j_version

11020 [main] INFO  com.liferay.portal.spring.hibernate.DialectDetector  - Determining dialect for HSQL Database Engine 1
11021 [main] WARN  com.liferay.portal.spring.hibernate.DialectDetector  - Liferay is configured to use Hypersonic as its database. Do NOT use Hypersonic in production. Hypersonic is an embedded database useful for development and demo'ing purposes. The database settings can be changed in portal.properties.
11161 [main] INFO  com.liferay.portal.spring.hibernate.DialectDetector  - Using dialect org.hibernate.dialect.HSQLDialect
Loading jar:file:/opt/liferay/jetty-5.1.1/webapps/root/WEB-INF/lib/portal-impl.jar!/captcha.properties
Thomas Vaughan
RE: Documentation for Liferay Ver 5.2.1
February 17, 2009 10:41 AM
Answer

Thomas Vaughan

Rank: New Member

Posts: 8

Join Date: February 17, 2009

Recent Posts

And another thing. . .there doesn't appear to be *any* mention of "LiferayPool" in the installed/exploded application other than the data source I added to the Jetty config. Shouldn't there at least be a spring context or something that references that string?

#>/opt/liferay$ grep -r -i LiferayPool jetty-5.1.1/
jetty-5.1.1/etc/jetty.xml: <Arg>jdbc/LiferayPool</Arg>
steve rieger
Re: [Liferay Forums][1. Installation / Deployment / Setup] RE: Documentatio
February 17, 2009 10:42 AM
Answer

steve rieger

Rank: Expert

Posts: 436

Join Date: September 11, 2006

Recent Posts

portal-ext.properties

this file goes in
/webapps/ROOT/WEB-INF/classes
Thomas Vaughan
RE: Re: [Liferay Forums][1. Installation / Deployment / Setup] RE: Document
February 17, 2009 11:13 AM
Answer

Thomas Vaughan

Rank: New Member

Posts: 8

Join Date: February 17, 2009

Recent Posts

Ahhh...thanks....

FYI, for anyone else who struggled with this, here's my portal-ext.properties file:

#$ cat ./jetty-5.1.1/webapps/root/WEB-INF/classes/portal-ext.properties
schema.run.enabled=true
schema.run.minimal=true
jdbc.default.driverClassName=com.mysql.jdbc.Driver
jdbc.default.url=jdbc:mysql://localhost/lportal?useUnicode=true&characterEncoding=UTF-8&useFastDateParsing=false
jdbc.default.username=myuser
jdbc.default.password=xxxx


It wasn't clear from the admin instructions that this was a necessary step. Maybe add a step #5 on page #37 of the "liferay-admin-guide-5.1.pdf" that says something about this.
steve rieger
Re: Re: [Liferay Forums][1. Installation / Deployment / Setup] RE:Document
February 17, 2009 11:18 AM
Answer

steve rieger

Rank: Expert

Posts: 436

Join Date: September 11, 2006

Recent Posts

5.1 does not use the ext env for db settings

5.2 does

--
Sent via Blackberry
I can be reached at 310-947-8565
Thomas Vaughan
RE: Re: Re: [Liferay Forums][1. Installation / Deployment / Setup] RE:Docum
February 17, 2009 12:18 PM
Answer

Thomas Vaughan

Rank: New Member

Posts: 8

Join Date: February 17, 2009

Recent Posts

That's great to know.

And for your information, the "Liferay Quickstart" and accompanying "how to install Liferay" videos are pretty inaccurate for the 5.2.1 release.

I'd recommend the Liferay team bundle the release of the code with a review of the documentation because you probably won't win too many new adoptees if following the "quick start" guide results in 6 hours of frustration. Just sayin'.

The demo product looks great, tho...
Marhgil Macuha
RE: Re: Re: [Liferay Forums][1. Installation / Deployment / Setup] RE:Docum
February 17, 2009 11:20 PM
Answer

Marhgil Macuha

Rank: New Member

Posts: 2

Join Date: February 16, 2009

Recent Posts

Thanks for all your input. Finally, after several days of reading the forum and experimenting, I was able to install Liferay 5.2.1, running on Tomcat 6.0 with MySQL database on my Windows XP machine.

If you are wondering what I did, I summarized everything here in my blog post.