You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by apratim sharma <hi...@yahoo.com> on 2003/03/06 09:12:08 UTC

about proper WEB.XML ????

hi !

i have properly installed tomcat but i'm not able to
run my own servlets. that is probably because of
web.xml file. i don't know how to create a proper
web.xml file for a servlet. i'm using mac os x 10.2

please help me !!!! it's urgent

__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/

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


Re: about proper WEB.XML ????

Posted by Andoni <an...@indigo.ie>.
you don't actually NEED any of the entries on the web.xml file. but you do
need the file so use this for now and see how you get on.

Andoni.


<?xml version="1.0" encoding="UTF-8"?>
<!--
                Sun Public License Notice

The contents of this file are subject to the Sun Public License
Version 1.0 (the "License"). You may not use this file except in
compliance with the License. A copy of the License is available at
http://www.sun.com/

The Original Code is NetBeans. The Initial Developer of the Original
Code is Sun Microsystems, Inc. Portions Copyright 1997-2000 Sun
Microsystems, Inc. All Rights Reserved.
-->


<!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>
<!-- Here's where the tags go. -->
</web-app>




----- Original Message -----
From: "apratim sharma" <hi...@yahoo.com>
To: <to...@jakarta.apache.org>
Sent: Thursday, March 06, 2003 8:12 AM
Subject: about proper WEB.XML ????


> hi !
>
> i have properly installed tomcat but i'm not able to
> run my own servlets. that is probably because of
> web.xml file. i don't know how to create a proper
> web.xml file for a servlet. i'm using mac os x 10.2
>
> please help me !!!! it's urgent
>
> __________________________________________________
> Do you Yahoo!?
> Yahoo! Tax Center - forms, calculators, tips, more
> http://taxes.yahoo.com/
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
>
>


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


Re: about proper WEB.XML ????

Posted by Jens Skripczynski <sk...@myrealbox.com>.
apratim sharma:
> i have properly installed tomcat but i'm not able to
> run my own servlets. that is probably because of
> web.xml file. i don't know how to create a proper
> web.xml file for a servlet. i'm using mac os x 10.2
> 
> please help me !!!! it's urgent
Which Tomcat version are you using ?

It may be, that you need to activate (by removing <!-- --> in the
server side web.xml)
--------- web.xml-----
    <servlet-mapping>
       <servlet-name>invoker</servlet-name>
       <url-pattern>/servlet/*</url-pattern>
    </servlet-mapping>
--------- web.xml-----
So that you can access your servlet from
http://server:port/application/servlet/your-handmade-servlet

The invoker servlet is commented you in tomcat v. 4.1.8.

Ciao

Jens Skripczynski
-- 
E-Mail: skripi(at)myrealbox(dot)com

Technology is a constand battle between manufacturers producing bigger and
more idiot-proof systems and nature producing bigger and better idiots.
                                -- Slashdot signature


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