Skip to main content

Tomcat 7, servlet not found

Comments

3 comments

  • 24x7ss
    Hello, Did you check the catalina error logs when the URL returns 404 error ? May be you have not deployed the app to proper location ?
    0
  • Héctor Espí
    It's difficult for me to see the logs because I have no access to the apache/tomcat path, just to my app folder (I have to ask the reseller to send that file to me). I'm going to enumerate the steps I have done to publish the application for you to see if there's something wrong/missing: 1.- Deploy the WAR to my local tomcat installation inside the "webapps" folder. I have checked out that all servlets and JSPs are working properly. 2.- Remove all the content under the "public_html" folder. 3.- Upload the contents of my application folder under my local tomcat to the FTP (directly to the public_html). 4.- Create a .htaccess (I HAVE ONLY ONE .htaccess FILE) file with the following content, in order to have JSP and Rewrite module working: SetHandler jakarta-servlet SetEnv JK_WORKER_NAME ajp13 Is there anything I have missed?, do I need another .htaccess inside the WEB_INF folder, and what are its contents?.
    0
  • cPanelMichael
    Hello :) The following document describes how to deploy Java WAR packages:
    0

Please sign in to leave a comment.