If you are unable to create a new account, please email support@bspsoftware.com

 

News:

MetaManager - Administrative Tools for IBM Cognos
Pricing starting at $2,100
Download Now    Learn More

Main Menu

Remote report triggering from Unix getting error message

Started by porkins, 25 Jun 2012 10:39:23 AM

Previous topic - Next topic

porkins

We need to remotely fire triggers from a Unix box, but are recieving an error.  We have Cognos installed on a Windows server. 

Steps to reproduce error:

Created folder \Cognos10Trigger\ with files:
trigger.sh
Trigger.class
test.sh

Created folder \Cognos10Trigger\WEB-INF\lib\ with following files from Cognos 10 install (we are currently copying the entire lib over instead to see if that fixes the issue):

activation.jar
axis.jar
axisCrnpClient.jar
commons-discovery-0.2.jar
commons-logging-1.1.jar
commons-logging-adapters-1.1.jar
commons-logging-api-1.1.jar
jaxrpc.jar
mail.jar
mx4j-tools.jar
resolver.jar
saaj.jar
serializer.jar
wsdl4j-1.5.1.jar
xercesImpl.jar
xml-apis.jar

test.sh contains:
#!/bin/sh
./Cognos10Trigger/trigger.sh http://10.98.92.92:9300/p2pd/servlet/dispatch "CognosAdmin" "Our_Password" "ActiveDirectoryName" "trigger_test"

trigger.sh contains:
#!/bin/sh
#
#  Licensed Materials - Property of IBM

#  IBM Cognos Products: DOCS

#  (C) Copyright IBM Corp. 2005, 2010

#  US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with
#  IBM Corp.
#
#  Copyright (C) 2008 Cognos ULC, an IBM Company. All rights reserved.
#  Cognos (R) is a trademark of Cognos ULC, (formerly Cognos Incorporated).

# Relative definitions based on installation location.

if [ "$CRN_HOME" = "" ]; then
                CRN_HOME="/Cognos10Trigger"
fi

if [ "$JAVA_HOME" = "" ]; then
                JAVA_HOME="/usr"
fi

JAR_HOME="${CRN_HOME}/WEB-INF/lib/"


CLASSPATH=".:${JAR_HOME}/mx4j-tools.jar"
for jar in activation axis axisCrnpClient commons-discovery-0.2 commons-logging-1.1 commons-logging-adapters-1.1 \
        commons-logging-api-1.1 jaxrpc mail resolver saaj serializer xercesImpl xml-apis wsdl4j-1.5.1 ; do
  CLASSPATH="${CLASSPATH}:${CRN_HOME}/WEB-INF/lib/${jar}.jar"
done

${JAVA_HOME}/bin/java -classpath ${CLASSPATH} Trigger ${1} ${2} ${3} ${4} ${5}

ERROR MESSAGE:
-bash-3.2$ ./test.sh
Exception in thread "main" java.lang.NoClassDefFoundError: org.apache.axis.encoding.TypeMappingImpl
   at java.lang.Class.initializeClass(libgcj.so.7rh)
   at java.lang.Class.initializeClass(libgcj.so.7rh)
   at org.apache.axis.encoding.TypeMappingRegistryImpl.<init>(TypeMappingRegistryImpl.java:155)
   at org.apache.axis.encoding.TypeMappingRegistryImpl.<init>(TypeMappingRegistryImpl.java:149)
   at org.apache.axis.deployment.wsdd.WSDDDeployment.<init>(WSDDDeployment.java:449)
   at org.apache.axis.deployment.wsdd.WSDDDocument.setDocument(WSDDDocument.java:139)
   at org.apache.axis.deployment.wsdd.WSDDDocument.<init>(WSDDDocument.java:65)
   at org.apache.axis.configuration.FileProvider.configureEngine(FileProvider.java:179)
   at org.apache.axis.AxisEngine.init(AxisEngine.java:178)
   at org.apache.axis.AxisEngine.<init>(AxisEngine.java:162)
   at org.apache.axis.client.AxisClient.<init>(AxisClient.java:52)
   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.EventManagementService_ServiceLocator.<init>(EventManagementService_ServiceLocator.java:12)
   at Trigger.<init>(Trigger.java:58)
   at Trigger.main(Trigger.java:236)
Caused by: java.lang.ClassNotFoundException: java.util.concurrent.locks.ReadWriteLock not found in gnu.gcj.runtime.SystemClassLoader{urls=[file:./,file:/sxmhome/pvedw_admin/Cognos10Trigger/WEB-INF/lib//mx4j-tools.jar,file:/sxmhome/pvedw_admin/Cognos10Trigger/WEB-INF/lib/activation.jar,file:/sxmhome/pvedw_admin/Cognos10Trigger/WEB-INF/lib/axis.jar,file:/sxmhome/pvedw_admin/Cognos10Trigger/WEB-INF/lib/axisCrnpClient.jar,file:/sxmhome/pvedw_admin/Cognos10Trigger/WEB-INF/lib/commons-discovery-0.2.jar,file:/sxmhome/pvedw_admin/Cognos10Trigger/WEB-INF/lib/commons-logging-1.1.jar,file:/sxmhome/pvedw_admin/Cognos10Trigger/WEB-INF/lib/commons-logging-adapters-1.1.jar,file:/sxmhome/pvedw_admin/Cognos10Trigger/WEB-INF/lib/commons-logging-api-1.1.jar,file:/sxmhome/pvedw_admin/Cognos10Trigger/WEB-INF/lib/jaxrpc.jar,file:/sxmhome/pvedw_admin/Cognos10Trigger/WEB-INF/lib/mail.jar,file:/sxmhome/pvedw_admin/Cognos10Trigger/WEB-INF/lib/resolver.jar,file:/sxmhome/pvedw_admin/Cognos10Trigger/WEB-INF/lib/saaj.jar,file:/sxmhome/pvedw_admin/Cognos10Trigger/WEB-INF/lib/serializer.jar,file:/sxmhome/pvedw_admin/Cognos10Trigger/WEB-INF/lib/xercesImpl.jar,file:/sxmhome/pvedw_admin/Cognos10Trigger/WEB-INF/lib/xml-apis.jar,file:/sxmhome/pvedw_admin/Cognos10Trigger/WEB-INF/lib/wsdl4j-1.5.1.jar], parent=gnu.gcj.runtime.ExtensionClassLoader{urls=[], parent=null}}
   at java.net.URLClassLoader.findClass(libgcj.so.7rh)
   at java.lang.ClassLoader.loadClass(libgcj.so.7rh)
   at java.lang.ClassLoader.loadClass(libgcj.so.7rh)
   at java.lang.Class.initializeClass(libgcj.so.7rh)

Thanks,
Dan