Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 91617 invoked from network); 3 Aug 2002 20:21:58 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 3 Aug 2002 20:21:58 -0000 Received: (qmail 12216 invoked by uid 97); 3 Aug 2002 20:13:34 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@jakarta.apache.org Received: (qmail 12200 invoked by uid 97); 3 Aug 2002 20:13:32 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 12188 invoked by uid 98); 3 Aug 2002 20:13:32 -0000 X-Antivirus: nagoya (v4198 created Apr 24 2002) Message-ID: <000a01c23b21$ccc3f8b0$1472a8c0@daliso> From: "Daliso Zuze" To: "Tomcat Users List" References: <5.1.0.14.2.20020803120353.03e6b070@shell.visi.com> Subject: Re: Servlet directory Date: Sat, 3 Aug 2002 21:13:05 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2462.0000 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2462.0000 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Thanks, I got it working now, I had misplaced the classes directory. Daliso ----- Original Message ----- From: "Jacob Kjome" To: "Tomcat Users List" Sent: Saturday, August 03, 2002 7:18 PM Subject: Re: Servlet directory > The way you are trying to access this servlet implies a couple of assumptions: > > 1. Your servlet is in the default package. That is to say that it exist > in WEB-INF/classes and not some directory deeper inside of that. > > 2. Your class is all lower case "myservlet" since that is how it is > written on the URL your provided below. > > I think it is probably likely that #1 is true. However, I'm guessing that > #2 is not. The general practice for naming classes is to use Capital > letters for each distinct part of the class name. For instance, you > probably named your class "MyServlet", not "myservlet". As such, the URL > you provided won't work. It should be: > > http://localhost:8080/myapp/servlet/MyServlet > > Note that and entries in your own web.xml have > nothing in particular to do with accessing your class through Tomcat's > default servlet invoker which is mapped to /[your context]/servlet/*. > > The other thing you should look at is that the directory that your app is > running out of exists in: > > "$TOMCAT_HOME/webapps/myapp" > > make sure that "myapp" is in all lower case. > > > Oh, and make sure that there are no spaces in $TOMCAT_HOME. If you have it > installed in a directory like "Program Files", you can do the following (on > Windows). I'll use my setup as an example. > > $CATALINA_HOME=C:\Progra~1\Apache~1\Jakarta\tomcat-4.1.8 > > The original path is: > C:\Program Files\Apache Group\Jakarta\tomcat-4.1.8 > > Just use the tilde's to fix directory names which have spaces. The names > with tilde's can be no more than 8 chars long. > > Restart Tomcat after using the hints above and things should work just fine. > > Jake > > > At 10:51 AM 8/3/2002 +0200, you wrote: > >I have put some servlet classes in my web applications classes directory, > >however when I try to access it via the url > >http://localhost:8080/myapp/servlet/myservlet it does not work. It seems > >to only work when I put the classes in the default ROOT web app and access > >it via http://localhost:8080/servlet/myservlet. > > > >Is there a way of configuring tomcat to make it work from the first url??? > -- To unsubscribe, e-mail: For additional commands, e-mail: