404 Error While Running Struts Application
Contents |
here for a quick overview of 404 error in struts2 application the site Help Center Detailed answers to any
404 Error While Running Tomcat
questions you might have Meta Discuss the workings and policies of this site About 404 error while running tomcat in eclipse Us Learn more about Stack Overflow the company Business Learn more about hiring developers or posting ads with us Stack Overflow
404 Error While Running Servlet In Eclipse
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 Error 404 issues using Struts getting 404 error while running servlet application up vote 4 down vote favorite 1 I am having some issues running a Struts web app since few days. I tried several solutions from StackOverflow relating to my problem but none of them works. web.xml
Struts 2 - Login Application
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
Http Status 404 Struts2 The Requested Resource Is Not Available
Learn more about Stack Overflow the company Business Learn more about hiring developers or
Struts2 404 Error Handling
posting ads with us Stack Overflow Questions Jobs Documentation Tags Users Badges Ask Question x Dismiss Join the Stack Overflow the requested resource is not available tomcat 7 struts2 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 My Struts2 application gets Error 404: Resource not http://stackoverflow.com/questions/18419661/error-404-issues-using-struts-application available up vote 3 down vote favorite I was just trying my first 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 http://stackoverflow.com/questions/20727181/my-struts2-application-gets-error-404-resource-not-available 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 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 applica
Java JSRs Mobile Certification Databases Caching Books Engineering Languages Frameworks Products This Site Careers Other all forums Forum: Tomcat HTTP Status 404 error in tomcat Jayavardhan Ncbr Greenhorn Posts: 9 posted https://coderanch.com/forums/posts/list/40/87666 5 years ago Hi, Check whether your tomcat service is running or not in services.msc Maria Anjum Greenhorn Posts: 7 posted 5 years ago 2 Well this problem is resolved. My tomcat server was running properly even i was getting 404 error. The reason behind this is the missing file like index.jsp which was not compied properly into my eclipse working directory. After coping ROOt 404 error folder from tomcat to eclipse .metadat folder the error is gone. I have copied following text from website http://www.coreservlets.com/Apache-Tomcat-Tutorial/tomcat-7-with-eclipse.html which is quite helpful. Eclipse forgets to copy the default apps (ROOT, examples, etc.) when it creates a Tomcat folder inside the Eclipse workspace. Go to C:\apache-tomcat-7.0.8\webapps, R-click on the ROOT folder and copy it. Then go to your Eclipse workspace, go to the .metadata folder, and 404 error while search for "wtpwebapps". You should find something like your-eclipse-workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps (or .../tmp1/wtpwebapps if you already had another server registered in Eclipse). Go to the wtpwebapps folder, R-click, and paste ROOT (say "yes" if asked if you want to merge/replace folders/files). Then reload http://localhost/ to see the Tomcat welcome page. Now iam facing otherproblem with Axis2 which is not dispalying my service and giving error : cannot be cast to org.apache.axis2.deployment.DeploymentClassLoader Any help? Praful Chandekar Greenhorn Posts: 8 posted 5 years ago @Maria Anjum Which OS are you using? Because I got Error in Windows 7 but not in Windows XP Emmanuel Waûters Ranch Hand Posts: 33 posted 5 years ago Hallo, I had resolved my problem. When using Eclise Helios and Tomcat 6 or 7 You have to do the next: “Copy the ROOT (Default) Web App into Eclipse. Eclipse forgets to copy the default apps (ROOT, examples, etc.) when it creates a Tomcat folder inside the Eclipse workspace. Go to C:\apache-tomcat-7.0.8\webapps, R-click on the ROOT folder and copy it. Then go to your Eclipse workspace, go to the .metadata folder, and search for "wtpwebapps". You should find something like your-eclipse-workspace\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps (or .../tmp1/wtpwebapps if you alr