404 Error In Struts
Contents |
here for a quick overview of the site Help Center Detailed answers to any questions you might have Meta Discuss the workings and policies of this site About Us Learn more about Stack Overflow the company getting 404 error in struts2 Business Learn more about hiring developers or posting ads with us Stack Overflow Questions Jobs
404 Error In Struts2 Application
Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, 404 error while running struts application just like you, helping each other. Join them; it only takes a minute: Sign up My Struts2 application gets Error 404: Resource not available up vote 3 down vote favorite I was just trying my first struts2
Error 404--not Found In Struts2
application. Followed the steps from a tutorial. The link http://localhost:8080/StrutsApp/ and the link http://localhost:8080/StrutsApp/getTutorial.action both give the same 'resource not available' error. I have added the required images of the error, directory structure, struts.xml, web.xml and the tutorialaction class. Also the added jars(latest release from apache) can be seen in the directory structure. Can anyone please help me to solve this problem? My IDE: Eclipse Kepler Server: Apache Tomcat 7.0 java struts2 share|improve this question http status 404 struts2 the requested resource is not available edited Dec 22 '13 at 7:40 asked Dec 22 '13 at 7:19 Crusaderpyro 538721 Try removing the forward slash '/' in '/welcome.jsp' and '/error.jsp' in struts configuration file –Keerthivasan Dec 22 '13 at 7:37 Thanks for your quick reply. Tried that. Getting the same error. I also have a Sysout(Hello from execute) in my action class and my console shows nothing after the tomcat server starts. So the method is not invoked. The problem seems to be with the xml files or jars. Can't understand ! –Crusaderpyro Dec 22 '13 at 7:43 can you please remove the struts2 portion in the web.xml and simply try to get the index.jsp –Rajesh Dec 22 '13 at 7:46 1 Problem solved.Thanks for your help. There are two commons-lang jars. commons-lang-2.4 and commons-lang3-3.1 ! commons-lang3-x.x.jar was missing. Had just one of it in the Web-inf/lib folder. –Crusaderpyro Dec 22 '13 at 10:18 1 @herry When commons-lang3 jar is missing it should throw java.lang.NoSuchMethodError like in this question. OP didn't post a stacktrace. When the application is not deployed or wrong url entered 404 error code from the web container guaranteed. –Roman C Dec 22 '13 at 19:51 | show 6 more comments 1 Answer 1 active oldest votes up vote 2 down vote accepted Problem is solved.
here for a quick overview
Struts2 404 Error Handling
of the site Help Center Detailed answers to
Http Status 404 In Struts2
any questions you might have Meta Discuss the workings and policies of this struts2 example in eclipse site About Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack http://stackoverflow.com/questions/20727181/my-struts2-application-gets-error-404-resource-not-available Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow Community Stack Overflow is a community of 4.7 million programmers, just like you, helping each other. Join them; it only takes a minute: Sign up Getting 404 error http://stackoverflow.com/questions/27619414/getting-404-error-in-struts2-application in Struts2 application up vote 1 down vote favorite I am first time doing my simple application with Struts2. Here is my code, ActionExample : package com.demo; import com.opensymphony.xwork2.Action; public class ActionExample implements Action { @Override public String execute() { return SUCCESS; } } success.jsp : <%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
Java JSRs Mobile Certification Databases Caching Books Engineering Languages Frameworks Products This Site Careers Other all forums Forum: Struts Getting Error HTTP Status 404 - /Struts2Example/get.action Vaishali Paramane https://coderanch.com/t/583649/Struts/Error-HTTP-Status-Struts-action Ranch Hand Posts: 107 posted 4 years ago Hi I am writing my https://www.daniweb.com/programming/web-development/threads/460828/struts-2-problem-with-login-http-status-404 first program in struts 2 but when I run it I am getting HTTP Status 404 Error Here is my web.xml which is inside the web.inf folder
login (HTTP status 404) Donate $1 now to see this question answered quickly Sponsored questions offer a monetary incentive to answerers to produce quality responses. Be intelligently matched with 5 likely answerers who will be alerted to help. 2Contributors 1Reply 11Views 3 YearsDiscussion Span 3 Years Ago Last Post by LastMitch 0 3 Years Ago Hi, I am learning struts 2 framework and i have also used OGNL in it for data transfer. The problem is when i run the Login.jps page on apache tomcat server through Eclipse Indigo , i get the error "HTTP Status 404 - /Priyanjan_banking/Login.jsp" Please help me out . The code is given belowLogin.jsp <%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%> <%@taglib uri="/struts-tags" prefix="s"%> http://www.w3.org/TR/html4/loose.dtd">