• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Paul Clapham
  • Rob Spoor
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
  • Carey Brown
Bartenders:

Eclipse Class Path

 
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am getting the following when I attempt to run a batch application
in Eclipse. The application is going against IBM Content Manager On Demand DB2.

Message Below:

trace is off
Exception name: DKUsageError
com.ibm.mm.sdk.common.DKUsageError: DGL2002A: Initialization failed. Cannot find or read file:: C:\Program Files\IBM\db2cmv8\cmgmt\connectors\cmbdsod.ini
at com.ibm.mm.sdk.server.DKDatastoreOD.initialize(DKDatastoreOD.java:124)
at com.ibm.mm.sdk.server.DKDatastoreOD.<init>(DKDatastoreOD.java:254)
at TConnectOD.main(TConnectOD.java:94)
Exception message: DGL2002A: Initialization failed. Cannot find or read file:: C:\Program Files\IBM\db2cmv8\cmgmt\connectors\cmbdsod.ini

Thank You Very Much,
Michael Payne
Java Developer
Lafayette Life Insurance
 
Ranch Hand
Posts: 1170
Hibernate Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Is the file there or is the file missing as the exception claims? What seems to be the problem? Was the exception not helpful for you to understand what is wrong with your environment?
 
Michael James Payne
Greenhorn
Posts: 9
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The file is there just fine but the application always gives me this message.

I have talked to IBM about the problem and they state it is a classpath problem so that is why I asked about classpath.

In my Java build path, I set up a variable with the correct path according to IBM but I still get the same message. This new variable points to the following path: C:\Program Files\IBM\db2cmv8\ which matches what they said I should do.

Below is what IBM sent me:

You need to have %IBMCMROOT%\cmgmt in your java classpath.
By default %IBMCMROOT% is set to C:\Progra~1\IBM\db2cmv8\
The way the ini files are found by the java api's is in the followig method
1. Look for %IBMCMROOT%\cmgmt\ directory.
2. find the cmbcmenv.properties file in the %IBMCMROOT%\cmgmt\
3. look for the value CMCFGDIR= in this properties file. By default it has the value
CMCFGDIR=C:\\Program Files\\IBM\\db2cmv8\\cmgmt\\connectors
4. go the CMCFGDIR to find the necessary ini files & configuration files.

Make sure that
1 %IBMCMROOT%\cmgmt directory is in the classpath.
2. the cmbcmenv.properites file exists & contains the CMCFGDIR value
3. the .ini files (including the cmbdsod.ini) are in the CMCFGDIR directory

Thanks for all your help.

Michael Payne
 
reply
    Bookmark Topic Watch Topic
  • New Topic