Topic
  • 1 reply
  • Latest Post - ‏2013-11-12T14:34:48Z by AccelIntel
AccelIntel
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$1.run(LogFactory.java:45)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.apache.axis.components.logger.LogFactory.getLogFactory(LogFactory.java:41)
        at org.apache.axis.components.logger.LogFactory.<clinit>(LogFactory.java:33)
        at org.apache.axis.handlers.BasicHandler.<clinit>(BasicHandler.java:43)
        at org.apache.axis.client.Service.getAxisClient(Service.java:104)
        at org.apache.axis.client.Service.<init>(Service.java:113)
        at com.cognos.developer.schemas.bibus._3.ContentManagerService_ServiceLocator.<init>(ContentManagerService_ServiceLocator.java:12)
        at testCognos.<init>(testCognos.java:46)
        at testCognos.main(testCognos.java:131)

Caused by: java.lang.ClassNotFoundException: org.apache.commons.logging.LogFactory
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.net.URLClassLoader$1.run(Unknown Source)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(Unknown 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.

Thanks.

Attachments

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

    Re: C10 Exception when attempting to initialize ContentManagerService_ServiceLocator()

    ‏2013-11-12T14:34:48Z  

    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.

    Thanks.