Page 1 of 1

sharing an issue I resolved to help others

Posted: Sat Jul 28, 2012 10:06 am
by drorm
Hi

during cyclos installation I tries to update my mysql jdbc driver

on my linux Centos6 installation the java drivers are located on folder : cd /var/lib/tomcat6/webapps/cyclos/WEB-INF/lib

the driver i wanted to replace is "mysql-connector-java-5.1.18.jar"

so i did the following:

cd /var/lib/tomcat6/webapps/cyclos/WEB-INF/lib
rm mysql-connector-java-5.1.18.jar

*** then i downloaded the latest mysql driver i could find:

wget http://cdn.mysql.com/Downloads/Connecto ... 5.1.21.zip
chmod 777 mysql-connector-java-5.1.21.zip

i then erroneously renamed the mysql driver to extension "jar":

mv mysql-connector-java-5.1.21.zip mysql-connector-java-5.1.21.jar

i did this because i thought that zip should simply be changed to jar - and that i was done

then I started start tomcat6 and got the following error on catalina.out:

01:28:27,796 ERROR DataBaseConfiguration - Illegal JDBC driver class on cyclos.properties: com.mysql.jdbc.Driver
01:28:27,814 WARN CustomWebApplicationContext - Exception thrown from ApplicationListener handling ContextClosedEvent
org.springframework.beans.factory.BeanCreationNotAllowedException: Error creating bean with name 'cxf': Singleton bean creation not allowed while the singletons of this factory are in destruction (Do not request a bean from a BeanFactory in a destroy method implementation!)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:209)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:196)
at org.springframework.context.event.AbstractApplicationEventMulticaster.getApplicationListeners(AbstractApplicationEventMulticaster.java:148)
at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:86)
at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:303)


however this is incorrect because actually the jar file i needed is inside mysql-connector-java-5.1.21.zip
so what i actually should have done was to : unzip mysql-connector-java-5.1.21.zip
and then go to the newly extracted folder, and inside it was the "mysql-connector-java-5.1.21-bin.jar" i needed, and move it one folder up

Hope this helps anyone. let me know if you have any questions concerning this