Google App Engine Project works in Development Environment but not when Deployed
I am in the process of moving my web website over to google app engine and am having a problem with my site when it开发者_如何学运维 is deployed. The application was being hosted on tomcat/mysql and predominately consists of jsp pages. I have read the fallowing google documentation:
http://code.google.com/appengine/docs/java/config/webxml.html
I am unable to get any of the jsp pages to work correctly I keep getting a 500 Server Error
Error: Server Error The server encountered an error and could not complete your request.
The project works great in the google app engine development environment but doesn't work when deployed it seems like the project isn't getting mapped.
Does anyone have any insight.
When your app raises an uncaught exception, App Engine shows the generic 500 page. In order to see the exception, you need to check the logs for your app in your app's admin console.
So after plenty of research I found the problem to be that some classes that are persisted need to also implement Serializable when you use sessions. For some reason I didn't see this in the documentation or come across it in my initial research.
I guess you have already done this, but you should be able to check if everything is fine locally, by first deploying locally using the app engine development server. http://code.google.com/appengine/docs/java/tools/devserver.html
If you're testing locally on tomcat + mysql, then you can't deploy on the app engine. The Google App Engine not does support SQL databases. Besides that, if you want a more detailed response you need to look at the app engine logs and tell us why it is throwing a 500 at you.
精彩评论