• 1 reply
  • Latest Post - ‏2013-11-12T14:34:48Z by AccelIntel
2 Posts

Pinned topic C10 Exception when attempting to initialize ContentManagerService_ServiceLocator()

‏2013-11-09T19:46:47Z |

Hi All:

We are running into a bizarre issue where our C10.2.1 sdk code is throwing following exception when we deploy it in our multi-server install of Cognos 10. We are using the correct dispatcher URI and able to login via dispatcher URI/login credentials specified in our SDK code successfully.

At the same time a standalone development machine the same code executes successfully (this machine has local C10.2.1 single server install).

To pinpoint the issue we have created just a simple test class that attempts to create a cm service instance and attempts to logon. Code is as attached. Also, we have all the C10.2.1 SDK jar's in our classpath (i have attached our env dump and class path dump as well). Environment is Windows 2008 Server with default Tomcat container being used for BI server.

The exception thrown is when we attempt to initialize the ContentManagerService_ServiceLocator object as seen below:

Launching Cognos 10 SDK Test...!
Creating CM obj to test calls...!
Creating CMServiceLocator Obj!

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/logging/LogFactory
        at org.apache.axis.components.logger.LogFactory$
        at Method)
        at org.apache.axis.components.logger.LogFactory.getLogFactory(
        at org.apache.axis.components.logger.LogFactory.<clinit>(
        at org.apache.axis.handlers.BasicHandler.<clinit>(
        at org.apache.axis.client.Service.getAxisClient(
        at org.apache.axis.client.Service.<init>(
        at com.cognos.developer.schemas.bibus._3.ContentManagerService_ServiceLocator.<init>(
        at testCognos.<init>(
        at testCognos.main(

Caused by: java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory
        at$ Source)
        at$ Source)
        at Method)
        at Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
        at java.lang.ClassLoader.loadClass(Unknown Source)
        ... 10 more

I appreciate anyone who may be able to assist with this in case this has been seen before.



Updated on 2013-11-12T14:32:13Z at 2013-11-12T14:32:13Z by AccelIntel
  • AccelIntel
    2 Posts

    Re: C10 Exception when attempting to initialize ContentManagerService_ServiceLocator()


    Hello All:

    Problem was the client....issue was related to wrong commons logging jars referenced by their consultant. SDK app and custom auth module now works just fine! Although I feel their is still any issue within the cm locator call but dont have time or source for C10 jars to approve or disapprove that hypothesis.