I tried all the information provided on internet for resolving this issue but all went to vain. For v3 glassfish server i modified "domain.xml" with -Xrs option.When that didnt work then i tried modifying asadmin.bat file as per "https://blogs.oracle.com/foo/entry/how_to_make_v3_platform" link.
Still i am unable to solve this issue.Please help.