Thursday, 19 September 2013

Java servelet issue when changing src folder path

Java servelet issue when changing src folder path

I'm new to Java inherited a project that is in dire need of some
refactoring. One of the issues is the src has a couple unnecessary folders
e.g. "src/Alpha/Beta/ClassGroupFolders". I want to get rid of folders
"Alpha" and "Beta" since they have nothing in them. This means my class
paths will no longer be "Alpha.Beta.ClassGroup.ClassName" They will be
"ClassGroup.ClassName". I moved the ClassGroup folders up two levels and
did a global replace to change "Alpha.Beta.ClassGroup" to just
"ClassGroup" and did the same for "Alpha/Beta/ClassGroup".
Eclipse is showing no errors but when a servlet is being called I'm
getting "HTTP Status 404 - Servlet Logon is not available". It worked
before I changed the folder structure and that is the only change. My
web.xml file has an entry for the servlet that is being called by the form
and the servlet-class node has been updated to match the updated folder
structure. I'm sorry I can't provide more information on how the site is
set up but I can tell you it's not using struts. It's using inline code in
the JSP files for the most part.
What can I do to track down the source of this issue?

No comments:

Post a Comment