First run test using tnsnames.ora (by applying service name) using toad or some tool and after successful connection, used the same string over here. Other option is use eclipse and open database development perspective and try giving the connection string (with service name or db ip address or so) and test. If that works do the same in the jdbc adapter too.