404 Error In Struts2
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 Business Learn more about 404 error while running struts application hiring developers or posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges
Struts 2 404
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. error 404--not found in struts2 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 application. Followed the steps from a tutorial.
Struts2 Action Not Found 404
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 edited Dec 22 '13 at 7:40 asked Dec 22 '13 http status 404 struts2 the requested resource is not available 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.Thanks for your help. There are two commons-lang jars with almost similar names which come in the struts2 zip file as foll
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 the requested resource is not available tomcat 7 struts2 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 https://coderanch.com/t/583649/Struts/Error-HTTP-Status-Struts-action Paramane Ranch Hand Posts: 107 posted 4 years ago Hi I am writing my first program in struts 2 but when I run it I am getting HTTP Status 404 Error http://www.java-forums.org/web-frameworks/24632-struts2-why-do-i-get-http-status-404-error.html Here is my web.xml which is inside the web.inf folder
to 3 of 3 Thread: Struts2: why do i get http status 404 error? LinkBack LinkBack URL About LinkBacks Thread Tools Show Printable Version Email this Page… Subscribe to this Thread… Search Thread Advanced Search Display Linear Mode Switch to Hybrid Mode Switch to Threaded Mode 01-13-2010,04:22 PM #1 anthrax Member Join Date Feb 2009 Posts 57 Rep Power 0 Struts2: why do i get http status 404 error? here are my settings web.xml