Category: watson

If you have used Watson Knowledge Studio (WKS) before, you would know that it is a powerful application to teach Watson how to interpret specific terms in unstructured text using annotation models. Available since July 2016, WKS we are using WKS on several projetcts.

More information on this link

watson

I am using Centos for all IBM Software i work with.   Domino, WebSphere Portal, DB2, ITDS to name a few. The last software was Watson Explorer Enterprise and Advanced.

I know Centos is not supported by IBM but it works

During the setup of analytical components version 11.0.2 the installer was not working with and the error message is bellow:

Unpacking the JRE...
Extracting the installation resources from the installer archive...
Configuring the installer for this system's environment...

Launching installer...

JRE libraries are missing or not compatible....
Exiting....

I search for a solution and IBM has a technote about the problem on version 11.0.0. To solve just install the 32 bit libraries

- zlib-devel.i686
- libXext.i686
- libXft.i686
- libXi.i686
- libXp.i686
- libXtst.i686

 

Another problem was when i launch the ESAdmin interface http://server:8390/ESAdmin after start the services with the command esadmin service startall
FFQM0142E The system is not running. To start the system, log in as the administrator on any server and enter: esadmin system startall

Again i need to verify all libraries. libstdc++.i686 and libstdc++ was not installed .

For wex fc and analytics component you need the following:

  1. libstdc++33 (compat-libstdc++-33.i686 / libstdc++33-32bit)
  2. libstdc++ (libstdc++.i686 / libstdc++6-32bit)
  3. zlib (zlib.i686 / libz1-32bit / zlib-32bit)
  4. libXext (libXext.i686 / libXext6-32bit / xorg-x11-libXext-32bit)
  5. libXft (libXft.i686 / libXft2-32bit / xorg-x11-libs-32bit)
  6. libXi (libXi.i686 / libXi6-32bit / xorg-x11-libs-32bit)
  7. libXp (libXp.i686 / libXp6-32bit / xorg-x11-libXp-32bit)
  8. libXtst (libXtst.i686 / libXtst6-32bit / xorg-x11-libs-32bit)

watson

I used the steps bellow to run my chatbot servlet application inside of a Docker container.

1 – Download WAS Liberty Docker image:

docker pull websphere-liberty

2 – Create a Docker file with the following lines

FROM websphere-liberty
ADD ChatBot.war /opt/ibm/wlp/usr/servers/defaultServer/dropins/
ADD server.xml /opt/ibm/wlp/usr/servers/defaultServer/
ENV LICENSE accept

ChatBot.war is my chatbot application.
To add features and configuration for your server you need to update the server.xml.
Do not forget to put host=”*” on httpEndpoint or you will not access the server from your browser.

The server.xml is listed below

<server description=”new server”>

<!– Enable features –>
<featureManager>
<feature>javaee-7.0</feature>
<feature>localConnector-1.0</feature>
<feature>distributedMap-1.0</feature>
<feature>webCache-1.0</feature>
</featureManager>
<basicRegistry id=”basic” realm=”BasicRealm”>
<!– <user name=”yourUserName” password=”” />  –>
</basicRegistry>
<!– To access this server from a remote client add a host attribute to the following element, e.g. host=”*” –>
<httpEndpoint host=”*” httpPort=”9080″ httpsPort=”9443″ id=”defaultHttpEndpoint”/>
<!– Automatically expand WAR files and EAR files –>
<applicationManager autoExpand=”true”/>
<applicationMonitor updateTrigger=”mbean”/>
<distributedMap id=”watsoncache” jndiName=”services/cache/watsoncache”>
<diskCache/>
</distributedMap>
<keyStore id=”defaultKeyStore” password=”password”/>
<basicRegistry id=”basic” realm=”BasicRealm”>
<user name=”user” password=”password”/>
</basicRegistry>
</server>

3 – execute docker built -t chatbot .
4 – execute docker run -d -p 80:9080 -p 443:9443 chatbot
5 – Open your browser and access your application using localhost.

docker watson WebSphere