Foren

Context initialization failed

Martin Knotek, geändert vor 12 Jahren.

Context initialization failed

New Member Beiträge: 2 Beitrittsdatum: 06.10.11 Neueste Beiträge
Hi,
I’m trying use MySQL as DB for Liferay. I had working version Liferay 6 with Tomcat and default Hypersonic (liferay-portal-tomcat-6.0.6-20110225.zip)
Then I have tried use MySQL, I made following steps
- Installed MySQL, created DB, created User, setup rights, ran mysql script
- Changed ROOT.XML
- Downloaded portal.properties, changed DB configuration
Now im getting lots of issues, I have tried google but without success. Had someone same issue?
Log is attached.
Regards
Martin Knotek, geändert vor 12 Jahren.

RE: Context initialization failed (Antwort)

New Member Beiträge: 2 Beitrittsdatum: 06.10.11 Neueste Beiträge
Problem solved, i found other setup manual, which describes configuration with portal-ext.properties.
So you must not download portal.properties, you must create portal-ext.properties only with db configuration :
#
# MySQL
#
jdbc.default.driverClassName=com.mysql.jdbc.Driver
jdbc.default.url=jdbc:mysql://localhost/lportal?useUnicode=true&characterEncoding=UTF-8&useFastDateParsing=false
jdbc.default.username=lportal
jdbc.default.password=lportal