SDK - DSServlet.java for Audit Logging doesn't compile for IBM Cognos 8.2.x without SDK installed

Technote (troubleshooting)


Problem(Abstract)

Errors occur while following instructions to compile DSServlet.java as part of the requirement to get the Report Usage report running.

Symptom

Error Message :

DSServlet.java:12: package com.cognos.developer.schemas.bibus._3 does not exist
import com.cognos.developer.schemas.bibus._3.*;
DSServlet.java:50: cannot find symbol
symbol : class CognosReportNetServiceLocator
location: class com.cognos.demo.DSServlet CognosReportNetServiceLocator service = new CognosReportNetServiceLocator(); ...etc.

Cause

If you compare the Build.bat in the Audit folder under /webapps in Cognos 8.1 MR2 and Cognos 8.2, you'll find that the JAR_HOME variable is different.

Cognos 8.1 MR2 points to ../c8/webapps/WEB-INF/lib , while Cognos 8.2 points to ../c8/sdk/java/lib.
This is incorrect, the audit servlet application should point to ../c8/webapps/WEB-INF/lib directory for its libraries.
Furthermore references to axisReportNetClient.jar and axisCognosClient.jar, which are part of the SDK installation, exists in Cognos 8.2.
axisReportNetClient.jar should not be used is C8.x or C10.x, it is a ReportNet centric library, to be used only for code migration between CRN and C8.
In Cognos 8.1 MR2 it is axisCrnpClient.jar, and this is a library only within Tomcat the application server, but can be used to compile the DSServlet application
This particular library can not be used for the SDK.
This is referenced in an IBM internal document IR #571495.


Environment

Problem discovered only in the C8.2.x environment.

Resolving the problem

Solution is to modify the Build.bat file so that has the right references in it.


set JAR_HOME=%CRN_HOME%/webapps/p2pd/WEB-INF/lib
set CLASSPATH=%JAVA_HOME%/lib/tools.jar
set CLASSPATH=%CLASSPATH%;%JAR_HOME%/axis.jar
set CLASSPATH=%CLASSPATH%;%JAR_HOME%/axisCrnpClient.jar
set CLASSPATH=%CLASSPATH%;%JAR_HOME%/commons-discovery.jar
set CLASSPATH=%CLASSPATH%;%JAR_HOME%/commons-logging.jar
set CLASSPATH=%CLASSPATH%;%JAR_HOME%/jaxrpc.jar
set CLASSPATH=%CLASSPATH%;%JAR_HOME%/saaj.jar
set CLASSPATH=%CLASSPATH%;%JAR_HOME%/xercesImpl.jar
set CLASSPATH=%CLASSPATH%;%JAR_HOME%/xml-apis.jar
set CLASSPATH=%CLASSPATH%;%JAR_HOME%/wsdl4j.jar
set CLASSPATH=%CLASSPATH%;%JAR_HOME%/dom4j.jar
set CLASSPATH=%CLASSPATH%;%JAR_HOME%/xalan.jar
set CLASSPATH=%CLASSPATH%;%CRN_HOME%/tomcat4.1.27/common/lib/servlet.jar
set CLASSPATH=%CLASSPATH%;%CRN_HOME%/tomcat4.1.27/server/lib/log4j-1.2.8.jar

Steps:
1. Open ../c8/webapps/Audit/Build.bat(.sh)
2. Change JAR_HOME from ../c8/sdk/java/lib to ../c8/webapps/p2pd/WEB_INF/lib/
3. Remove set CLASSPATH=%CLASSPATH%;%JAR_HOME%/axisReportNetClient.jar
4. Remove set CLASSPATH=%CLASSPATH%;%JAR_HOME%/axisCognosClient.jar
5. Add set CLASSPATH=%CLASSPATH%;%JAR_HOME%/axisCrnpClient.jar


Cross reference information
Segment Product Component Platform Version Edition
Business Analytics Cognos 8 Business Intelligence Install and Config
Business Analytics Cognos 8 Business Intelligence Report Studio
Business Analytics Cognos 8 Business Intelligence Software Development Kit

Historical Number

1035610

Rate this page:

(0 users)Average rating

Document information


More support for:

Cognos 8 Business Intelligence
Software Development Kit

Software version:

8.3, 8.4, 8.4.1

Operating system(s):

AIX, HP-UX, Linux, Solaris, Windows

Reference #:

1364604

Modified date:

2013-08-17

Translate my page

Machine Translation

Content navigation