title: Java Spring MVC deploy .war on GlassFish
body: <p>At first i want to say that i'm a beginner in java servers and never deploy an java .war app on server other than localhost in my intellij.</p>
  
  <p>I have a simple only REST app Which work fine in localhost, i also created war file and deploy it by command "asadmin deploy --port 4849 war_name", but when i go into url <a href="http://stachurskipiotr4.usermd.net/cookbook-1.0-SNAPSHOT" rel="nofollow noreferrer">http://stachurskipiotr4.usermd.net/cookbook-1.0-SNAPSHOT</a> there is an server error.</p>
  
  <p>I completely don't know what it is, i will be grateful for any help.</p>