The forum will experience an outage sometime between February 10 at 7:00pm EST and February 12 at 11:59 EST for installation of security updates. The actual time and duration of the outage are unknown but attempts will be made to minimize the downtime. We apologize for any inconvenience.

When trying to connect with a PowerBuilder12.5 Classic web application deployed on a different server I get Java Exception : Fatal Error. Unable to initialize DatabaseMetaData class

The connection works fine on the machine with PowerBuilder Installed but not on a second server where it is deployed with the generated msi.

The connection string used is as follow: "Driver='sybase.jdbc4.sqlanywhere.IDriver',URL='jdbc:sqlanywhere:Host=MyHost:2638; ServerName=MyServername',DelimitIdentifier='Yes',TrimSpaces='Yes'"

I am able to establish a connection to the database using java and the same connection string ?

Any help in resolving this would be greatly appreciated !

asked 24 Aug '12, 10:34

Cbgi's gravatar image

Cbgi
1112
accept rate: 0%

Is the driver specified in the classpath? For the IDE, the driver can either be picked up from the classpath (if defined at the prior to PB starting) or via a configuration within the IDE. For deployment, the only option is classpath as far as I know.

(27 Aug '12, 09:37) Chris Keating
Replies hidden
Comment Text Removed

The CLASSPATH on the deployment machine is as follow:

%SQLANY12%javasajdbc4.jar;C:SybasejConnect-7_0classesjconn4.jar;C:Program Files (x86)SybaseSharedPowerBuilderpbjdbc12125.jar;C:SybasejConnect-7_0classes

am I missing something?

(27 Aug '12, 11:05) Cbgi
Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×64
×34

question asked: 24 Aug '12, 10:34

question was seen: 1,771 times

last updated: 27 Aug '12, 11:05