My HelloWorld servlet just dont want to work

Hi,
I know that there's many posts about this issue but still it doesn't want to work for me :(
i made this HelloWorld.java file with this code:
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class HelloWorld extends HttpServlet {
    public void doGet(HttpServletRequest request, HttpServletResponse response)
    throws IOException, ServletException
        response.setContentType("text/html");
        PrintWriter out = response.getWriter();
        out.println("<html>");
        out.println("<head>");
        out.println("<title>Hello World!</title>");
        out.println("</head>");
        out.println("<body>");
        out.println("<h1>Hello World!</h1>");
        out.println("</body>");
        out.println("</html>");
}then i made these steps:
- compiled this file to HelloWorld.class
- shutdown the tomcat server (4.1.31)
- copied the file to c:\<tomcat dir>\webapps\ROOT\WEB-INF\classes
- started the server again
- launch the url : http://localhost:8080/servlet/HelloWorld.
still i keep getting this annoying message: "The requested resource (/servlet/HelloWorld) is not available."
i tried to launch this servlet on tomcat 5.5 but still the same annoying message.
remark: when i launch http://localhost:8080/ i do see the tomcat homepage telling me that the setup went well, and when im trying to launch the servlet's example that came with the installation they work too.
What am I missing here?

hmmm... there's a little problem.
i don't have any servlet.xml file,
not in tomcat 5.5 nor 4.1.31.
what should i do?edit server.xml
And the proper way as already mentioned is to name the servlets in the web.xml file and use packages for your servlets.

Similar Messages

  • My ipod just doesnt want to work on my pc

    So I just fixed my ipod, by replacing the broken hard drive. The ipod itself was out of warranty so I figured I take a crack at it. Anyways the transplant was successful and I got it up and and running. The problem is I cant get my pc to recognize it and I HAVE TRIED EVERYTHING ON the apple help page. So I thought there was something else wrong with my ipod so before giving up I took it over my friends house and hook it up over there and instantly it poped up and let me format it and update it and let me name it with itunes. So I thought yay! I fixed it. So I got home later that night and plug it in my pc and it took like 5 min for itunes to open up, but finally I started transeferring music from itunes to it. It was taking really long so I decided to go to sleep and get to it in the morning. But when I woke up the ipod was turned off and wouldnt respond to me pushing any of the buttons so I tried unplugging and plugging the cord in and it popped up with this battery symbol that doesnt do anything but sit on the screen. Its a giant battery with a lighting bolt on it and it doesnt appear to be moving. It does this with all my pcs and at my friends house it actually moved and charged up. I don't know what to do is it just to dead to revive with the usb cord or is my pc messing something up? I run windows xp and so does my friend. Any Ideas?
      Windows XP Pro  

    Sorry to hear you are still having problems.
    The only other thing other than what you mentioned would be some power saving setting in BIOS(BasicInputOutputSystem)
    that is interferring with iTunes. If you try going into the BIOS, you should be very careful in there. Your power supply might not be powerful enough on your computer, so I'd check that first. If you don't know about BIOS,(perfectly normal-I consider myself somewhat of a nerd) I suggest getting the help of some "computer expert" to do it. Yet of course, it is your choice, and(after getting the approval of your parent(s) if you are a minor and/or the owner of the computer if you do not own it) You could always do some research on the web and try to do it yourself. Be careful and good luck!

  • HT4097 when i turned on my ipad it has the itunes logo on it.  It says it is in recovery mode and that i have to restore it. I dont want to lose my photos I  have stored on it. I tried the suggestions from above but nothing works. What can I do

    When I turned on my ipad the itunes logo is on it. I cant get to my home screen. I plugged it to my computer and went to the itunes and it states that the ipad is in recovery mode and that I have to do a restore. I have some important photos on it that I dont want to lose. Is there a way I can restore it without losing the photos. I tried the suggestions on this site but it dont work. My last resort is to restore it if I have to.  Also, when Im on the itunes site it does say that i can update on March 15th Can anyone help? Thanks

    Then you can select that backup to restore from if you want. If it is an old backup - then you will be restoring the iPad to the condition that it was on that date. You mentioned March 15 in your first post. If your only backup is from last year, then you will lose all of the photos that you have taken since then.
    When you post back, include details ...not just a one sentence statement. Its difficult to ascertain exactly what you are experiencing without specific details.

  • Hi, I have moved to India from france and I am trying to update my payment options to the Indian visa card but it seems that no matter what I do I cant do it. I dont want to create a new ID..Plz Help!!!Just want to change my location and my payment detail

    Hi, I have moved to India from france and I am trying to update my payment options to the Indian visa card but it seems that no matter what I do I cant do it. I dont want to create a new ID..Plz Help!!!Just want to change my location and my payment details!! thanks in advance!!

    These are two possible approaches that will normally work to move an existing library to a new computer.
    Method 1
    Backup the library with this User Tip.
    Deauthorize the old computer if you no longer want to access protected content on it.
    Restore the backup to your new computer using the same tool used to back it up.
    Keep your backup up-to-date in future.
    Method 2
    Connect the two computers to the same network. Share your <User's Music> folder from the old computer and copy the entire iTunes library folder into the <User's Music> folder on the new one. Again, deauthorize the old computer if no longer required.
    Both methods should give the new computer a working clone of the library that was on the old one. As far as iTunes is concerned this is still the "home" library for your devices so you shouldn't have any issues with iTunes wanting to erase and reload.
    I'd recommend method 1 since it establishes an ongoing backup for your library.
    Note if you have iOS devices and haven't moved your contacts and calendar items across then you should create one dummy entry of each in your new profile and iTunes should  merge the existing data from the device.
    If your media folder has been split out from the main iTunes folder you may need to do some preparatory work to make it easier to move. See make a split library portable.
    Should you be in the unfortunate position where you are no longer able to access your original library or a backup then then seeRecover your iTunes library from your iPod or iOS device for advice on how to set up your devices with a new library with the maximum preservation of data.
    tt2

  • HT2693 Pls Pls Pls Help me my iphone is stucked on conect to itunes its not working , unresponsive,i dont know what happen with my iphone my friends telling me that may be your iphone no jailbreak , but i dont want to make this happen i dont need it.

    Pls Pls Help me >>> i bougt my iphone just 1 years ago,i dont know what happend with my iphone,its unresponsive,showing only connect to itunes ,and when i tried to restore after that messgae came on my laptop that Error 21, could not restore ,,, my friends telling me that may be somebody trying to jailbreak your mobil so this was the reason can happen but i dont want any kind of jailbreak i want my iphone back to my work plss help me i m very poor person i cant efford to buy again this phone

    Anyone have any suggestions? or is everyone else just as clueless as me !

  • HT201269 ibook stopped transferring images via image capture. last month it worked. i hav an old ibook and i cannot update to newest itunes. which is fine. however, i need the image capture to take photos off my iphone 5. no, i dont want to use i cloud.

    ibook stopped transferring images via image capture. last month it worked. i hav an old ibook and i cannot update to newest itunes. which is fine. however, i need the image capture to take photos off my iphone 5. no, i dont want to use i cloud. i would actually like to just plug it in to the usb drive the old fashioned way

    I don't believe the iOS7 update was the cause for your issue. I have three devices all updated and they all show the Import To drop menu in Image Capture as shown below.

  • GRRRRRR I dont want a discussion I JUST WANT TECH SUPPORT - WILL SOMEBODY FROM ADOBE SORT THIS!!!

    GRRRRRR I dont want a discussion I JUST WANT TECH SUPPORT - WILL SOMEBODY FROM ADOBE SORT THIS!!!

    Just what I say Jeri.  I was persuaded to take up a montly sub for CS a year ago.  I pay every month but have never used any upgrade even once. We couldnt install it and despite spending hours trying to get support u just cant get anything - We are totally fed up with the whole time wasting excercise.
    Cant we simply get a set of discs for the current upgrade and go back to working sensibly.
    We could go bust here just mucking about with this stupid cloud thing - It could become a lifes work just trying to sort the ****** thing out. 
    To add insult to injury I now see that the D Debit is GBP46.88 /mnth for absolutely NOTHING.  Its a joke in bad taste.
    At one time it was Adobe that had the best cus service around and Quark that were the crooks.  Amazing how things turn around dont u think!!!

  • My home button is not working sometimes and at the store they dont want to take it for repair because the problem did not show up at that time

    My home button is not working sometimes and at the store they dont want to take it for repair because the problem did not show up at that time

    When normally powering the phone, there would not be a loading bar, you would just see the Apple logo. You can try a reset of the phone, hold the sleep/wake and home buttons together until you see the Apple logo and then release. The phone will reboot.
    You can take the phone to Apple, by making an appointment at the Genius Bar to have the hardware checked. Apple handles warranty and post-warranty issues, not Verizon. Have Apple look at the hardware to see if there are any problems.

  • My mail application was working fine, I shut down and when I restarted it is asking me to set it up again. I dont want to loose any information on my mail and I had a lot of accounts on it. . what can I do?

    My mail application was working fine, I shut down and when I restarted it is asking me to set it up again. I dont want to loose any information on my mail and I had a lot of accounts on it. . what can I do?

    I found all my files from my old account in the users folder but when I logged out there was no option to sign in on the old account, I'm guessing ill just have to start from scratch, which is fine as long as my old files aren't lost :) thanks for the help.
    I'll explore more once I get my screen fixed and there might be a way to recover my old account :)

  • HT204053 How do i make icloud work if my husband and I share the same itunes account but we dont want to get each others contacts, messages, apps etc?

    How do i make icloud work if my husband and I share the same itunes account but we dont want to get each others contacts, messages, apps etc?

    Each of you should set up your separate iCloud account on your own computer using your Apple ID. This gives you two independent iCloud accounts.
    Note that an iPad is not a multi-user device. It can only be synced with one account.

  • I have changed the apple ID (email, but on my iphone , the icloud is stil asking me to log in whit the old email.And it is poping-up on every 10 seconds.I never used icloud, and i dont want to use it.I just dont know how to disable the icloud.

    i have changed the apple ID (email) but on my iphone , the icloud is stil asking me to log in whit the old email.And it is poping-up on every 10 seconds.I never used icloud, and i dont want to use it.I just dont know how to disable the icloud.

    If you see that pop up you enabled icloud. Whether you want or do not want now to use it irrelevant until you actually disable activation lock.
    In order to do that you have to change your apple id back to do that just long enough to sign in and back out. System will ask you to verify, don't.
    Just sign in on the prompt you getting and then logout. Once done, change apple id to what you have now and verify. Then decide if you want to
    use icloud (who does not want to be able to track their phone if lost or stolen).

  • In my icloud account on my iphone I have three ios devices. How do I manage the backup of my old phone ? I dont want to detete that backup completetly, just manage that phone back up ? Please help!

    In my icloud account on my iphone I have three ios devices. How do I manage the backup of my old phone ? I dont want to detete that backup completetly, just manage that phone back up ? Please help!

    It will be backed up on your computer and can later be restored to an iOS device using iTunes, if desired.  Of course, if your hard drive crashes you'll lose it if it isn't backed up somewhere else.  If you want to included it in your computer backup, it will be located at one of the following locations:
    Mac OS X: ~/Library/Application Support/MobileSync/Backup
    Windows XP: %AppData%\Apple Computer\MobileSync\Backup
    Windows Vista: %AppData%\Roaming\Apple Computer\MobileSync\Backup
    Windows 7: %AppData%\Roaming\Apple Computer\MobileSync\Backup

  • I just tried updating my iphone 4 and now my phone is in recovery mode and i dont want to loose anything on my fone someone help please!!!!!

    i just tried updating my iphone 4 and now my phone is in recovery mode and i dont want to loose anything on my fone someone help please!!!!!

    If its stuck in recovery mode then you have to restore it. Hopefully you had a recent backup on Icloud or on your computer that you can apply after restoring it. If so then you shouldn't loose your data.
    Just connect it to Itunes and restore it. After it will promt you when your done to restore from backup or as new. If its on icloud unplug the phone and go through the intro screen till you get the same prompt. Sign into icloud and restore backup.

  • I updated my iphone 5 and now it is telling me to be able to work i had to connect it to itunes and itunes it telling me that i have to restore my iphone.  what can i do? i dont want to lose all my pictures and stuff like that.

    I updated my iphone 5 and now it is telling me to be able to work i had to connect it to itunes and itunes it telling me that i have to restore my iphone.  what can i do? i dont want to lose all my pictures and stuff like that.

    Something went wrong with the update, this can and does happen with every version of iOS.
    There is nothing wrong with the update.
    Simply restore the device via iTunes on the computer.
    If iTunes is stating it will take hours to update, that indicates an extremely slow Internet connection and is likely the reason the OTA update failed.

  • Does the ipod nano 7th gen work with Belkin Blue tooth In car hands free? Customer support said it did when I bought it, but the box doesn't say it does and I dont want to open it in case I have to return it.

    Does the ipod nano 7th gen work with Belkin Blue tooth In car hands free? Customer support said it did when I bought it, but the box doesn't say it does and I dont want to open it in case I have to return it.

    If the Belkin supports the A2DP (Stereo Bluetooth) profile then it will work.

Maybe you are looking for

  • Start Routine in Transformations

    Hi, For my reporting purpose i need to Transfer data from Cube to DSO I need a start routine for the following requirment when transfering data from Cube to DSO The Key fields in DSO are Location & Emp_ID and Date fields are ZAP_DTE (DATS) CUBE-->DSO

  • System Preferences Sharing – what is the default security setup?

    Hi I have been searching for documentation about whether or not the services offered in System Preferences > Sharing is securely encrypted or not. I know that the Remote Login is just SSH, and that is considered secure. But what about Screen Sharing

  • Switch for showing my telephonenumber locked

    The switch for showing my number is locked. My iPhone shows unknown number when I call someone. I think it has something to do with my iCloud account. I tried to put my SIM card into another iPhone and my number showed. So I got a new iPhone and down

  • Crystal 8.5 report not displaying graphs

    I have an issue where a client is using MYOB RetailManager v8 which uses Crystal 8.5 engine. I have written a report that includes Graphs for him. The report works fine on PC with Crystal 8.5 or XI installed but does not print graphs on PC with the M

  • Property Inspector - Missing

    How do I load the Property Inspector?  It was there, but now it is not.  I checked Adobe help file.  They talk about the P.I. and how to use it, but they do not say anything about how to load it back onto your window if it does not appear.  (I even r