Topic
  • 2 replies
  • Latest Post - ‏2015-04-07T10:41:27Z by Elegant_Player
secret007
secret007
1 Post

Pinned topic DGL7332A

‏2013-02-14T23:19:56Z |
Hi, I am connecting DB2 CM version 8.4 and getting below error.

"Connecting to server
Exception com.ibm.mm.beans.CMBException: DGL7332A: Library server representation
type was not found. Please make sure that a valid library server and representa
tion type has been specified in the cmbicmsrvs.ini file or to the Content Manage
r connector. : dscls
Exception occurred occurred.Program exiting for current item type...
com.ibm.mm.beans.CMBException: DGL7332A: Library server representation type was
not found. Please make sure that a valid library server and representation type
has been specified in the cmbicmsrvs.ini file or to the Content Manager connecto
r. : dscls
com.ibm.mm.sdk.common.DKUsageError: DGL7332A: Library server representation type
was not found. Please make sure that a valid library server and representation
type has been specified in the cmbicmsrvs.ini file or to the Content Manager con
nector. : dscls
at com.ibm.mm.sdk.server.DKDatastoreICM.connect(DKDatastoreICM.java:1659
)
at com.ibm.mm.beans.CMBConnection.connect(CMBConnection.java:1722)
at cm.rbc.cm.CMConnection.connect(CMConnection.java:56)
at cm.rbc.cm.UtilityCMSearch.getCMdetails(UtilityCMSearch.java:165)
at com.rbc.application.main.PlungeMigration.main(PlungeMigration.java:35
8)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoa
der.java:58)"

This is being executed from jar. No websphere.
I had tried various options and had set the IBMCMROOT to F:\apps\db2cmv8\cmgmt.
It is not able to refer to ibmcmconfig.properties location.
By default com.ibm.mm.beans.CMConnection refers to which location? F:\apps\db2cmv8\cmgmt?
Where can it be configured?

Please help....I am in great trouble
  • FQEG_Manjusha_Jayarapu
    1 Post

    Re: DGL7332A

    ‏2014-05-22T01:56:51Z  

    I am getting the same error deploying the application in local websphere application server. Help is greatly appreciated.

    Updated on 2014-05-22T01:57:15Z at 2014-05-22T01:57:15Z by FQEG_Manjusha_Jayarapu
  • Elegant_Player
    Elegant_Player
    1 Post

    Re: DGL7332A

    ‏2015-04-07T10:41:27Z  

    Hi guys in Content Manager version 8.5 i has the same issue.

    I solved this doing this:

    You need add to your classpath the following files (/src directory in your project :

    cmbcmenv.properties , ibmcmconfig.properties , cmbicmenv.ini , cmbicmsrvs.ini and cmblogconfig.properties

     

    This is my code:

     public static CMBConnection getCMBConnection() throws Exception

        {
    // Create connection bean
            CMBConnection connection = new CMBConnection();
            // Set properties on connection bean
            // Set the DataStore type to indicate Content Manager
            connection.setDsType("ICM");
            // Set the Library Server name
            connection.setServerName("ConnnectL");
            // Set the user id and password for authentication
            connection.setUserid("icmadmin");
            connection.setPassword("Passw0rd");
            // Get the connection 
            connection.connect();
            System.out.println("Connected to CM server");
            return connection;
        }