Search code examples
mysqlspringtomcat7spring-jdbc

Getting ERROR while WAR file deploying in tomcat7


I have spring mvc based application. That is running tomcat7 server. Recently i made a few changes in my application. I created war file for entire application again. And i try to redeploy the new war file in tomcat7 server. When i click on my domain name i am getting "the requested page not available".

Why this error coming. I given all the properties file values correctly. could you please help me?

This is the production application. I used Linux servers and MySQL DB. Tomcat7, spring mvc and spring jdbc.


Solution

  • The problem happens due jdk version. In my production server have jdk 1.7 but in my local i have jdk 1.8. I created war file with jdk 1.8 version. That's why i am getting that error. now i changed jdk version and recreate war file and deployed in server. Now it's working fine.