Reputation: 1
I have developed web application using Struts2 + Hibernate + Java7+ Mysql 5.5 and its working successfully in my local windows server.
I have deployed this (local working) code under public_html folder in production server. Production environment is Linux + Tomcat 7 + JDK 7 based server.
While accessing the example.com it displaying the index page only without listening struts2 action.
If I am trying to login or register into the application it says “Not Found The requested URL /myactionname was not found on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.”
It should be look up myactionname in struts-default.xml file, and then process the business code, then its return to the jsp page to render view of this application. I don’t know why this not working in my application. Please help me to resolve this error.
Upvotes: 0
Views: 930
Reputation: 5658
What is the public_html
folder of this production server? If I remember correctly, isn't this the public folder for any LAMP based sites hosting servers which are mapped with the local Apache server ?
For Tomcat7 deployments, it is required that you place your war ( or folder ) inside the webapps
folder located at $Tomcat_dir$/webapps
.
Also make sure from the logs that your application is getting properly deployed or not.
Upvotes: 1