Women in Technology

Hear us Roar



Article:
  Deploying Web Applications to Tomcat
Subject:   problem with accessing servlets in subfolders
Date:   2003-11-23 11:51:13
From:   anonymous2
Response to: problem with accessing servlets in subfolders

Take a look at my comment...it seems I am not the only one with problems. You have to reference the servlet with


"/web-app-dir/servlet/servletname"


rather than "/servlet/servletname"


Otherwise Tomcat won't look in your /classes subfolder.


-Chris (coldfusion78_AT_yahoo.com)

Full Threads Oldest First

Showing messages 1 through 2 of 2.

  • how to set a path in servlets
    2008-06-04 19:40:34  vineela1289 [View]

    please tell me how to set a path .
  • problem with accessing servlets in subfolders
    2005-03-04 23:34:27  BajuRam [View]

    hi Chris,
    thanx for your response.
    I did the things you have suggested, but its not working. The server is'nt responding for the classes present in the subfolders of the default directory for classes.

    The default URL for Tomcat would be like this http://localhost:8080/examples/servlet/home for the home.class file present in c:\Program Files\Apache Tomcat 4.0\webapps\examples\web-inf\classes\. I want to access the classfile present in c:\Program Files\Apache Tomcat 4.0\webapps\examples\web-inf\classes\home\a\a1\a11 through the URL http://localhost:8080/examples/servlet/home/a/a1/a11.
    Thank u Chris for all the concern.
    bye n take care.