WebSphere Application Server Interview Q’s(FAQ)

Hi All, Below are the few interview Question in WebSphere: 1. How to choose websphere over other application servers? 2. What is the difference between web server and application server? 3. How to check a particular port is working or not in unix? 4. What are the issues commonly seen

Continue reading »

Common classloader (ClassNotFoundException) issues in WebSphere Application Server

JNDI lookup for a WebSphere application server resource could be tricky due to lots of client jar being required. Below are few common exceptions you might run into during JNDI lookup from an external java client.   1. Caused by: java.lang.ClassNotFoundException: com.ibm.websphere.naming.WsnInitialContextFactory Remedy:  Make sure you place “Naming.jar” in the

Continue reading »

Websphere Application Server configuration with LDAP Server

 Security is a critical aspect of any distributed application model. Most of the firms have a centralized repository of the users in LDAP servers like Active Directory, Novell LDAP. This post illustrates how you can configure authentication to the WebSphere Application server using an Open DS LDAP  commonly reffered as

Continue reading »

Installation of WAS Fix pack

Steps to install the Fixpack:- Following is the step-by-step approach for installing the fixpacks for WebSphere Application Server environment:- (1) Take the back-up of the existing configuration. You run the below command to take the backup of the existing configuration from the individual profiles- (a) ./backupConfig.sh name_config.zip (unix) (b) backupConfig.bat

Continue reading »

BASIC Authentication in Websphere Application Server

1 ) Secure the application resources using the descriptor (web.xml) <!DOCTYPE web-app PUBLIC “-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN” “http://java.sun.com/dtd/web-app_2_3.dtd”> <web-app id=”WebApp”> <welcome-file-list> <welcome-file>index.jsp</welcome-file> </welcome-file-list> <security-constraint> <display-name>Constraint-0</display-name> <web-resource-collection> <web-resource-name>Constraint-0</web-resource-name> <url-pattern>/*</url-pattern> </web-resource-collection> <auth-constraint> <role-name>pegaadmin</role-name> </auth-constraint> <user-data-constraint> <transport-guarantee>NONE</transport-guarantee> </user-data-constraint> </security-constraint> <login-config> <auth-method>BASIC</auth-method> </login-config> <security-role> <role-name>pegaadmin</role-name> </security-role> </web-app>   2) Deploy the application

Continue reading »

Analyzing WebSphere Thread Dump

We can take thread dump on WAS using wsadmin tool in the following way. D:\IBM\WebSphere\AppServer\profiles\ProcessCommander\bin>wsadmin.bat WASX7209I: Connected to process “server1” on node WKHANFXPNode02 using SOAP conn ector; The type of process is: UnManagedProcess WASX7029I: For help, enter: “$Help help” wsadmin>set jvm [$AdminControl completeObjectName type=JVM,process=server1,*] WebSphere:name=JVM,process=server1,platform=proxy,node=WKHANFXPNode02,j2eeType=J VM,J2EEServer=server1,version=6.1.0.0,type=JVM,mbeanIdentifier=JVM,cell=WKHANFXP Node01Cell,spec=1.0 wsadmin>$AdminControl invoke $jvm

Continue reading »

Installing Websphere Application Server 7.0 in Silent Mode on Linux

Step 1) Download Websphere Installer from the official IBM Site http://www.ibm.com/developerworks/downloads/ws/was/ There are two types of installers, BASE Edition and Network Deployment.Only Base Edition is available for trail. We can only create standalone servers with that.Network Deployment Installer comes with additional fetaures like Clustering. You can check the official Website

Continue reading »