An appserver FAQ ...
I receive a lot of e-mail. There are quite a few questions and I try to respond to them especially if they pertain to what I know and what I know for sure
. E-mail is a pain and some gain. The knowledge transfer is good, but time consuming and it evaporates fast. Referenced knowledge base is a good thing and hence I have started this blog from today. It is about FAQ about Sun's Application Server I will keep on updating the same blog till it hits Roller's maximum size of a blog limit. Is there a limit like this? I hope not.
Anyway, here you go ...
Questions (A's)
Answers (Q's)
- Short Answer: Reinstall or recreate the affected domain.
And that's the indication of a good product. No compomises with password,
blah blah blah
. Now the long answer is as follows: We know that you are
a developer. You are forgetful. You have many passwords to remember. And hence,
only for you, I am posting this here. Maybe search engines index this document
better for you. So here you go:
- We assume that you have not modified the administrator's authentication realm. By default it is the file realm. In other words, a secure single way hash of your admin password is kept in a file called [domain-dir]/config/admin-keyfile, by default. This is where the authentication is performed.
- Does that click? Yes ....
- Right, you create another domain using asadmin create-domain
command supplying the password of your choice at a temporary place and
copy the admin-keyfile from that domain to this domain
. The domain's
password is no more forgotten. - Well, this is true for Sun's Application Server 8.x onwards. For Sun's Application Server 7.x, you will have to find a file called admpw in your install-dir/lib and delete that file. Then it will accept any password till you set one.
- Don't tell anyone that I told you.
[back]

