I'm not too familiar with that API. What exactly happens when you say "the deployment isn't happening"? On the server side do you see any exceptions in the logs or any kind of logs at all? Are you using standalone JBoss EAP or in domain mode? Finally, is there a reason why you are writing your own deployment code instead of using available tools like the Command Line Interface (CLI) or the admin console?
Thanks for your reply. When I mean the deployment isn't happening I meant that when I deploy the app the application login page doesn't come and I see HTTP 404. I can see java.lang.ClassNotFoundException: org.bouncycastle.jce.provider.BouncyCastleProvider in logs but the application is deployed as per logs. I am using standalone Jboss EAP 6.4. I tried deploying the application using admin console and get the same result.
Please attach the complete server.log file which shows the logs during the application deployment.