The error occurred because you are not specifying an explicit Keystore so it will try to generate Keystore C:\users\abc>.keystore and you need to provide the old password for .keystore but I think you are giving a new password.
To solve this, you can delete .keystore from C:\users\abc> and then try the command. Or you can just try the following command which will create a new xyzkeystore:
keytool -genkey -keystore xyzkeystore -alias tomcat -keyalg RSA
I hope this helps you.