Hiển thị các bài đăng có nhãn WAS. Hiển thị tất cả bài đăng
Hiển thị các bài đăng có nhãn WAS. Hiển thị tất cả bài đăng

Recovering Password From WAS 6.1

Whenever you forgot your password for WAS login, don't get upset, WAS stores password in encoded form in its configuration file named security.xml which is located at 
<was_root>\AppServer\profiles\<default_profile>\config\cells\<nodename>\security.xml

From that security.xml note down the encoded form of your password which will be in the form {xor}LD08LTor 

now from command prompt browse to the following directory 
<was_root>\AppServer\bin\ProfileManagement\plugins\com.ibm.websphere.v61_6.1.0<something>\
after reaching in that directory run the following command
>c:\..\..\was_root\AppServer\java\bin\java.exe -cp ws_runtime.jar com.ibm.ws.security.util.PasswordDecoder <encodedPasswordFromSecurity.xml>

We can also use this ws_runtime.jar from different location mentioned as follows
<was_root>\AppServer\deploytool\itp\plugins\com.ibm.websphere.v61_6.1\

Same procedure can be repeated for producing a new encoded password with which you can alter the security.xml but in this case at the end of command we'll use PasswordEncoder <password>
so the command becomes
>c:\..\..\was_root\AppServer\java\bin\java.exe -cp ws_runtime.jar com.ibm.ws.security.util.PasswordEncoder wasadmin
[wasadmin is the password to be encoded here]

Note: This procedure applies to WAS v6.1. Method varies for other versions.

Verify Installation of IBM WAS by Snoop Servlet

After installation of the default application on IBM Websphere Application Server, we can verify our installation by the default configuration whether the installed properly and running properly or not.
For this we can use Snoop servlet. We generally end up with installation having server1 and one enterprise application named Default application, which includes a Snoop servlet which helps us in retrieving servlet request.
We can access the snoop servlet at following url

http://localhost:9080/snoop
We can also use other methods to verify installation with following urls
http://localhost:9080/HelloHTML.jsp
http://localhost:9080/HitCount.jsp

How To : Delete a profile (Websphere Application Server 6.1)

While practicing on WAS (Websphere Application Server 6.1), my mind stroked at a point that " How will I delete the profile I created earlier during practice". After sticking to this and getting into it I found that it can be done through command prompt, but results doesn't clean all mess. Few steps to follow for this clean profile deletion act.

Step A:
The command we are going to use is manageprofiles.bat
which is located at <root>\AppServer\bin\
and we will be using delete attribute for this. so the complete command turns out to be:
*be careful command are case sensitive
 manageprofiles.bat -delete -profileName <profilename>

Step B:
Now the profile has been deleted but logs have been left undeleted in profile directory, therefore now delete the profile directory itself

 <root>AppServer\profiles\<profilename>

Step C:
Now validate registry by following command
 manageprofiles -validateAndUpdateRegistry

Note: If while creation you have selected profile to act as window service then after first step you can check that service will be disabled and after step c, you should run a command to delete that service which is as follows


 WASService.exe -remove <servicename>