I have switched to the JDBC and now get this error: If i use the client tool to test a JDBC connection it works, so there is nothing wrong with the comms. I even get it if i give wrong server names, so it is purely to do with the classes I think. I am using DB2 version1.9.4
C:\objava>"C:\Program Files\Java\jdk1.6.0_07\bin\java" -classpath "c:\objava\sql
j.zip";"c:\objava\db2jcc_license_cu.jar";"c:\objava\db2java.zip";"c:\objava\db2j
cc.jar";"C:\objava\obrun.jar";.\;""C:\spar\Log_LOcal\Gen\Bld""; ObRun.ObComms.Ob
Service Path="C:\objava" 2000 No
[PLEX0072] AllFusion Plex Dispatcher started.
java.sql.SQLException: No suitable driver found for jdbc.db2://COD737.spar.net
:50000/STPO
at java.sql.DriverManager.getConnection(DriverManager.java:602)
at java.sql.DriverManager.getConnection(DriverManager.java:185)
at ObRun.ObDatabase.ObDatabaseConnection.<init>(Unknown Source)
at ObRun.ObDatabase.ObDatabaseMgr.connect(Unknown Source)
at ObRun.ObDatabase.ObDatabaseMgr.getDBConnection(Unknown Source)
at ObRun.ObDatabase.ObDatabaseMgr.getView(Unknown Source)
at ObRun.ObDatabase.ObDatabaseMgr.positionx(Unknown Source)
at log.AAjF_ObFnc.ObSbr_AAjF4(Unknown Source)
at log.AAjF_ObFnc.ObRun(Unknown Source)
at ObRun.ObFunction.ObLocalJavaCall.call(Unknown Source)
at ObRun.ObFunction.ObCallMgr.obCallFunction(Unknown Source)
at ObRun.ObComms.ObClientConnect.callFunction(Unknown Source)
at ObRun.ObComms.ObClientConnect.run(Unknown Source)
Message Edited by Gavin on 08-05-2009 12:06 PM [left]