How are you trying to connect, thru a JDBC Connection String or a JDBC DataSource Object? What is the connection string you are using?
Can you connect to Oracle on this computer thru Java or thru SQL Developer, etc?
There is a section in the documentation as well as a tutorial on how to set up a JDBC connection here: