Last active
August 29, 2015 14:00
-
-
Save chicks/11192909 to your computer and use it in GitHub Desktop.
Install Cognos Proxy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Checkout the right git repo | |
git clone [email protected]:sugarcrm/cognos.git | |
git checkout -b master origin/master | |
# Setup Apache proxy for cognos proxy | |
Add this to /etc/httpd/conf.d/cognos.conf | |
<VirtualHost *:80> | |
ServerName cognos.sugarcrmdemo.com | |
ProxyRequests Off | |
ProxyPreserveHost On | |
<Proxy *> | |
Order deny,allow | |
Allow from all | |
</Proxy> | |
ProxyPass /p2pd http://localhost:9300/p2pd | |
ProxyPassReverse /p2pd http://localhost:9300/p2pd | |
</VirtualHost> | |
And this to /etc/httpd/conf.d/ssl.conf | |
ProxyRequests Off | |
ProxyPreserveHost On | |
<Proxy *> | |
Order deny,allow | |
Allow from all | |
</Proxy> | |
ProxyPass /p2pd http://localhost:9300/p2pd | |
ProxyPassReverse /p2pd http://localhost:9300/p2pd | |
# Build the Servlet | |
cd cognos/webservice_helper/ | |
ant -f webservice_helper.xml | |
# Deploy the Servlet | |
scp out/webHelper.jar [email protected]:/opt/ibm/cognos/c10_64/webapps/p2pd/WEB-INF/lib | |
# Register Servlet | |
Add the below to /opt/ibm/cognos/c10_64/webapps/p2pd/WEB-INF/web.xml | |
<servlet> | |
<servlet-name>WebHelperLogin</servlet-name> | |
<servlet-class>webhelper.LoginServlet</servlet-class> | |
</servlet> | |
<servlet> | |
<servlet-name>WebHelperLogout</servlet-name> | |
<servlet-class>webhelper.LogoutServlet</servlet-class> | |
</servlet> | |
<servlet> | |
<servlet-name>WebHelperReportList</servlet-name> | |
<servlet-class>webhelper.ReportListServlet</servlet-class> | |
</servlet> | |
<servlet-mapping> | |
<servlet-name>WebHelperReportList</servlet-name> | |
<url-pattern>/webhelper/reports</url-pattern> | |
</servlet-mapping> | |
<servlet-mapping> | |
<servlet-name>WebHelperLogout</servlet-name> | |
<url-pattern>/webhelper/logout</url-pattern> | |
</servlet-mapping> | |
<servlet-mapping> | |
<servlet-name>WebHelperLogin</servlet-name> | |
<url-pattern>/webhelper/login</url-pattern> | |
</servlet-mapping> | |
# Disable CAF! | |
# Install Cognos SDK | |
# Restart Cognos | |
/opt/ibm/cognos/c10_64/bin64/cogconfig.sh -s -stop | |
/opt/ibm/cognos/c10_64/bin64/cogconfig.sh -s -start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment