Bundled Tomcat upgrade for BMC Remedy Smart Reporting
Tomcat 8.5.6 is bundled with BMC Remedy Smart Reporting. If you are upgrading to BMC Remedy Smart Reporting from an earlier version, the bundled Tomcat is not upgraded automatically to 8.5.6. Though upgrading the bundled Tomcat is optional, you might want to upgrade your Tomcat to 8.5.6 as it includes enhancements and fixes.
After upgrading to BMC Remedy Smart Reporting, perform the following steps to upgrade the bundled Tomcat:
Note
To perform the following steps, you must be conversant with the local file system, BMC Remedy Smart Reporting admin environment, and the admin privileges on the server where Tomcat is installed.
- Download Tomcat installer 8.5.6.
You can also upgrade to Tomcat version 9.0.33 on your Windows machine. Download the apache-tomcat-9.0.33-windows-x64.zip file from the following location:
https://archive.apache.org/dist/tomcat/ - Place the downloaded installer of Tomcat on the server where the existing Tomcat is installed. For example, you can check for the Tomcat installation directory under <<Smart Reporting installation directory>>\appserver.
- Stop Smart Reporting service.
- Backup the following folders or files and copy them to a safe location. You might need them if Tomcat upgrade process fails.
- <BMC Remedy Smart Reporting installation directory>\appserver\lib
- <BMC Remedy Smart Reporting installation directory>\appserver\bin
- <BMC Remedy Smart Reporting installation directory>\conf\server.xml
- For Windows Service only, copy the existing Java options from service.properties by performing following steps. For Linux service, skip the following steps (a-c).
- Open the command prompt and change working directory to <BMC Remedy Smart Reporting installation directory>\appserver\bin.
To open service.properties window, run the following command:
tomcat7w.exe //ES//BMCSmartReporting
Open Java Tab and copy everything from the Java Options box and paste it in a text file.
- In the <BMC Remedy Smart Reporting installation directory>\appserver\bin folder, if any of the files mention Tomcat version number, remove them. For example, tomcat7.exe, tomcat7.exe.x64, tomcat7w.exe.
- Remove all files from the <BMC Remedy Smart Reporting installation directory>\appserver\lib directory.
- From your downloaded Tomcat installer folder (mentioned in step 2), copy the contents of the \lib folder to your <BMC Remedy Smart Reporting installation directory>\appserver\lib directory.
- From your downloaded Tomcat installer\bin folder (mentioned in step 2), copy all the .jar files and any files which have Tomcat version number (Tomcat8, Tomcat8w etc.), and place them in <BMC Remedy Smart Reporting installation directory>\appserver\bin. Replace any files with same name.
- Open the <BMC Remedy Smart Reporting installation directory>\conf\server.xml file and perform the following tasks:
- Remove the following lines, and save the file.
<!--Initialize Jasper prior to webapps are loaded. Documentation at /docs/jasper-howto.html -->
<Listener className="org.apache.catalina.core.JasperListener" /> - In the server.xml, update the protocol as follows:
“protocol="org.apache.coyote.http11.Http11NioProtocol”
- Remove the following lines, and save the file.
- (Optional) Start BMC Remedy Smart Reporting service via startup.bat (for windows) or startup.sh (for Linux). Perform this step just to confirm that you can start BMC Remedy Smart Reporting service by using the startup files.
- After starting the BMC Remedy Smart Reporting service, navigate to http://<SR_Server>:<SR_Port>/info.jsp and check if the new tomcat version is updated.
If you are using a Windows Service to run Tomcat, perform the following steps. If you are using Linux to run Tomcat, skip the following steps. - Stop BMC Remedy Smart Reporting service if started.
To remove the current Smart Reporting Widows Service, open the command prompt and type the following command:
sc delete <Smart Reporting Service Name>
For example,sc delete BMCSmartReporting
- From your downloaded Tomcat installer\bin folder (mentioned in step 2), copy the service.bat file and place it in the <BMC Remedy Smart Reporting installation directory>\appserver\bin folder. The existing service.bat file in the <BMC Remedy Smart Reporting installation directory>\appserver\bin folder is replaced with the new one.
From the <BMC Remedy Smart Reporting installation directory>\appserver\bin folder, open the service.bat and add in the following code above set
"SELF=%~dp0%service.bat".
rem --------------------------------------------------------------------------- rem Smart Reporting Options rem set JRE_HOME to value chosen in installer set JRE_HOME=C:\Program Files (x86)\Java\jre1.8.0_40 rem Memory limits. rem Set JvmMs to minimum JVM stack size (in Mb) rem Set JvmMx to maximum JVM stack size (in Mb) set JAVA_OPTS=%JAVA_OPTS% --JvmMs 1024 --JvmMx 2048 rem Fixes for JPivot compatibility with Axis and Java 1.6 set JVM_OPTS=-Djavax.xml.soap.MessageFactory=org.apache.axis.soap.MessageFactoryImpl set JVM_OPTS=%JVM_OPTS%;-Djavax.xml.soap.SOAPConnectionFactory=org.apache.axis.soap.SOAPConnectionFactoryImpl set JVM_OPTS=%JVM_OPTS%;-Djavax.xml.soap.SOAPFactory=org.apache.axis.soap.SOAPFactoryImpl rem set JVM_OPTS=%JVM_OPTS%;Djavax.xml.transform.TransformerFactory=org.apache.xalan.processor.TransformerFactoryImpl rem If you are experiencing "java.lang.OutOfMemoryError: PermGen space" rem errors, uncomment the following line: rem set JVM_OPTS=%JVM_OPTS%;-XX:PermSize=64m;-XX:MaxPermSize=256m rem Uncomment these options if you are experiencing performance issues with OLAP data sources rem set JVM_OPTS=%JVM_OPTS%;-Dorg.olap4j.driver.xmla.XmlaOlap4jCube.lazyLoadMeasures=true rem set JVM_OPTS=%JVM_OPTS%;-Dorg.olap4j.driver.xmla.XmlaOlap4jCellSet.lazyMemberLookup=true rem ---------------------------------------------------------------------------
- Install the new Smart Reporting service by performing the following steps.
- Open the command prompt. and navigate to <BMC Remedy Smart Reporting installation directory>\appserver\bin.
Run the command:
service.bat install BMCSmartReporting
- Check if the new Smart Reporting service is installed. The service name could be Apache Tomcat 8.5 BMCSmartReporting.
- To add the existing java option (copied in step 5c) to the new Smart Reporting service, perform the following steps:
- Open the command prompt and change the working directory to <BMC Remedy Smart Reporting installation directory>\appserver\bin
To open the service.properties window, run the command –
tomcat8w.exe //ES//BMCSmartReporting
- Open Java Tab and paste the values (copied in step 5c) in the Java Options box.
- Check the initial and maximum memory pool and modify values accordingly, these are memory heap size values.
- Open the General Tab and change Display Name to BMC Smart Reporting and Description as BMC Reporting Application Server
- Review the changes and Click on OK
- Now you should be able to start the Smart Reporting service from the Service console.
- Start the service and check Tomcat version information in http://<SR_Server>:<SR_Port>/info.jsp.
Comments
Only one comment thus far. There are extra C/R L/F in the example above: Example: rem set JVM_OPTS=%JVM_OPTS%; Djavax.xml.transform.TransformerFactory=org.apache.xalan.processor.TransformerFactor
Should be: rem set JVM_OPTS=%JVM_OPTS%;Djavax.xml.transform.TransformerFactory=org.apache.xalan.processor.TransformerFactor
All on one line. Otherwise we get an error when we run it.
Hi David,
Thank you for your feedback. I have edited the topic as suggested.
Regards,
Maithili
Log in or register to comment.