Posts

Showing posts with the label Java

Problem with StringUtils. containsIgnoreCase(String, String) in IBM RAD 7.5 and Websphere 6.1

Image
I am using IBM Rational Developer v 7.5 as development IDE and WebSphere Application Server 6.1 as application server to develop a J2EE project. Some days ago I encountered a problem with  containsIgnoreCase method of StringUtils.     It was complaining that The method containsIgnoreCase(String, String) is undefined for the type StringUtils as I was using containsIgnoreCase method of StringUtils defined in apache commons lang 2.3. For that I had added commons -lang -2.3.jar in the classpath. Although the required jar was there in classpath it was saying the method containsIgnoreCase was undefined. Then I searched on the internet and found on IBM website ( http://www-01.ibm.com/support/docview.wss?uid=swg21398963 ) that it was problem with IBM RAD 7.5. While using IBM RAD 7.5 with WebSphere Application Server 6.1 if the Java code uses  containsIgnoreCase method of StringUtils defined in apache commons -lang -2.3.jar it gives  error. ...

Unable to evaluate the selected expression while debugging Java project in eclipse

Image
Are you having the problem that says Unable to evaluate the selected expression while debugging Java project in eclipse? The problem happened to me when I tried to inspect the values during debugging. The error screen is shown. Solution: -   Go to debug window of eclipse -   Right click on it -   Go to Edit Source Lookup Path    -   Click Add button - Click to Java Project   -  Select the java project that the code exists in ( (For example, it is Struts2Project in my case )