tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Charles Sabourdin <zouy...@yahoo.com>
Subject Re: Re config files
Date Wed, 13 Sep 2000 10:04:02 GMT

--- david <ymidt@yahoo.com> wrote:
> Thanks for the help attempts.
> I can get .jsp files to run, but not servlets!!!! 
> Help!
> 
> I have my stuff in /webapps/tasp  with the
> appropriate dir structure
> I have a web.xml file under /webapps/tasp/web-inf:
>   <?xml version="1.0" encoding="ISO-8859-1"?>
>   <!DOCTYPE web-app
>       PUBLIC "-//Sun Microsystems, Inc.//DTD Web
> Application 2.2//EN"
>      
> "http://java.sun.com/j2ee/dtds/web-app_2.2.dtd">
>   <web-app>
>        <servlet>
>         <servlet-name>ServletTest</servlet-name>
>           <servlet-class>ServletTest</servlet-class>
>        <servlet-mapping>
>            <servlet-name>ServletTest</servlet-name>
>            <url-pattern>ServletTest</url-pattern>
>        </servlet-mapping>
>        </servlet>
>   </web-app>
> my servlet ServletTest.java and ServletTest.class
> are under /webapps/tasp/web-inf/
they should be under 
/webapps/tasp/web-inf/classes/
> 
> the .jsp that runs is just under /webapps/tasp

> 
> the server.xml has an added context:
> 
>         <Context path="/tasp" docBase="webapps/tasp"
> debug="9" reloadable="true" > 
>         </Context>
> 
> the tomcat.log file is saying:
>   Context log: path="/tasp" In error handler 404
> null / R( /tasp +  + /ServletTest)
>   Context log: path="/tasp" Error: Calling servlet
> Wrapper(tomcat.errorPage
> S:org.apache.tomcat.servlets.DefaultErrorPage)
> Any ideas what I'm missing to serve my servlets??? 
> I have tried with "demo" servlets with no
> difference...
then http://localhost:8080/tasp/servlet/ServletTest?


__________________________________________________
Do You Yahoo!?
Yahoo! Mail - Free email you can access from anywhere!
http://mail.yahoo.com/

Mime
View raw message