Author
HTTP Status 404 - Servlet YardelligentServlet is not available
krishnan rag
Greenhorn
Joined: Aug 10, 2005
Posts: 3
Hi after lohin page i am not getting the respective pages i am getting the error like HTTP Status 404 - Servlet YardelligentServlet is not available type Status report message Servlet YardelligentServlet is not available description The requested resource (Servlet YardelligentServlet is not available) is not available. Apache Tomcat/5.0.30 can u suggess me some results bye
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35443
posted Aug 11, 2005 02:09:00
0
Is the servlet configured and mapped in web.xml? Is the corresponding class file present in the WEB-INF/classes directory? If yes to both questions, were there maybe errors in initializing it?
Android apps – ImageJ plugins – Java web charts
Balaji Loganathan
author and deputy
Bartender
Joined: Jul 13, 2001
Posts: 3150
posted Aug 11, 2005 05:56:00
0
Thanks for replying Ulf. Krishnan, This is a question related to servlet and not webservices. I am moving this thread to the servlet forum. Thanks Balaji
Balaji Loganathan
author and deputy
Bartender
Joined: Jul 13, 2001
Posts: 3150
posted Aug 11, 2005 06:23:00
0
BTW Welcome to Javaranch Krishnan. You are on the right place
Daniel Rhoades
Ranch Hand
Joined: Jun 30, 2004
Posts: 186
If you still have problems post web.xml and the URL you are using to access the servlet
Drinking more tea is the key...
krishnan rag
Greenhorn
Joined: Aug 10, 2005
Posts: 3
address is-- http://localhost:9000/YARDELLIGENT_WEB/logon.do my web.xml is <?xml version="1.0" encoding="UTF-8"?> <!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 id="WebApp"> <display-name>YARDELLIGENT_WEB</display-name> <servlet> <servlet-name>action</servlet-name> <servlet-class>org.apache.struts.action.ActionServlet</servlet-class> <init-param> <param-name>config</param-name> <param-value>/WEB-INF/struts-config.xml</param-value> </init-param> <init-param> <param-name>debug</param-name> <param-value>2</param-value> </init-param> <init-param> <param-name>detail</param-name> <param-value>2</param-value> </init-param> <init-param> <param-name>validate</param-name> <param-value>true</param-value> </init-param> <load-on-startup>2</load-on-startup> </servlet> <servlet> <servlet-name>YardelligentServlet</servlet-name> <servlet-class> com.cts.yardelligent.web.standard.controller.YardelligentServlet</servlet-class> <init-param> <param-name>application</param-name> <param-value>com.cts.yardelligent.web.standard.config.ApplicationResources</param-value> </init-param> <init-param> <param-name>config</param-name> <param-value>/WEB-INF/struts-config.xml</param-value> </init-param> <init-param> <param-name>ApplicationResources</param-name> <param-value>com.cts.yardelligent_web.resources.ApplicationResources</param-value> </init-param> <init-param> <param-name>debug</param-name> <param-value>2</param-value> </init-param> <init-param> <param-name>detail</param-name> <param-value>2</param-value> </init-param> <init-param> <param-name>validate</param-name> <param-value>true</param-value> </init-param> <load-on-startup>2</load-on-startup> </servlet> <servlet> <servlet-name>DamageXMLServlet</servlet-name> <servlet-class>com.cts.yardelligent.web.standard.xmlhandlers.DamageXMLServlet</servlet-class> </servlet> <servlet> <servlet-name>ImageServlet</servlet-name> <display-name>ImageServlet</display-name> <servlet-class>com.cts.yardelligent.web.standard.utils.ImageServlet</servlet-class> </servlet> <servlet> <servlet-name>SilhouetteMaster</servlet-name> <display-name>SilhouetteMaster</display-name> <servlet-class>com.cts.yardelligent.web.standard.xmlhandlers.SilhouetteMaster</servlet-class> </servlet> <servlet> <servlet-name>RFIDInbound</servlet-name> <display-name>RFIDInbound</display-name> <servlet-class>com.cts.yardelligent.web.standard.inbound.RFIDInbound</servlet-class> </servlet> <servlet-mapping> <servlet-name>YardelligentServlet</servlet-name> <url-pattern>*.do</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>DamageXMLServlet</servlet-name> <url-pattern>/DamageXMLServlet</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>DamageXMLServlet</servlet-name> <url-pattern>*.sil</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>SilhouetteMaster</servlet-name> <url-pattern>/SilhouetteMaster</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>ImageServlet</servlet-name> <url-pattern>/ImageServlet</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>SilhouetteMaster</servlet-name> <url-pattern>*.msl</url-pattern> </servlet-mapping> <servlet-mapping> <servlet-name>RFIDInbound</servlet-name> <url-pattern>/RFIDInbound</url-pattern> </servlet-mapping> <welcome-file-list> <welcome-file>jsp/en/pc/security/LoginServer.jsp</welcome-file> </welcome-file-list> <taglib> <taglib-uri>/WEB-INF/struts-bean.tld</taglib-uri> <taglib-location>/WEB-INF/struts-bean.tld</taglib-location> </taglib> <taglib> <taglib-uri>/WEB-INF/struts-html.tld</taglib-uri> <taglib-location>/WEB-INF/struts-html.tld</taglib-location> </taglib> <taglib> <taglib-uri>/WEB-INF/struts-logic.tld</taglib-uri> <taglib-location>/WEB-INF/struts-logic.tld</taglib-location> </taglib> <taglib> <taglib-uri>/WEB-INF/struts-template.tld</taglib-uri> <taglib-location>/WEB-INF/struts-template.tld</taglib-location> </taglib> <taglib> <taglib-uri>/WEB-INF/struts-nested.tld</taglib-uri> <taglib-location>/WEB-INF/struts-nested.tld</taglib-location> </taglib> <taglib> <taglib-uri>/WEB-INF/struts-tiles.tld</taglib-uri> <taglib-location>/WEB-INF/struts-tiles.tld</taglib-location> </taglib> </web-app>
Ola Daniel
Ranch Hand
Joined: Jul 27, 2005
Posts: 105
<servlet-mapping> <servlet-name>YardelligentServlet</servlet-name> <url-pattern>*.do</url-pattern> </servlet-mapping>
I think next time you should post just the portion of the code that has to do with the YardelligentServlet. Anyways, I know that if yu rewrite the above protion this way: it should work.
SCJP 1.4, SCWCD 1.4
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand."
- Martin Fowler et al, Refactoring: Improving the Design of Existing Code, 1999
Ulf Dittmer
Marshal
Joined: Mar 22, 2005
Posts: 35443
posted Aug 12, 2005 04:01:00
0
You seem to be mixing Struts setup and your setup. Using Struts I would expect something like somewhere in the file, while your servlet should not be mapped to *.do (unless it replaces/extends the Struts servlet). [ August 12, 2005: Message edited by: Ulf Dittmer ]
krishnan
Greenhorn
Joined: Nov 09, 2001
Posts: 8
posted Aug 15, 2005 23:27:00
0
Hi, after modifying the code also i am getting the same error Do i neet to chang e anything in struts-config.xml? Thank you
Shitij Agarwal
Greenhorn
Joined: Dec 09, 2004
Posts: 21
Most likely, u don't have the jar files in your WEB_INF/lib directory.
Bear Bibeault
Author and ninkuma
Marshal
Joined: Jan 10, 2002
Posts: 56554
"krishnan" and "Shitij", There aren't many rules that you need to worry about here on the Ranch, but one that we take very seriously regards the use of proper names. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it. In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious. Thanks! bear Forum Bartender
[Smart Questions ] [JSP FAQ ] [Books by Bear ] [Bear's FrontMan ] [About Bear ]
subject: HTTP Status 404 - Servlet YardelligentServlet is not available