>> hi i have a situation where i am not able to run any servlets on
>> tomcat................. first there is no "classes" folder within the
[quoted text clipped - 10 lines]
> And you have to add your servlet (with <servlet> and <servlet-mapping>
> tags) in your web.xml
Also, one does not normally use the ROOT application. One deploys
separate apps parallel to ROOT, directly under /webapps/ folder. Most
practical guides I've seen say to delete the ROOT folder so it can't be
used as an exploit.
Unless I misunderstand completely what you are trying to do...
crazzybugger - 20 Aug 2006 08:40 GMT
> >> hi i have a situation where i am not able to run any servlets on
> >> tomcat................. first there is no "classes" folder within the
[quoted text clipped - 17 lines]
>
> Unless I misunderstand completely what you are trying to do...
i am quite new to web applications and this is my first try with
servlets....... basically i need the servlets for uploading data as
well as registering new users........along with some authentication
routines
William Brogden - 20 Aug 2006 17:04 GMT
>>> hi i have a situation where i am not able to run any servlets on
>>> tomcat................. first there is no "classes" folder within the
>>> /webapps/ROOT/ folder............
>>> so i created one......and added the class files...........however when
>>> i try http://localhost:8080/servlet/servletName i am getting an error
That URL is using the "invoker servlet" syntax - the cause of much beginner
grief. Invoker used to be turned on in early Tomcat distributions and thus
this syntax appears in early books. See this Javaranch FAQ discussion:
http://faq.javaranch.com/view?InvokerServlet
>>> sayin resource not found............i find it very annoying and i tried
>>> moving the class files in and out of the folders but no magic
[quoted text clipped - 10 lines]
>
> Unless I misunderstand completely what you are trying to do...
ROOT is simply Tomcat's convention for the "/" location - there is utterly
no reason to delete it, just substitute your own web application.
Bill