I have tried the suggested remedies. My application's web.xml has the
following addition:
<servlet-mapping>
<servlet-name>addDataServlet</servlet-name>
<url-pattern>/com/scheduler/addDataServlet</url-pattern>
</servlet-mapping>
and I have uncommented the server's web.xml to
<servlet-mapping>
<servlet-name>invoker</servlet-name>
<url-pattern>/servlet/*</url-pattern>
</servlet-mapping>
and I have restarted my tomcat. But the same problem persists.
The version of my tomcat is: jakarta-tomcat-4.1.27
Where can I be still going wrong?
Regards,
Anunay Ashish.
----- Original Message -----
From: "drm" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Sent: Monday, October 06, 2003 2:51 PM
Subject: Re: Unable to open the servlet.
> hi :)
>
> As far as i can tell you are missing a servlet-mapping in your web.xml.
> A servlet uri should also be mapped to a specific servlet.
>
> Try including:
>
> <servlet-mapping>
> <servlet-name>addDataServlet</servlet>
> <url-pattern>/com/scheduler/addDataServlet</url-pattern>
> </servlet-mapping>
>
> in your web.xml file.
>
> If this doesn't work, please state your tomcat version.
>
> hth :)
>
> -- drm
>
> anunay ashish wrote:
>
> > Hi,
> > My servlet is placed at:
> > C:\Program Files\Apache Group\Tomcat
> > 4.1\webapps\Tracking_system\WEB-INF\classes\com\scheduler
> > with the name addDataServlet
> >
> > My web.xml is as follows:
> > <web-app>
> > <servlet>
> > <servlet-name>
> > addDataServlet
> > </servlet-name>
> > <servlet-class>
> > com.scheduler.addDataServlet
> > </servlet-class>
> > </servlet>
> > <welcome-file-list>
> > <welcome-file>pageFormat.jsp</welcome-file>
> > </welcome-file-list>
> > <web-app>
> >
> > I am calling it from my JSP page as:
> > <form action="servlet/com/scheduler/addDataServlet" method="Post">
> > <input type="text" name="newPageFormat">
> > <input type="Submit" name="submitButton" value="Submit">
> > </form>
> >
> > But on clicking the submit button it takes me to:
> > HTTP Status 404 - /com/scheduler/addDataServlet
> >
>
--------------------------------------------------------------------------
-
> > -
> >
> > type Status report
> >
> > message /com/scheduler/addDataServlet
> >
> > description The requested resource (/com/scheduler/addDataServlet) is
not
> > available.
> >
> >
>
--------------------------------------------------------------------------
-
> > -
> >
> > Apache Tomcat/4.1.27
> >
> > The text in the file localhost_log.2003-10-06.txt in logs folder
> > corresponding to the above error message is:
> > 2003-10-06 12:36:19 WebappLoader[/Tracking_system]: Deploy class files
> > /WEB-INF/classes to C:\Program Files\Apache Group\Tomcat
> > 4.1\webapps\Tracking_system\WEB-INF\classes
> > 2003-10-06 12:36:19 StandardManager[/Tracking_system]: Seeding random
number
> > generator class java.security.SecureRandom
> >
> > Please suggest me the remedy for this.
> > Regards,
> > Anunay Ashish.
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]