tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kenneth Westelinck" <kennywe...@hotmail.com>
Subject Re: servlet init problem.
Date Thu, 22 Mar 2001 11:40:06 GMT
Hi,


Have you created a mapping for your servlet? In your context there should be 
a web.xml file. There should be something like this:

<servlet>
	<servlet-name>AServlet</servlet-name>
	<servlet-class>the.name.of.the.Servlet</servlet-class>
	<init-param>
		<param-name>AParameter</param-name>
		<param-value>AValue</param-value>
	</init-param>
</servlet>

<servlet-mapping>
	<servlet-name>AServlet</servlet-name>
	<url-pattern>/AServlet</url-pattern>
</servlet-mapping>


hope this helps,

Kenneth Westelinck

>From: "Pradeep Kumar" <pradeepk@mindtree.com>
>Reply-To: tomcat-user@jakarta.apache.org
>To: <tomcat-user@jakarta.apache.org>
>Subject: servlet init problem.
>Date: Thu, 22 Mar 2001 16:38:31 +0530
>
>Hi all,
>I am using tomcat 3.2.1 with IIS web server on a win2k box. I am able to
>execute the sample servlet and JSP.
>I have context under webapp called at. I am able to see my JSP pages for 
>this
>context. However I am not able to execute my servlet. Its not even getting
>initialized (I see no printing on the server console). On my browser I get
>the error 405, "Resource not allowed" when I try to call my servlet.
>
>Your help here is highly appreciated.
>
>Thanks,
>pradeep

_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.


Mime
View raw message