Forums

Home » Liferay Portal » English » Liferay Legacy

Combination View Flat View Tree View
Threads [ Previous | Next ]
toggle
Anonymous
Cannot load JDBC driver class 'com.liferay.jdbc.LiferayDriver
January 5, 2007 3:40 PM
Answer

Anonymous

Hi,

I'm following (http://content.liferay.com/4.0.0/docs/developers/ch02s02.html#d0e3341) to integrate Liferay with Tomcat 5.5 and oracle 10g.

In Oracle, I created an lportal database. Then, I copied odbc.jar and classes12.jar into .../common/lib/ext/. I also modified .../conf/Catalina/localhost/ROOT.xml so that it has the following configuration:

<Resource
name="jdbc/LiferayPool"
auth="Container"
type="javax.sql.DataSource"
driverClassName="com.liferay.jdbc.LiferayDriver"
url="jdbc:oracle:thin:@localhost:1521:lportal"
username="..."
password="..."
maxActive="100"
maxIdle="30"
maxWait="10000"
/>

After setting, up I started tomcat and got this exception:

Starting Liferay Portal Professional 4.1.2 (Cowper / Build 3102 / August 31, 2006)
23:31:43,932 WARN [SettingsFactory:104] Could not obtain connection metadata
org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot load JDBC driver class 'com.liferay.jdbc.Life
rayDriver'
at org.apache.tomcat.dbcp.dbcp.BasicDataSource.createDataSource(BasicDataSource.java:766)
at org.apache.tomcat.dbcp.dbcp.BasicDataSource.getConnection(BasicDataSource.java:540)

What am I doing incorrectly?

Regards
Elisabeth VanSchaardenburg
RE: Cannot load JDBC driver class 'com.liferay.jdbc.LiferayDriver
January 5, 2007 4:29 PM
Answer

Elisabeth VanSchaardenburg

Rank: Regular Member

Posts: 184

Join Date: May 23, 2006

Recent Posts

I haven't looked at the docs, but there's not a com.liferay.jdbc.LiferayDriver class in Liferay. If you're using Oracle, I believe the JDBC driver class name is oracle.jdbc.driver.OracleDriver
Marc Cruz
RE: Cannot load JDBC driver class 'com.liferay.jdbc.LiferayDriver
January 5, 2007 5:56 PM
Answer

Marc Cruz

Rank: New Member

Posts: 16

Join Date: December 20, 2006

Recent Posts

Thanks that worked.

For it to work with oracle just change your configuration file to:

name="jdbc/LiferayPool"
auth="Container"
type="javax.sql.DataSource"
driverClassName="oracle.jdbc.driver.OracleDriver"
url="jdbc:oracle:thin:@localhost:1521:lportal"
username="..."
password="..."
maxActive="100"
maxIdle="30"
maxWait="10000"
Ashish Renapurkar
RE: Cannot load JDBC driver class 'com.liferay.jdbc.LiferayDriver
January 1, 2013 11:16 PM
Answer

Ashish Renapurkar

Rank: New Member

Posts: 23

Join Date: January 18, 2012

Recent Posts

Hello,

Thanks for update but In my case I have already using this but still it is coming. Any Idea about is.

Thanks in advance.

Elisabeth VanSchaardenburg:
I haven't looked at the docs, but there's not a com.liferay.jdbc.LiferayDriver class in Liferay. If you're using Oracle, I believe the JDBC driver class name is oracle.jdbc.driver.OracleDriver
Ashish Renapurkar
RE: Cannot load JDBC driver class 'com.liferay.jdbc.LiferayDriver
January 1, 2013 11:34 PM
Answer

Ashish Renapurkar

Rank: New Member

Posts: 23

Join Date: January 18, 2012

Recent Posts

Hello Marc,
In my case it is not workout-able.