Skip to main content

Posts

Showing posts from November, 2014

Update the Default SSL Certificate for IBM WAS

How to update/replace the default SSL certificate for WebSphere Application Server.  But before that, if you are not familiar with SSL ( Secure Socket Layer ) protocol, here's a simple one liner on SSL:

Internet security is often a priority for those who carry out online transactions or host a financial/banking website, and so SSL certificates can prove to be an essential investment for many businesses and organization. They work by linking a cryptographic key to details such as a particular domain name, location and business contact details. Once such authentication has been established, the connection between the web server and the internet browser is secure, and not at risk from third party infiltration.

Still not clear, just watch the below video:

We will have a look at topics like: Location of certificate, Certificate keystores, Programmatically import,replace or delete certificate using the WAS Admin commands.



Note: Websphere Application Server certificate (personal c…

How to fix the latest Eclipse, RAD, RSA, RTC Crashes

All users working on RHEL / CENTOS are now facing a issue of eclipse crashes. Typically most versions of Rational Application Developer, Rational Software Architect and Rational Team Concert are also crashing due to the latest kernel update. (In general any eclipse based product)
I've seen the issue with eclipse JUNO, RAD 9.1, RTC 4.0. Interestingly this crash occurs constantly and there is no way out. Even if you install any fixpack or change your java version, its not gonna help.

Issue:
1. Open either eclipse, RAD or RTC
2. Open or create a file for existing project
3. Application hangs for few seconds before it crashes and creates a core dump.
4. Steps 1-3 occur everytime. No way out.

Exception on the crash screen:
JVM terminated. Exit code=1
/work/downloads/IBM_Installation_Manager_1_8//jre_7.0.0.sr6_20131213_1238/jre/bin/java
-Xms40m
-Xmx1024m
-Xquickstart
-Xgcpolicy:gencon
-jar /work/downloads/IBM_Installation_Manager_1_8/plugins/org.eclipse.equinox.launcher_1.3.0.v20130327…

Dojo 1.6.x unable to detect IE11 browser version details

For IE11, Microsoft changed their browser's version identification. Now the navigator.useragent inspects the value as:

"Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; .NET4.0E; rv:11.0) like Gecko"

This leads to an older version of Dojo (I've seen this issue with Dojo 1.6.x) to return dojo.isIE as undefined. Dojo 1.9.3 does have support for IE 11, but we can still tweak for older Dojo versions of dojo to atleast detect the browser version for IE 11. Below is the javascript trick:

if( !dojo.isIE )
{
      var userAgent = navigator.userAgent.toLowerCase();
      var IEReg = /(msie\s|trident.*rv:)([\w.]+)/;
      var match = IEReg.exec(userAgent);
      if( match )
          dojo.isIE = match[2] - 0;
      else
          dojo.isIE = undefined;
}
The above dojo code will now detect browser version as 11 for IE 11.