Hi all, I am trying to set up two Karaf servers in a hot standby configuration on separate machines using a shared database for the locking. Currently I have looked at karaf 2.2.11, I am shortly going to try with 2.3.x
I am seeing the following problems: With OracleJDBCLock + oracle JDBC driver I get a java.lang.ClassNotFoundException: org.apache.karaf.main.OracleJDBCLock although the lock class is clearly present in lib/karaf.jar. jar -tvf | grep confirms this, and I have also tried building the main jar myself with the same result. system.properties contains: karaf.lock=true karaf.lock.level=40 karaf.lock.delay=10 karaf.lock.jdbc.user=karaf karaf.lock.jdbc.password=karaf karaf.lock.jdbc.table=KARAF_LOCK karaf.lock.jdbc.clustername=karaf karaf.lock.jdbc.timeout=30 karaf.lock.class=org.apache.karaf.main.OracleJDBCLock karaf.lock.jdbc.url=jdbc:oracle:thin:@linuxdev:1521:orcl karaf.lock.jdbc.driver=oracle.jdbc.driver.OracleDriver If I try DefaultJDBCLock with oracle I get an error that it's unable to locate the oracle driver class although I have ojdbc6.jar (renamed to karaf-ojdbc6.jar) in the lib directory and it's definitely on the classpath (I am echoing this to console). This results in both nodes failing to get the lock and starting up as standbys. Config is as per the above except the karaf.lock.class is changed: karaf.lock.class=org.apache.karaf.main.DefaultJDBCLock karaf.lock.jdbc.url=jdbc:oracle:thin:@linuxdev:1521:orcl karaf.lock.jdbc.driver=oracle.jdbc.driver.OracleDriver With MySQLJDBCLock & the MySQL driver both nodes start up and acquire the lock, so both come fully up. SHOW OPEN TABLES in mysql shows there are no locks held on the KARAF_LOCK table & the deployed user bundle on both servers becomes active. Config is as per the other two with the lock class and JDBC parameters changed as follows: karaf.lock.class=org.apache.karaf.main.MySQLJDBCLock karaf.lock.jdbc.driver=com.mysql.jdbc.Driver karaf.lock.jdbc.url=jdbc:mysql://clusterhost1:3306/karaf Has anyone any clues as to what I might be doing wrong? Do I need to do something in one of the other properties files? -- View this message in context: http://karaf.922171.n3.nabble.com/Karaf-Failover-Configuration-tp4029975.html Sent from the Karaf - User mailing list archive at Nabble.com.
