Forums

RSS RSS
Documentation for Liferay Ver 5.2.1 Flat View
Threads
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!
Flag Flag
RE: Documentation for Liferay Ver 5.2.1
liferay 5.1 documents
2/17/09 3:53 AM as a reply to Marhgil Macuha.
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
Flag Flag
RE: Documentation for Liferay Ver 5.2.1
2/17/09 10:29 AM as a reply to Kanakaraj Cheram.
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:
 1
 2mysql> show tables;
 3+--------------------------------+
 4| Tables_in_lportal              |
 5+--------------------------------+
 6| Account_                       |
 7| Address                        |
 8| AnnouncementsDelivery          |
 9| AnnouncementsEntry             |
10....
11| WikiNode                       |
12| WikiPage                       |
13| WikiPageResource               |
14+--------------------------------+
15140 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?

 1
 2  <Call name="addService">
 3    <Arg>
 4      <New class="org.mortbay.jetty.plus.JotmService">
 5        <Set name="Name">TransactionMgr</Set>
 6        <Call name="addDataSource">
 7          <Arg>jdbc/LiferayPool</Arg>
 8          <Arg>
 9            <New class="org.enhydra.jdbc.standard.StandardXADataSource">
10              <Set name="DriverName">com.mysql.jdbc.Driver</Set>
11              <Set name="Url">jdbc:mysql://localhost/lportal?useUnicode=true&amp;characterEncoding=UTF-8</Set>
12              <Set name="User">root</Set>
13              <Set  name="Password">xxx</Set>
14            </New>
15          </Arg>
16          <Arg>
17            <New class="org.enhydra.jdbc.pool.StandardXAPoolDataSource">
18              <Arg type="Integer">4</Arg>
19              <Set name="MinSize">4</Set>
20              <Set name="MaxSize">15</Set>
21            </New>
22          </Arg>
23        </Call>
24      </New>
25    </Arg>
26  </Call>


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

1
2SLF4J: This version of SLF4J requires log4j version 1.2.12 or later. See also http://www.slf4j.org/codes.html#log4j_version
3
411020 [main] INFO  com.liferay.portal.spring.hibernate.DialectDetector  - Determining dialect for HSQL Database Engine 1
511021 [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.
611161 [main] INFO  com.liferay.portal.spring.hibernate.DialectDetector  - Using dialect org.hibernate.dialect.HSQLDialect
7Loading jar:file:/opt/liferay/jetty-5.1.1/webapps/root/WEB-INF/lib/portal-impl.jar!/captcha.properties
Flag Flag
RE: Documentation for Liferay Ver 5.2.1
2/17/09 10:41 AM as a reply to Thomas Vaughan.
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>
Flag Flag
portal-ext.properties

this file goes in
/webapps/ROOT/WEB-INF/classes
Flag Flag
Ahhh...thanks....

FYI, for anyone else who struggled with this, here's my portal-ext.properties file:
1
2#$ cat ./jetty-5.1.1/webapps/root/WEB-INF/classes/portal-ext.properties
3schema.run.enabled=true
4schema.run.minimal=true
5jdbc.default.driverClassName=com.mysql.jdbc.Driver
6jdbc.default.url=jdbc:mysql://localhost/lportal?useUnicode=true&characterEncoding=UTF-8&useFastDateParsing=false
7jdbc.default.username=myuser
8jdbc.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.
Flag Flag
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
Flag Flag
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...
Flag Flag
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.
Flag Flag