0

I am trying to get a JDBC connection happening in my Glassfish 4, but it is complaining that the URL is incorrect when I ping it.

So far I have copied my ojdbc6.jar and ojdbc7.jar files into the Glassfish 4 > domain1 > lib directory.

My General settings look like this :

screenshot 1

And my additional attributes look like this :

enter image description here

In my Oracle Devloper my settings look like this :

enter image description here

Any idea what I am doing wrong? Am I missing a slash or something?

1
  • 1
    ehh sorry the images are a bit hard to read. You have to right click and open image in another tab to read it Nov 27, 2013 at 15:37

2 Answers 2

1

It looks like you have to setup the server-url in the additional settings of the JDBC connection pool. In case of Oracle datasources the database server hostname is not sufficient.

  1. Remove all properties except username and password.
  2. Add the property url to your JDBC connection pool.
  3. The url has to be in the following format: jdbc:oracle:thin:@<host>:<port>:<sid>

<sid> is the service-id/service-name

0
0

enter image description here

Fixed it. This works.

I think it ignores everything except PASWORD and URL . So this setup seems to work

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.