I have web application in which I use a ear file. My servlet classes are in the ear file and not in the webcontainer i.e WEB_INF foldar. When I run this application from my local machine it works like a charm. The jsps can access this servlet but when I move my application to the server, the jsps cannot access the servlet and I get 404 erro which says file not found.
Is it mandatory that the servlet classes should be in the WEB-INF folder?
I will apprecitate any help reg. this
When you develop an web application, you should following the directory structure.
WEB-INF/classes/<servlet classing> WEB-INF/web.xml WEB-INF/jboss-web.xml <other jsp or html files>