To work with your Open Social Widget you have to deploy it to Liberty. Because Liberty is a little bit different then Tomcat…let me give you some hints.
Requirement:
RTC 6.0.1 or higher
Deployment “How To”:
- Go to your Liberty install directory i.e. “C:\IBM\JazzTeamServer602m3\server\liberty”. Change to “C:\IBM\JazzTeamServer602m3\server\liberty\servers\clm”.
- You will see a dropins directory. Copy the WAR File to this dropins directory.
- Edit the C:\IBM\JazzTeamServer602m3\server\liberty\servers\clm\server.xml
- Change the line <applicationMonitor dropinsEnabled=”false” pollingRate=”10s” updateTrigger=”mbean”/> to <applicationMonitor dropinsEnabled=”true” pollingRate=”10s” updateTrigger=”mbean”/>
- Restart the App Server with setver.shutdown.bat and server.startup.bat inside C:\IBM\JazzTeamServer602m3\server.
- Test if you can access https://ssejtsserver:9443/<WARFileName>/status.xml if you use a status.xml.
Create a WAR File from static content:
If you don’t have a WAR File you can create one for your static Files. This example assume that your Open Social Widget has the name “keyscript”.
- Create a “META-INF” and “WEB-INF” directory inside your Open Social Widget Dev directory “keyscript”.
- Create a MANIFEST.MF inside META-INF with the following content
- Manifest-Version: 1.0
- Created-By: 1.8.0_66 (Oracle Corporation)
- Create a web.xml inside your WEB-INF directory with the following content:
-
<?xml version=’1.0′ encoding=’ISO-8859-1′?>
<web-app xmlns=’http://java.sun.com/xml/ns/j2ee’
xmlns:xsi=’http://www.w3.org/2001/XMLSchema-instance’
xsi:schemaLocation=’http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd’
version=’2.4′>
-
<display-name>keyscript</display-name>
</web-app>
- Create the WAR File with the command “jar cvf keyscript.war .”
Avoid turnaround:
The turnaround of changeing something then create a new WAR File and deploy it, is too slow. I found a trick to avoid this.
- Unzip the WAR File inside the dropins folder
- Rename the directory from i.e. “keystore” to “keystore.war” (if your Widgetname is keystore)
- Remove the original WAR File
Now you can work inside the “keystore.war” and you will see the changes immediately.