aspose file tools*
The moose likes Tomcat and the fly likes Deploying My WebApp in Tomcat Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Deploying My WebApp in Tomcat" Watch "Deploying My WebApp in Tomcat" New topic
Author

Deploying My WebApp in Tomcat

Gayathri Prasad
Ranch Hand

Joined: Jun 25, 2003
Posts: 116
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

Joined: Feb 20, 2001
Posts: 3695

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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Deploying My WebApp in Tomcat