Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 11-04-2003, 07:43 PM   #1
LQ Newbie
Registered: Oct 2003
Posts: 24

Rep: Reputation: 15
Question Tomcat + Servlets configuration nightmare

I'm trying to get Tomcat to work with my servlets.
I'm using my own directory under $TOMCAT_HOME/webapps/ called "search" (I added the search directory to the server.xml file - this works fine)
I have WEB-INF, lib and classes directories, with my test servlet in the classes directory called "StaffLoginServlet.class" which is supposed to get called from"admlogin.html" in the $TOMCAT_HOME/webapps/search/ directory.

However i get a 404 message from Tomcat saying it can't find it:
description The requested resource (/search/servlet/StaffLoginServlet) is not available.

I have a web.xml in the search/WEB-INF directory:
<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE web-app
PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"

i didn't specify the servlet as i don't think i would need to (as it's not under a package), but even if i specify it didn't work.

i've read all docs, no help, and i need help quick.
please help me so you can turn into

Last edited by lethalinjection; 11-04-2003 at 07:44 PM.
Old 11-04-2003, 08:12 PM   #2
Registered: Feb 2001
Location: Boston, USA
Distribution: Slackware
Posts: 437

Rep: Reputation: 30
I can't remember how to get Tomcat running, but if you don't get much help here, you might want to try

It's a java site, but there is a forum for configuring Tomcat, if I recall correctly.
Old 11-04-2003, 08:18 PM   #3
LQ Newbie
Registered: Oct 2003
Posts: 24

Original Poster
Rep: Reputation: 15
the problem was the URL pattern

so i put this: <servlet-name>StaffLoginServlet</servlet-name>

now it finds it!!!
i get a 500 error now, but that's a problem for another day
appreciate your help


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Apache and Tomcat Configuration Problem inspiration Linux - Software 0 04-19-2004 01:46 AM
Postfix configuration nightmare Swift&Smart Linux - Software 18 12-24-2003 02:58 AM
Tomcat configuration gballsch Linux - Software 7 04-24-2003 02:58 PM
Apache-Tomcat Configuration Bond2312 Linux - Software 1 08-29-2001 10:46 PM
Apache Tomcat configuration gilbert_on_line Linux - General 0 04-18-2001 06:48 AM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:57 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration