Spacewalk install and the ojdbc14.jar dangling link
rene — Fri, 05/15/2009 - 16:50
After wrestling with Redhats Spacewalk Install Guide i was getting the following installation error.
* Deploying configuration files.
* Update configuration in database.
* Setting up Cobbler..
* Restarting services.
Tomcat failed to start properly or the installer ran out of tries. Please check /var/log/tomcat5/catalina.out for errors.
Installation complete.
/var/log/tomcat5/catalina.out had the following error
2009-05-15 16:15:12,206 [TP-Processor3] FATAL org.hibernate.connection.C3P0ConnectionProvider - JDBC Driver class not found: oracle.jdbc.driver.OracleDriver
Further investigation and several hair pulling moments i found that /var/lib/tomcat5/webapps/rhn/WEB-INF/lib/ojdbc14.jar was a dangling link. It links to /usr/share/java/ojdbc14.jar which then links to /usr/lib/oracle/10.2.0.4/client/lib/ojdbc14.jar which didnt exist for my install.
After fixing the dangly bit, linking it to an existing ojdbc14.jar file Spacewalk installs!
$ sudo rm /usr/share/java/ojdbc14.jar
$ sudo ln -sf /usr/lib/oracle/xe/app/oracle/product/10.2.0/server/jdbc/lib/ojdbc14.jar /usr/share/java/ojdbc14.jar































