wood burning stoves 2.0*
The moose likes Servlets and the fly likes HTTP Status 404 - Servlet YardelligentServlet is not available Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Servlets
Bookmark "HTTP Status 404 - Servlet YardelligentServlet is not available" Watch "HTTP Status 404 - Servlet YardelligentServlet is not available" New topic
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: 42024
    
  64
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?


Ping & DNS - my free Android networking tools app
Balaji Loganathan
author and deputy
Bartender

Joined: Jul 13, 2001
Posts: 3150
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
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: 42024
    
  64
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
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: 61298
    
  66

"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


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: HTTP Status 404 - Servlet YardelligentServlet is not available