I wrote a Grails application, everything works fine, then I generated the myapp.war file to be deployed in a Tomcat 6.0 server running in a VM. I generated the .war file with
grails war
Then I moved the file to the /tomcat/webapp location on my server, and it was expended into the directory myapp.
However, when I try to access the application, I get:
Message:
FAIL - Application at context path /myapp could not be started
I’m new at deploying .war files into Tomcat servers. I was testing my application within my SpringSource IDE, as localhost:8080/myapp and everything is working fine, however, when I try to deploy that to <my-server>:8080/myapp I’m getting that error message.
Any is that happening? Could someone please help me with that error?
Check the log files in Tomcat. Carefully examine every row to check for fatal errors. It could be a single row in the log file that makes Tomcat refuse to start the application.
I have had several cases where a small “innocent” row in the log file was the root cause.