htpp 404 error "Servlet as is not available"

htpp 404 error "Servlet as is not available"

hi iam new to struts. when iam running my struts app after filling the login form iam getting "Servlet as is not available". iam unable to find out where the error is.iam pasting my web.xml file below.

<web-app>
<servlet>
<servlet-name>as</servlet-name>
<servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>as</servlet-name>
<url-pattern>*.do</url-pattern>
</servlet-mapping>
</web-app>

pls help me solving it

View Answers

April 18, 2011 at 12:10 PM

u have not given the configuration struts-confog.xml entry in the web.xml pls given the

config /WEB-INF/struts-config.xml

give that it is executed. and also configure the server properly


April 18, 2011 at 1:01 PM

as iam using default name for struts configuration file i.e "struts-config.xml", there is no need to specify the file name in the "web.xml" file. any way thanks for your reply









Related Tutorials/Questions & Answers:
htpp 404 error "Servlet as is not available"
htpp 404 error "Servlet as is not available"  hi iam new to struts. when iam running my struts app after filling the login form iam getting "Servlet as is not available". iam unable to find out where the error is.iam pasting my
htpp 404 error "Servlet as is not available"
htpp 404 error "Servlet as is not available"  hi iam new to struts. when iam running my struts app after filling the login form iam getting "Servlet as is not available". iam unable to find out where the error is.iam pasting my
Advertisements
404 error
404 error  struts application having 404 error while hosting to a online server.it works fine in my local machine but dont work in virtual host.showing 404 error
404 error
404 error  i have 404 error in my addition programe of servlet how should i solve this. i'm using netbean on glassfish server
404 error
404 error  i have 404 error in my addition programe of servlet how should i solve this. i'm using netbean on glassfish server
404 error
404 error   hello anybody help me when i deployed my ear file into jboss->server-> default->deploy folder it doesn't shows any error. but when i run this application by using localhost:8080/webapp ,it shows 404 error
loginform giving 404 error
the submit button the give error is populated. HTTP Status 404 - /login.doADS...loginform giving 404 error  Hi, I am developing a login form code from roseindia.net. i will develop all the formbean class, action class, login.jsp
http 404 resource not found error
http 404 resource not found error   Sir, I have downloaded your... in tomcat manager. But when I try to run I am getting http 404 requested resource not found error. Kindly advise. ss
loacation of errorpage in web.xml for 404 error
loacation of errorpage in web.xml for 404 error   The webpage cannot be found HTTP 404 Most likely causes: â?¢There might be a typing error... to and look for the information you want. More information This error (HTTP 404
custom 404 error page php - PHP
custom 404 error page php  What is this error means: custom 404 error page php
Struts 2 : Http Status Error 404 - Struts
Struts 2 : Http Status Error 404  Hi All, I'm facing the below... --------------------------------------------------------------------------- ERROR(404) : "The requested... error as shown below. see below error for the details code
Still getting the http 404 error - Java Beginners
is userid? Anyway, whatever I do, I still receive the http 404 error...saying...Still getting the http 404 error  Dear experts, I refer... couldn't find the servlet. There is a problem in path. It is better to put the servlet
java http 404 status error - JSP-Servlet
java http 404 status error  I have tried to call a servlet from html page.. but it is showing http 404 status error.. and the description is "The requested resource is not available". I hav tried in all ways.. Plz give me
How do I throw a 404 error from within a java servlet?
How do I throw a 404 error from within a java servlet?  How you can write code in Servlet for throwing the httpd error 404? How to add...-code>404</error-code> <location>/WEB-INF/views/notfound.jsp<
Getting HTTP 404 error in Spring web MVC with Hibernate Integration
Getting HTTP 404 error in Spring web MVC with Hibernate Integration   Hi, i am Getting HTTP 404 error in Spring web MVC with Hibernate Integration after click on submit button. so provide me a better solution.   
error of HTTP Status 404 while running servlet on apache tomcat server
error of HTTP Status 404 while running servlet on apache tomcat server  i have followed the steps given here.Also hava put servlet-api in lib folder... try to run my servlet that is placed in the directories as it has been mentioned
HTTP Status 404 - /web/login/showLogin.action Error in Struts 2 - Struts
HTTP Status 404 - /web/login/showLogin.action Error in Struts 2  Hi... the doLogin action . when I click on the link I get the following error type Status... resource (/web/login/showLogin.action) is not available. Here is the snapshop of my
Error 404 on localhost:8080 Tomcat Apache 6.0.32 with Elipse IDE and IE/Other Browsers
Error 404 on localhost:8080 Tomcat Apache 6.0.32 with Elipse IDE and IE/Other Browsers  HTTP Status 404 - type Status message description... the following: http://localhost:8080 - 404 not found http://localhost:8005 - cannot
error
error  i have 404 error in my program plz tell me yhe solution about
error
error  i have 404 error in my program plz tell me yhe solution about
HTTP Status 404 -
HTTP Status 404 -   HTTP Status 404 - type Status report message description The requested resource () is not available. Apache Tomcat/5.5.31 how to rectify the above error
HTTP Status 404 - Struts
HTTP Status 404   Hello, i am making a program of tiles using Struts2. i face error HTTP Status 404 May 4, 2010 11:31:59 AM...:01 AM org.apache.catalina.core.StandardEngine start INFO: Starting Servlet
HTTP Status 404 - JSP-Servlet
,Suddenly i found my server throwing the following Error: HTTP Status 404...HTTP Status 404  Respected Sir/madam, I am R.Ragavendran.. I... are in the same directory.. Also it was very very sudden error i found.. Before
error
error  while iam compiling iam getting expected error
Error-
Error-   Hello, I would like to know about XSD file. I try to print XML file but I am getting error SAXException-- says Content is not allowed in prolog. Please help me
error
/ServletUserEnquiryForm.shtml getting an error given below SQLException caught: [Microsoft][ODBC SQL Server Driver]COUNT field incorrect or syntax error please suggest
Error
Error  I have created ajax with php for state and city. When I change state then city will not come in dropdown list and it give me error as 'Unknown Runtime Error'. This error come only in IE browser, but in other brower
error
error
error
error  java.lang.unsupportedclassversionerror:bad major version at offset 6 how to solve this????   Hi, Please check the version of framework used and also the JDK version.ADS_TO_REPLACE_1 This type error also comes
error
error  When I deploye the example I have this message cannot Deploy HelloWorld Deployment Error for module: HelloWorld: Error occurred during deployment: Exception while deploying the app [HelloWorld
error!!!!!!!!!
error!!!!!!!!!   st=con.createStatement(); int a=Integer.parseInt(txttrno.getText()); String b=txttname.getText(); String c=txtfrom.getText(); String d=txtto.getText
error!!!!!!!!!
error!!!!!!!!!   st=con.createStatement(); int a=Integer.parseInt(txttrno.getText()); String b=txttname.getText(); String c=txtfrom.getText(); String d=txtto.getText
error!!!!!!!!!
error!!!!!!!!!   st=con.createStatement(); int a=Integer.parseInt(txttrno.getText()); String b=txttname.getText(); String c=txtfrom.getText(); String d=txtto.getText
Error
Error  Hi. I am getting error in the following code after the line I have commented as ERROR. How to solve this. Thanks in advance. package... com.mysql.jdbc.Connection; /** * Servlet implementation class Modifystdfamily */ @WebServlet
Error
Error  Hi. I am getting error in the following code after the line I have commented as ERROR. How to solve this. Thanks in advance. package... com.mysql.jdbc.Connection; /** * Servlet implementation class Modifystdfamily */ @WebServlet
Error
Error  Hi. I am getting error in the following code after the line I have commented as ERROR. How to solve this. Thanks in advance. package... com.mysql.jdbc.Connection; /** * Servlet implementation class Modifystdfamily */ @WebServlet
Error
Error  Hi. I am getting error in the following code after the line I have commented as ERROR. How to solve this. Thanks in advance. package...;"); // ERROR out.println(" var pattern = /^\d{3,5
error
"+it); } } this is my program i am getting an error saying cannot find symbol class stringADS
error
error  whats the error.............. import java.util.Scanner; public class g { public static void main(String[] args) { Scanner s=new Scanner(System.in); int d,x,y; System.out.println("Enter the first number
HTTP Status 404 - /user/AddToCart.do - Struts
HTTP Status 404 user AddToCart   Hi, I download the JSP source code to run the online shopping cart. Whenever I try to add a Item to cart, it shows me the error page with HTTP Status 404 - /user/AddToCart.do What
404 status received in xmlhttp.status - Ajax
404 status received in xmlhttp.status  Hi! I tried out the code I found here using the AJAX login page. However, instead of using PHP for the server... is that I am getting the status 404, instead of 200. thus, I am unable
ubuntu disco Release 404 Not Found
ubuntu disco Release 404 Not Found  Hi, I am trying to update my... following error: (adsbygoogle = window.adsbygoogle || []).push...://in.archive.ubuntu.com/ubuntu disco Release 404 Not Found [IP: 43.255.166.254 80] Err:5
Getting 404 errors - Java Beginners
password access I received a 404 errors and I identified that the servlet...Getting 404 errors  Dear experts, I have embedded a login page...: ADS_TO_REPLACE_1 And my servlet codes
HTTP Status 404 - /Login/userdetail.java
HTTP Status 404 - /Login/userdetail.java  I using netbeans to coonect.. why always error.. help pls.. thx index.jsp <%@page contentType="text/html" pageEncoding="UTF-8"%> <!DOCTYPE html> <html> <
Also HTTP Status 404 - /Login/userdetail.java
Also HTTP Status 404 - /Login/userdetail.java  same can't to run.. error also please help.. index.jsp <%@page pageEncoding="UTF-8"%> <...); } } } *please help.. Thx alot  Post your error that comes while running
problem getting servlet:xmlHTTP.status=404 - Ajax
problem getting servlet:xmlHTTP.status=404   hi, ihave a text field... of the servlet, it gets it and teh xmlHTTP.status =404 condition becomes false.im using... object.The problem is my script is unable to get the servlet in which i have
defined actions in struts config still getting a HTTP 404 - Struts
I get this error HTTP Status 404 - Invalid path /pages/tiles/AddNewCurrency...defined actions in struts config still getting a HTTP 404  Hi guys, I am getting an Invalid Path requested error. Heres the code snippet from
jsp error - JSP-Servlet
, The 404 or Not Found error message is an HTTP standard response code indicating...jsp error  HTTP Status 404 - /jsp... message /jsp/ description The requested resource (/jsp/) is not available
error in servlet
error in servlet  while excuting the servlet program, it produce the error as "HTTP 404 not found". i couldnt rectify that error. can you help me...;servlet-name>Serv1</servlet-name> <servlet-class>Serv1<
Tamcat apache server error
not working HTTP Status 404 - type Status report message description The requested resource () is not available. Apache Tomcat/5.5.31 how to rectify the above error

Ads