This section of the document provides you the instructions for installing and configuring Kony MobileFabric Integration Service on a pre-installed Tomcat.
To install Kony MobileFabric Integration Service on a pre-installed Tomcat, follow these steps:
Developer Portal Link: http://developer.kony.com/twiki/pub/Portal/Releases/GA-<version>/Middleware/Kony%20Server/
Note: Replace the <version> with the version number to download the artifacts.
Note: Assuming D:\Servers\apache-tomcat-8.0.21 is Tomcat location i.e. TOMCAT_LOCATION.
Extract the libraries MIDDLEWARE-GA-<version>.tar to Tomcat lib, i.e. TOMCAT_LOCATION\lib.
Also, place database related jars in Tomcat lib.
Path: D:\Servers\install\middleware\middleware-bootconfig
Set JAVA_OPTS=-server -Xms1024M -Xmx1024M -XX:PermSize=512M -XX:+UseConcMarkSweepGC
-XX:+CMSIncrementalMode -XX:+HeapDumpOnOutOfMemoryError
-XX:HeapDumpPath=D:/Servers/logs/heapdumps/tomcat -Djava.awt.headless=true
-Djava.net.preferIPv4Stack=true
-Dnet.spy.log.LoggerImpl=net.spy.memcached.compat.log.Log4JLogger
# KonyOne Server installation directory installdir=D:/Servers/ # Tomcat Bind IP Address TOMCAT.BIND.IP=<system IP>/<localhost> #TOMCAT.BIND.IP=<system IP>/<localhost> # Use by the KonyOne Middleware to locate its configuration files middleware.home=D:/Servers/install # Node ID of this tomcat server instance instance_id=1 # HTTP port used by this instance http_port=9090 https_port=443 tomcat_shutdown_port=9105 ajp_port=8010 # HTTPS TCP port number (0 when HTTPS is not being used) jks_path=D:/Program Files/Java/jdk1.7.0_51/jre/lib/security/cacerts jks_password=changeit keystore_file= keystore_pass= keystore_type= # This selects the routing for all Kony transaction log messages jms_selector=INFO,file jms.enabled=true
Change the <context> to <Context cookies="true" useHttpOnly="true" path="/">
Add <Manager pathname=""/>
Remove <WatchedResource>${catalina.base}/conf/web.xml</WatchedResource>
<Server port="${tomcat_shutdown_port}" shutdown="SHUTDOWN"> <Connector address="${TOMCAT.BIND.IP}" port="${http_port}" protocol="HTTP/1.1" maxHttpHeaderSize="8192" maxThreads="150" enableLookups="false" acceptCount="25" disableUploadTimeout="true" server="Kony" tcpNoDelay="true" compression="on" compressableMimeType="text/css,text/javascript,text/html" connectionTimeout="20000" /> <Connector port="${ajp_port}" protocol="AJP/1.3" redirectPort="8443" />
<user name="manager" password="m@n@g3r123" roles="admin-gui,manager-gui,manager-script, manager-jmx,manager-status"> <role rolename="admin-gui"/> <role rolename="manager-gui"/> <role rolename="manager-script"/> <role rolename="manager-jmx"/> <role rolename="manager-status"/> <role rolename="manager"/>
Change the property richclient.deploy=apps to richclient.deploy=lib/apps
If Kony Reports is enabled and Metrics Topic is configured (If you require metrics logging), then select metrics.logging property to true else false.
For only middleware installation, follow these steps
Find serverconsole.properties file in the middleware-bootconfig\admin folder (for ex: D:\Server\install\middleware\middleware-bootconfig\admin) and comment out the admindb.jndi.name in the serverconsole.properties file.
<protocol>:<host>:<port>/middleware/MWServlet
HTTP GET not supported is the response from the server.
For Middleware with Admin installation, follow these steps:
We need to add one more resource entry in context.xml of tomcat conf.
<Resource name="jdbc/konyreportsdb" auth="Container" type="javax.sql.DataSource" factory="org.apache.tomcat.jdbc.pool.DataSourceFactory" driverClassName="com.mysql.jdbc.Driver" username="KONYADMINDB" password="root" url="jdbc:mysql://localhost:3306/KONYREPORTSDB" testWhileIdle="true" testOnBorrow="true" testOnReturn="false" validationQuery="SELECT 1" validationInterval="30000" timeBetweenEvictionRunsMillis="30000" initialSize="10" maxActive="30" minIdle="10" maxWait="10000" maxIdle="30" removeAbandonedTimeout="300" removeAbandoned="true" logAbandoned="true" minEvictableIdleTimeMillis="30000" jmxEnabled="true"/>
Disable metrics by changing metrics.logging=false.
<Resource name="jdbc/KDCDB" auth="Container" type="javax.sql.DataSource" maxActive="10" maxIdle="5" maxWait="10000" scope="Shareable" driverClassName="org.apache.derby.jdbc.EmbeddedDriver" defaultReadOnly="true" url="jdbc:derby:${middleware.home}/derby/${instance_id}" />
<Resource name="jdbc/konyadmindb" auth="Container" type="javax.sql.DataSource" maxActive="2" maxIdle="2" maxWait="10000" scope="Shareable" factory="org.apache.tomcat.jdbc.pool.DataSourceFactory" username="root" password="root" driverClassName="com.mysql.jdbc.Driver" defaultReadOnly="true" url="jdbc:mysql://localhost:3306/KONYADMINDB?autoReconnect=true" testWhileIdle="true" testOnBorrow="true" testOnReturn="false" validationQuery="SELECT 1" validationInterval="30000" timeBetweenEvictionRunsMillis="30000" initialSize="1" minIdle="1" removeAbandonedTimeout="300" removeAbandoned="true" logAbandoned="true" minEvictableIdleTimeMillis="30000" jmxEnabled="true"/>
HTTP GET not supported is the response from the server
Admin portal access
ActiveMQ is the an open source message broker written in Java together with a full Java Messaging Service (JMS). ActiveMQ Java file is used to handle messages from ActiveMQ.
To configure ActiveMQ in Tomcat follow these steps:
#For #ActiveMQ metrics broker URL, db location, brokerName and clientID are required. metrics.clientID=KonyMetrics metric.dblocation=D:/Tmp/metricsdata metrics.brokerName=myAQBroker #Metrics Topic Configuration metrics.TopicName=jms/KonyMetricsTopic metrics.TopicConnectionFactoryName=ConnectionFactory metrics.providerURL=tcp://localhost:61616(IP and port depends on the server)
Copy activemq-all-5.11.1.jar to tomcat/lib/middleware/ folder (certified version jar is available with metrics or you can download the same from http://activemq.apache.org/activemq-5111-release.html).
Create Connection factory and Topic for metrics (log daemon replacement):
Go to <Jboss installation dir>/standalone/configuration location and create (or setup) JMS configuration including connection factory and topic edit standalone-full.xml as shown:
<connection-factory name="KonyConnectionFactory"> <connectors> <connector-ref connector-name="netty"/> </connectors> <entries> <entry name="java:jboss/exported/jms/KonyConnectionFactory"/> </entries> <compress-large-messages>false</compress-large-messages> <failover-on-initial-connection>false</failover-on-initial-connection> <use-global-pools>true</use-global-pools> </connection-factory>
Add the following entry above </hornetq-server>
<jms-destinations> <jms-topic name="KonyMetricsTopic"> <entry name="java:jboss/exported/jms/KonyMetricsTopic"/> </jms-topic> </jms-destinations>
Create user for metrics database
cd <Jboss installation dir>/bin add-user.bat (Ex: D:\Servers\jboss-eap-6.2\bin\add-user.bat)
Management User (mgmt-users.properties)
Note: Select Application User to add to the metrics database.
Select Yes, to add the user for realm 'ApplicationRealm'.
Added user Admin to file - /DIB/JBOSS/jboss-eap-6.2/standalone/configuration/application-users.properties
To represent the user, add the following to the server-identities definition <secret value="YWRtaW5AMTIz" />.
Edit Middleware.properties file with the information about the connection factory topic.
metrics.securityPrincipalName = (ex: appuser) metrics.securityCredentials = (ex: appuser@123) metrics.userName = (ex: appuser) metrics.password= (ex: appuser@123)
After validating middleware.properties, start the jboss instance as below
JBoss-Home>bin>standalone.sh –c standalone-full.xml
Note: Access admin console and ensure the health check status under settings is PASSED for all
After successfully passing the health status (under Settings) in admin console, deploy (copy) metric.war file to standalone instance in the below location:
JBoss-Home>standalone>deployments> Ex: D:\Servers\jboss-eap-6.2\standalone\deployments
Note: To view both legacy and other reports we can access it with admin module.
Copyright © 2013 Kony, Inc. All rights reserved. |