I just don't getit.
I am using "serverAddress = new URL("http://localhost:8080/Paperless/servlet/Paperless/");" the idea is to invoke the url-pattern "servlet/Paperless" in the war file "Paperless".
I am using
in my web.xml file. It associates the url
pattern "servlet/Paperless" with the name "Paperless". In the servlet tag this name is associated with class com.paperless.Paperless. This class exists in WEB-INF/classes. It should find this calls, but I am getting a 404 error in the tomcat log which tells me thta the resource is not found and In Java I get "java.io.FileNotFoundException:
http://localhost:8080/Paperless/servlet/Paperless/".
When I use "serverAddress = new URL("http://localhost:8080/Paperless/" )"I get the text of the index.jsp file in <welcome-file> in web.xml, so "http://localhost:8080/Paperless/" is a web address (I should know that because 404 means that the request was received).
I am getting the same error with Tomcat and GlassFish. I don't know what I am doing wrong in the web.xml file. I really need the help of an expert.