• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

compiled the servlet - I have - how do I run it - please help!!!!!

Ranch Hand
Posts: 185
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have almost reached breaking point. I feel like my head is about to explode.
I have managed to install tomcat and the jdk.
I have written a servlet and much to my astonishment it compiles!!
Now I have put the class file in
but when I user the URL http://localhost/servlet/hello
I get an error message. Do I have to edit the web.xml file. If so you could someone please post the code.
Please let me know
Ranch Hand
Posts: 174
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
put your MyServlet.class into 'classes' folder.
And 'classes' must be into WEB_INF like this :
and try by writing http://localhost:8080/ROOT/servlet/MyServlet
it must work.
I wasn't selected to go to mars. This tiny ad got in ahead of me:
Thread Boost feature
    Bookmark Topic Watch Topic
  • New Topic