Friday, April 15, 2011

liferay jdbc errors cleanup in the console

Inorder to get rid of jdbc errors in the console of liferay framework add the following inside the root.xml file which is located in the conf directory of liferay's tomcat.

<context >
<Resource
name = "jdbc/LiferayPool"
auth = "Container"
type = "javax.sql.DataSource"
driverClassName = "com.mysql.jdbc.Driver"
url = "jdbc:mysql://localhost/lportal?useUnicode=true&characterEncoding=UTF-8&useFastDateParsing=false"
username = "root"
password = "highways"
maxActive = "20"/ >
</Context >