• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

HTTP Status 404 - Servlet YardelligentServlet is not available

 
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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?
 
author and deputy
Posts: 3150
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 3150
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
BTW Welcome to Javaranch Krishnan. You are on the right place
 
Ranch Hand
Posts: 186
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If you still have problems post web.xml and the URL you are using to access the servlet
 
krishnan rag
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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>
 
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


<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.
 
Ulf Dittmer
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ]
 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Most likely, u don't have the jar files in your WEB_INF/lib directory.
 
Sheriff
Posts: 67749
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
"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
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic