Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
Cannot load JDBC driver class 'com.mysql.jdbc.Driver'
I put the mysql-connector-java-5.1.5-bin.jar into the %TOMCAT_HOME%/common/lib/etc folder
Changed the root.xml file to only use mysql database.
./version.sh outputs
When I startup the portal i get:
along with the cannot load JDBC driver error.
Anyone have any ideas?
Changed the root.xml file to only use mysql database.
./version.sh outputs
Using CATALINA_BASE: /usr/local/liferay
Using CATALINA_HOME: /usr/local/liferay
Using CATALINA_TEMPDIR: /usr/local/liferay/temp
Using JRE_HOME: /usr/java/jdk1.6.0_04/jre
Server version: Apache Tomcat/6.0.14
Server built: Jul 20, 2007
Server number: 6.0.14.0
OS Name: Linux
OS version: 2.6.16.54-0.2.5-default
Architecture: i386
JVM Version: 1.6.0_04-b12
JVM Vendor: Sun Microsystems Inc.
When I startup the portal i get:
java.lang.IllegalStateException at org.apache.calalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1244)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1204)
at org.apache.activemq.broker.BrokerService.stop(BrokerService.java:440)
at org.apache.activemq.broker.BrokerService.containerShutdown(BrokerService.java:1391)
along with the cannot load JDBC driver error.
Anyone have any ideas?
Hi Chris-
Anytime I've configured Liferay to use a mysql database I've always used the mysql.jar file included with Liferay's portal source. Try using that file located in ../lib/development and see if that works for you.
jr
Anytime I've configured Liferay to use a mysql database I've always used the mysql.jar file included with Liferay's portal source. Try using that file located in ../lib/development and see if that works for you.
jr
hmmm, doesn't seem to be located in my liferay folder.
I downloaded the liferay + tomcat 6 bundle.
Does JDK 6 work with the bundle I downloaded?
I downloaded the liferay + tomcat 6 bundle.
Does JDK 6 work with the bundle I downloaded?
Hi Chris-
Sorry that I wasn't more clear, but the Mysql.jar file that I use is in the liferay-portal-src-4.4.1.zip. It's a larger file, but try downloading that from sourceforge, so you have the original portal source. Once you unzip that you should find the MySQL.jar file located in ../build/lib/development. As far as JDK 6 in concerned, it should be compatible without a problem. Hope this helps.
jr
Sorry that I wasn't more clear, but the Mysql.jar file that I use is in the liferay-portal-src-4.4.1.zip. It's a larger file, but try downloading that from sourceforge, so you have the original portal source. Once you unzip that you should find the MySQL.jar file located in ../build/lib/development. As far as JDK 6 in concerned, it should be compatible without a problem. Hope this helps.
jr
What do I do with the mysql.jar once I get it?
Hi Chris-
Try deploying it to the $TOMCAT_HOME/common/lib/ext and see if that solves your problems.
jr
Try deploying it to the $TOMCAT_HOME/common/lib/ext and see if that solves your problems.
jr