What kind of layers are you adding to the JMap ? dynamic layer from local map package, online web service, local tiled layer ?
In case you are loading a TPK or MPK file, as a resource file, it's working in local because the file is accessible, but in deployment your resource file are in the jar... so you need to deploy or copy them outside the jar file for deployment.
I hope this can help you.