put db2.jar file into lib/ext directory.
Thanks for your reply Sundaram.
I managed to get it working in the end without moving the DB2 jar files. It was just me being stupid and forgeting that the classpath had long file names as soon as I changed them to 8.3 it worked fine.
Thanks for your help though,