Question

I developed a web application using java and mongodb. I used glassfish server. I tried to deploy it on jelastic cloud service I uploaded my war file. But when I run it after deploying the war file it shows a 404 error. Why? The project works fine on my machine.

Was it helpful?

Solution

There are at least few potential causes:

  • your app needs some resources which are not started by default (such as DerbyDB). In this case you can check GlassFish log file - server_instance.log for more details.

  • you are trying to get resources from wrong context, make sure you are trying to get it via correct context name

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top