• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Deploying My WebApp in Tomcat

 
Gayathri Prasad
Ranch Hand
Posts: 116
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
I am deploying a webapplication of mine and I am unable to do it and the details are as given....
I created a folder in the webapps folder by the name MyServlets and
Tomcat_Home\webapps\MyServlet
Tomcat_Home\webapps\MyServlet\WEB-INF
Tomcat_Home\webapps\MyServlet\WEB-INF\classes
Tomcat_Home\webapps\MyServlet\WEB-INF\lib
In my WEB-INF the web.xml descriptor is saved and in the MyServlets folder I stored the login.jsp which would in turn call the login.jsp which is stored in classes folder
From the JSP I am calling the servlet as <form name="loginForm" method="post" action="servlet/login">
I am able to get the Jsp but when I am pressing the Submit button The tomcat results in 404 error
Please help me.

Gaya3
 
Mike Curwen
Ranch Hand
Posts: 3695
IntelliJ IDE Java Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
action="servlet/login" = BAD

you are using (or attempted to use) the invoker servlet.

check: http://www.coderanch.com/t/83096/Tomcat/servlet-not-loading
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic