8 Replies Latest reply on Oct 27, 2010 11:20 AM by rmoulton

    Can't Install - Unable to find jdbc driver class

      I am attempting to install Clearspace X on our Redhat Enterprise Linux 4ES server. But, I can't get beyond the Database Settings stage of the install because I keep getting the following error:


      Unable to find jdbc driver class: com.mysql.jdbc.Driver


      I have already downloaded the MySQL Connector/J driver and installed that in the folder: /var/lib/tomcat5/common/lib/

      This created a folder called "mysql-connector-java-5.1.6" within /var/lib/tomcat5/common/lib/, and in there is a file called "mysql-connector-java-5.1.6-bin.jar" among many other files. When I re-attempted the Database Settings install, I keep getting the above error.


      I tried moving the "mysql-connector-java-5.1.6-bin.jar" file to the /var/lib/tomcat5/common/lib/ folder, but, it still doesn't work. I tried renaming the file to "mysql.jar", but, won't work. I also tried changing the JDBC Driver Class setting from "com.mysql.jdbc.Driver" to "com.mysql.jdbc.mysql.jar", but, still won't work.


      How do I make Clearspace work with MySQL on our server? I've tried most of the suggestions I found here, but, can't get this working. I'm not a Linux expert, but, I'm hoping the solution isn't too complicated.





        • Re: Can't Install - Unable to find jdbc driver class

          Have you tried just pulling mysql-connector-java-5.1.6-bin.jar out of the created folder and dropping it directly into /var/lib/tomcat5/common/lib/? All you really need is that jar file to get the JDBC driver to work. I downloaded Tomcat 5.5.26 and ran through an installation of Clearspace X 1.10.6 by just dropping the connector/j jar into <tomcat>/common/lib and it recognized it correctly. This was on a Windows machine, but it should be the same for your box.


          Let me know how it goes,


            • Re: Can't Install - Unable to find jdbc driver class

              Hi Vinh,


              Unfortunately, I already tried that, but, it didn't help. I copied the .jar file into the tomcat/common/lib folder, and then returned to the Clearspace Install, but, I keep getting the same error no matter what...


              Unable to find jdbc driver class: com.mysql.jdbc.Driver


              Should com.mysql.jdbc.Driver be changed to com.mysql.jdbc.mysql-connector-java-5.1.6-bin.jar ?? I think I already tried that, but, no difference.


              I just can't seem to get this software installed no matter what I try.




                • Re: Can't Install - Unable to find jdbc driver class

                  No, it is talking about the class, which exists within the jar (along with other classes). If you change it to com.mysql.jdbc.SomethingElse, it will look for that class in the libraries.


                  Have you looked at the documentation here?





                    • Re: Can't Install - Unable to find jdbc driver class

                      I have seen that page you linked to, but, not sure about a few things.


                      It says I can find the server.xml file in CATALINA_HOME/conf, but, I don't have a conf folder in there. I did find a server.xml file in /etc/tomcat5, however.


                      It also says to add a bunch of code there that starts with:


                      <Context ...>



                      Is that exactly how I'm supposed to enter it in the server.xml file, or should I be replacing the ... with something else? I searched for "<Context" in the server.xml file, but, there aren't any.


                      I've also tried copying the mysql connector jar file to a few other directories, such as /tomcat5/shared/lib and /tomcat5/webapps/clearspacex/WEB-INF/lib, but, Clearspace still won't install.


                      • Re: Can't Install - Unable to find jdbc driver class

                        Okay, I FINALLY got past the database problem, but, the Other Settings section is now causing the following error when I click continue:


                        HTTP Status 500 -

                        type Exception report



                        description The server encountered an internal error () that prevented it from fulfilling this request.







































                        Now what?? Looks like I'll never get this software setup and working.



                  • Re: Can't Install - Unable to find jdbc driver class

                    I added CLASSPATH=$LD_LIBRARY_PATH to .bash_profile then copied mysql-connector-java-5.1.13-bin.jar to /usr/local/jive/tomcat/lib


                    That worked for me.