I resolved the issue today. The user SM_ADMIN_<SID> that is supposed to get created automatically in step 6 "Create users" was not created. Hence the SMD agent was not able to connect to the J2EE stack. I got the user created with appropriate roles and then the configuration check worked fine.
Thanks,
Airnd