tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Turner <tomcat-u...@johnturner.com>
Subject Re: web.xml question
Date Mon, 14 Jul 2003 15:06:00 GMT

http://jakarta.apache.org/tomcat/faq/misc.html#invoker

You'll need to map your servlet to a URL.

John

On Mon, 14 Jul 2003 17:02:17 +0200, Astrid Wagner 
<Astrid.Wagner@motorola.com> wrote:

> Hi,
> This is an (hopefully) easy question:
> I run my new web application but do not seem to get the servlet to run.
> I can run a simple index.html page (machine:port>/<my-web- 
> appl>/index.html) within my web application installation so 
> $CATALINA_HOME/webapps/<my-web-appl>/index.html is
> found. But when I try to call a servlet having simply in web.xml:
> <!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 
> 2.3//EN" "http://java.sun.com/dtd
> /web-app_2_3.dtd">
> <web-app>
> <servlet>
> <servlet-name>RegEntryPage</servlet-name>
> <servlet- 
> class>com.mot.sps.ipr.ipConsumer.registration.RegEntryPage</servlet- 
> class>
> </servlet>
> </web-app>
>
> and by calling it in the browser with <machine:port>/<my-web- 
> appl>/RegEntryPage
>
> it fails. Has someone a quick answer?
> The log file simply says:
> Mapping contextPath='/iprweb' with requestURI='/iprweb/RegEntryPage'
> and relativeURI='/RegEntryPage'
> 2003-07-14 17:00:40 StandardContext[/iprweb]:   Trying exact match
> 2003-07-14 17:00:40 StandardContext[/iprweb]:   Trying prefix match
> 2003-07-14 17:00:40 StandardContext[/iprweb]:   Trying extension match
> 2003-07-14 17:00:40 StandardContext[/iprweb]:   Trying default match
> 2003-07-14 17:00:40 StandardContext[/iprweb]:  Mapped to servlet 
> 'default' with servlet path '/RegEntryPage' and path info 'null' and 
> update=true
>
> Thanks.
>
> Astrid
>



-- 
Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/

---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message