Last week, we had the author of TDD for a Shopping Website LiveProject. Friday at 11am Ranch time, Steven Solomon will be hosting a live TDD session just for us. See for the agenda and registration link
I am writing my first web app and am experiencing an issue with a servlet (I only have one ). When accessing my servlet via URL, I receive the below error:
HTTP Status 404 - /TiffanyPadilla/servlet/HelloWho
type Status report
description The requested resource (/TiffanyPadilla/servlet/HelloWho) is not available.
I have completed the following in order to make (or try to make) it work:
Edit the web.xml file for the web app (located at TiffanyPadilla.war/WEB-INF/lib/web.xml):
Created a context.xml (located at TiffanyPadilla.war/META-INF/context.xml):
Thanks for the reply. In order to secure the server, I have left the servlet for the Invoker commented out in the jboss server xml file, and allowed it explicitly in this web app. Unfortunately, this is for a my Advanced Java class and can't get around allowing this. I need to be able to call a servlet explicitly via the browser.
I appreciate your help. I've actually read and re-read the posts mentioned, but I can't seem to enable invoking my individual servlet. This is just for a class, and running on my Mac, so I'm not worried about security. If someone has another idea about how I can enable the ability to invoke my servlet via browser I would greatly appreciate it. For now, I took your advice and removed the invoker servlet from my web.xml and placed my individual HelloWho servlet in a package called Hello.
Any other suggestions? I'm still faced with a 404.