• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

My first servlet won't load

 
Ola Kesh
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
My first servlet program on page 30/31 of HFSJ won't load. I have done checked the code and it kept giving me HTTP 404-page.
I noticed that i am using a tomcat that is bundled with my netbeans. could tis be the problem? the tomcat server is running but it wont load the very first example, and i want to sort this out before i move on.
Do i need to uninstall netbeans or just install tomcat alone?
Finally, i noticed my tomcat home is set to "CATALINA_HOME", and HFSJ request a TOMCAT_HOME. could this be a problem?
 
Marc Peabody
pie sneak
Sheriff
Posts: 4727
Mac Ruby VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You might want to verify that the server is working before venturing on your own code. Tomcat comes packaged with some examples. Seeing these should be your first step.
 
Ola Kesh
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Marc for that idea. i noticed there were no examples in my tomcat/Netbeans bundle. i simply downloaded tomcat 6, and disable the tomcat that was bundled with the netbeans and my code worked perfectly well.
Now i can move on.
Thanks once again.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic