krishnan rag
,
Greenhorn
Aug 10, 2005 23:01:00
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
,
Rancher
Aug 11, 2005 02:09:00
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?
Balaji Loganathan
,
author and deputy
staff
Aug 11, 2005 05:56:00
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
staff
Aug 11, 2005 06:23:00
BTW Welcome to Javaranch Krishnan. You are on the right place
Daniel Rhoades
,
Ranch Hand
Aug 11, 2005 08:09:00
If you still have problems post web.xml and the URL you are using to access the servlet
krishnan rag
,
Greenhorn
Aug 11, 2005 23:20:00
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
Aug 12, 2005 03:31:00
<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
Aug 12, 2005 04:01:00
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
Aug 15, 2005 23:27:00
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
Aug 23, 2005 16:19:00
Most likely, u don't have the jar files in your WEB_INF/lib directory.
Bear Bibeault
,
Sheriff
staff
Aug 23, 2005 16:23:00
"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 touch me. And dont' touch this tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com