Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 155
  • Last Modified:

Setting up a Driver in ColdFusion v.7 to access Progress database

Java Folder Other Driver in CF
I am trying to connect to Progress Database from ColdFusion v7 sot hat I can run a query against the table in the Progressive database. So far I have:
(1)  installed Progress OpenEdge 10.2B Driver on Windows 2003 Server running CF v7.
(2) Added C\Program Files\PROGRESS\java and C:\Program files\progress\bin  to OS path under Environment variables.
(3) Created the following OTHER DATASOURCE:
CF Data Source name: Progress
JDBC URL:         jdbc:datadirect:openedge://192.168.1.6:2550;databasename=ot
Driver Class:          com.ddtek.jdbc.openedge.OpenEdgeDriver
Driver name:    C:\Progress\OpenEdge\java\openedge.jar
User Name:       xxxxx
Password:      xxxxx

When I submit it, I get the following error:
********************************************************
Connection verification failed for data source: Progress
java.sql.SQLException: No suitable driver available for Progress, please check the driver setting in resources file, error: null
The root cause was that: java.sql.SQLException: No suitable driver available for Progress, please check the driver setting in resources file, error: null
********************************************************

I am sure if syntax in Driver Class and Drive Name is correct as I have not done something like this in the past.

Thanks in advance.
0
sglee
Asked:
sglee
  • 4
  • 2
4 Solutions
 
gheistCommented:
Please return system PATH to normal.
Directory with JDBC JAR file should be added to ColdFusion's classpath.
In addition your JDBC driver requires JAVA 6 , which was never a supported configuration for ColdFusion 7 (EOL 2012)
0
 
sgleeAuthor Commented:
@gheist
How do you add classpath to CF?
In addition , are you saying that I should not try doing this because CF version is too old? If that is the case what version of CF should I use? Is OS version ok or should I upgrade that too?
0
 
gheistCommented:
It is called "java ext dirs" in coldfusion settings, or alternatively you can drop jdbc driver jar in any lib/ or lib/ext dir in java/app server/cf application. (2nd is somewhat harder to maintain)
If you use java 6, then you can use progress drivers, with java5 it would be easier to make a new working ColdFusion 11 server (with more modern OS if viable), and transfer only CF content.
At CF7 level you can also use bluedragon or railo servers to interpret cfml (they are not more different from CF7 than CF11)
Current java version is 8 with 7 supported until next april... You can get java 6 openjdk with some enterprise linux distributions too.
0
Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

 
sgleeAuthor Commented:
Have you personally created a DSN in CF to access Progress database successfully in the past?
0
 
gheistCommented:
No, but I connected to many non-default databases in the past.
If documentation says you cannot, there is no reason in even trying.
Do you have Java 6?
0
 
_agx_Commented:
(no points. a few comments from offline conversation ...)

java.sql.SQLException: No suitable driver available for Progress

That means the jars weren't added to the class path correctly, so CF can't find the driver.

or alternatively you can drop jdbc driver jar in any lib/ or lib/ext dir in java/app server/cf application.

... which includes the directory I mentioned earlier: WEB-INF\lib. For example, with a single server install:

         {cf-root}\wwwroot\WEB-INF\lib  <=== {cf-root} is the install root ie "c:\coldfusion9\"

A simple way add the drivers to the CF class is copy the 3 jar files into that directory:

     * openedge.jar
     * util.jar
     * base.jar

Must restart the CF server for the changes to take affect.


In addition , are you saying that I should not try doing this because CF version is too old? If that is the case what version of CF should I use?

If @gheist was able to confirm the drivers *do* require java 1.6, then that answers my earlier question. It definitely won't work with CF7.  You need a version of CF that supports java 1.6+, meaning at least CF9 (which you said you have).

Keep in mind "need" (min requirements) vs "should" (recommended) are two different things. It'll work with CF9/java 1.6, but as gheist said a lot of this stuff either is or will be at EOL. For that reason you may want to look at newer versions.
0
 
gheistCommented:
Refer to datadirect openedge support matrix for supported java versions: 1.6 or better if you dont hace support connection with progress.
Also remember that each and every website user must be licenced to use progress db.
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 4
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now