Solved

First Run Tomcat 404 Servlet not found

Posted on 2004-04-20
1
407 Views
Last Modified: 2006-11-17
I successfully compiled servlet 'upload' in \web-inf\classes folder.  When I tried to execute it from the browser using 'http://localhost/testup.htm' HTLM form I get "The requested resource (/upload) is not available."  Do I have to tell Tomcat where to find it.  If so, How do I do this.  Is it in the Server.xml or Web.xml,

0
Comment
Question by:mlcktmguy
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 

Accepted Solution

by:
caz_2001ie earned 125 total points
ID: 10871559
Hope this helps

1)Ensure your servlet is running to begin with

2)Try using the following format for calling your servlet from your html
- dont forget to specify the port 8080 which is the default web port on your computer
- login is the name of my servlet you should replace this with your servlet name with no dot extension  .just how you see it below

<FORM method="post" action="http://localhost:8080/login">
      <p>User Name: <input name=name type=text></p>
          <p>Password: <input name=password type=password></p>
<input type=submit name=submit value=submit>
        <input type=reset name=reset value=reset>
</font>
</FORM>
0

Featured Post

How our DevOps Teams Maximize Uptime

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us. Read the use case whitepaper.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Does your audience prefer people in photos or no people? How can you best highlight what you’re selling? What are your competitors doing, and what can you do that is different and unique from them?  Continue reading to learn how to make your images …
When the s#!t hits the fan, you don’t have time to look up who’s on call, draft emails, call collaborators, or send text messages. An instant chat window is definitely the way to go, especially one like HipChat. HipChat is a true business app. An…
This tutorial demonstrates how to identify and create boundary or building outlines in Google Maps. In this example, I outline the boundaries of an enclosed skatepark within a community park.  Login to your Google Account, then  Google for "Google M…
This video teaches users how to migrate an existing Wordpress website to a new domain.

729 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question