Caused by: java.lang.NullPointerException
You'll have to check the code of that application to see what object is null on that line and why.
I tried deploying the EAR file through the admin console of Wildfly in Linux but its throwing the above mentioned exception ,
but the same EAR file works fine when deployed the same way in Window.
How did you start your AS?
Did you verify in the server.log that the AS started without any problems?
I started the admin console by executing the adduser.sh in the bin folder of server.
It started fine ,I have verified it too but the problem is with the below mentioned code:
strRootPath = context.getRealPath("\\").replace('\\','/');
the above path executes fine with windows, but its not working in Linux.
adduser.sh is used to add / update users (not to start an AS. This is usually done either via standalone.sh or domain.sh.
But your issue might be related to the fact that the file separator on MS/Windows is different to the Unix/Linux systems.
You should test the separator via System.getProperty("file.separator");