I resolved the issue..
because we were getting the path of jks from API which was returning the path with file: protocol as jboss does not support this jks was not getting loaded. i modified the string to remove the "file:" and it is working fine now.