Datasource to Oracle will not connect
Hi all,
We have some old servers running CF-9.
They connect to an Oracle server. No problems. The datasource is set up in CfAdmin, everyting funcions fine.
Now I would like to set up a developer-site on my workstation - a Windows10, and I have Java10 installed.
I install Coldfusion-2018, developer edition. Everything seems to be ok. The service starts, and I can run a little script in my browser that dumps out the server-configuration.
Then I try to set up a datasource (DS) to an Oracle database on a server.
The server is across a VPN-tunnel, but everything should be set up properly. I have Sql Developer installed, and everything functions fine from that utility.
But I do not get a connection when setting up the DS in CfAdmin.
Having done the DS-parameters and pressing Submit, It says in the bottom left corner: "Waiting for 127.0.0.1", and after some 30 seconds this msg is returned:
- Connection verification failed for data source: MYDATASOURCE
java.sql.SQLException: Timed out trying to establish connection
The root cause was that: java.sql.SQLException: Timed out trying to establish connection
The parameters I put in are, I choose 'Other' for DS-type, and in the next screen:
- DS name: MYDATASOURCE
- JDBC url: jdbc:oracle:thin:@//<fully-qualified-server-name>:1521/MYSID
- Driver Class: oracle.jdbc.driver.OracleDriver (and I have copied in the ojdbc8.jar file to the <cf-root>/cfusion/lib folder)
- User name and password are correctly typed
- No Advanced settings
When I connect in Sql Developer, I always get a line in VPN tunnel administrator 'Proxifier', saying that I have a VPN-connection.
No such thing occurc when trying CfAdmin.
Also if I name the driver class wrongly or take away the ojdbc-file, I instantly get a different error (saying "no driver-class found") when I connect.
It seems to me that the Cf-system do not send out a connect-request to the server. May be it sends it to localhost? (ie. 127.0.0.1)?
Anyone who can shed some light on this?
Also, I tried the Coldfusion-2016, and also tried both versions with 'Developer edition' and '30 day trial'.
I also tried the CF-9, but that would not work at all. May be to old for Win-10? But making 2016 or 2018 work, would be just fine!
I also tried setting up the DS as an Oracle-choice (as opposed to 'Other')
Regards, Erik
