Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 22638 invoked by uid 500); 29 Jun 2001 22:37:46 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk Reply-To: tomcat-user@jakarta.apache.org list-help: list-unsubscribe: list-post: Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 22580 invoked from network); 29 Jun 2001 22:37:40 -0000 Received: from prof-sollution-2.ser.netvision.net.il (HELO server1.proficiency.com) (212.143.114.158) by h31.sny.collab.net with SMTP; 29 Jun 2001 22:37:40 -0000 Received: by server1.proficiency.co.il with Internet Mail Service (5.5.2653.19) id ; Sat, 30 Jun 2001 01:38:40 +0200 Message-ID: <31D1BDACC5F2D311A5320008C79FA210F27BC7@server1.proficiency.co.il> From: Eitan Ben Noach To: tomcat-user@jakarta.apache.org Subject: RE: Using the element on web.xml to define short name f or a servlet in a package Date: Sat, 30 Jun 2001 01:38:38 +0200 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" X-Spam-Rating: h31.sny.collab.net 1.6.2 0/1000/N Thanks Michael, The servlet-mapping element did solve the problem, although I've to put a short web.xml containing this mapping in the webapps/admin/web-inf/ directory. Adding this mapping to the main web.xml under the tomcat root directory, didn't help. Is it suppose to behave like this? Now, I'm trying to do the same but now with Apache as the HTTP server ( till now I was running tomcat standalone ). It seems that there is need for another change, since that in the new combination http://localhost/admin/controller does not work - maybe apache does not delegates the name 'controller' to Tomcat. What should I do? Thanks, Eitan > -----Original Message----- > From: Michael Wentzel [mailto:Michael.Wentzel@aswethink.com] > Sent: Friday, June 29, 2001 10:48 PM > To: 'tomcat-user@jakarta.apache.org' > Subject: RE: Using the element on web.xml to define > short name > f or a servlet in a package > > > > I put a package called FTPExplorer.jar under > > /admin/web-inf/lib containing > > the servlet named > > com.company.ftpexplorer.FTPExplorerServlet.class > > > > When calling the servlet with following URL: > > http://localhost:8080/admin/servlet/com.company.ftpexplorer.FT > > PExplorerServl > > et > > the servlet works ok. > > > > I've defined the following element on the main > > tomcat web.xml > > > > > > > > controller > > > > > > com.company.ftpexplorer.FTPExplorerServlet > > > > > > > > When trying to call the servlet with either URLs: > > http://localhost:8080/controller > > http://localhost:8080/admin/servlet/controller > > > > Tomcat can't find the servlet ( 404 ) > > > > What is wrong ? > > Creating a servlet name does not create the corresponding > servlet mapping, such as: > > > > controller > > > /controller > > > > then use http://localhost:8080/controller (if you're in the root > context that is). > > --- > Michael Wentzel > Software Developer > Software As We Think - http://www.aswethink.com >