Return-Path: Delivered-To: apmail-struts-user-archive@www.apache.org Received: (qmail 20496 invoked from network); 13 Feb 2008 14:18:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 13 Feb 2008 14:18:51 -0000 Received: (qmail 20359 invoked by uid 500); 13 Feb 2008 14:18:35 -0000 Delivered-To: apmail-struts-user-archive@struts.apache.org Received: (qmail 20334 invoked by uid 500); 13 Feb 2008 14:18:35 -0000 Mailing-List: contact user-help@struts.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Struts Users Mailing List" Reply-To: "Struts Users Mailing List" Delivered-To: mailing list user@struts.apache.org Received: (qmail 20323 invoked by uid 99); 13 Feb 2008 14:18:35 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Feb 2008 06:18:35 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [216.215.144.44] (HELO GVLSCEXC5.CORPORATE.VOX.NET) (216.215.144.44) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 13 Feb 2008 14:18:04 +0000 Received: From EMAIL01.CORPORATE.VOX.NET ([10.1.18.51]) by GVLSCEXC5.CORPORATE.VOX.NET (WebShield SMTP v4.5 MR2); id 1202912290818; Wed, 13 Feb 2008 09:18:10 -0500 Received: from 10.3.23.45 ([10.3.23.45]) by EMAIL01.CORPORATE.VOX.NET ([10.1.18.53]) with Microsoft Exchange Server HTTP-DAV ; Wed, 13 Feb 2008 14:18:10 +0000 User-Agent: Microsoft-Entourage/12.0.0.071130 Date: Wed, 13 Feb 2008 09:18:10 -0500 Subject: Re: Struts + Maven + Eclipse problem From: Randy Burgess To: Struts Users Mailing List Message-ID: Thread-Topic: Struts + Maven + Eclipse problem Thread-Index: AchuS0KoMwJo6I8xwkK7h5H4GzErJg== In-Reply-To: <62b3459c0802120751h386fc7ffleb916372b16f103e@mail.gmail.com> Mime-version: 1.0 Content-type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit X-NAIMIME-Disclaimer: 1 X-NAIMIME-Modified: 1 X-Virus-Checked: Checked by ClamAV on apache.org Have you run "mvn eclipse:eclipse" in the project directory? Have you set the web root for the project in Eclipse? I had to do both when creating a Struts Maven project from the command line. This structure sounds like the project that is created from the following which was discussed on the list not long ago. mvn archetype:create -DgroupId=com.s2.anu -DartifactId=s2proj -DarchetypeGroupId=org.apache.struts-DarchetypeArtifactId=struts2-archetype- starter -DarchetypeVersion= 2.0.11 -DremoteRepositories= http://people.apache.org/builds/struts/m2-staging-repository Regards, Randy Burgess Sr. Web Applications Developer Nuvox Communications > From: Gaurav Arora > Reply-To: Struts Users Mailing List > Date: Tue, 12 Feb 2008 21:21:53 +0530 > To: Struts Users Mailing List > Subject: Struts + Maven + Eclipse problem > > I created a new struts project using the maven archetype and then > imported it into eclipse. However when I try to run this project on > tomcat (through eclipse) i keep getting the following error : > > Feb 12, 2008 9:15:00 PM org.apache.struts2.dispatcher.Dispatcher serviceAction > SEVERE: Could not find action or result > There is no Action mapped for namespace / and action name index. - > [unknown location] > at > com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:186> ) > at > org.apache.struts2.impl.StrutsActionProxyFactory.createActionProxy(StrutsActio > nProxyFactory.java:41) > at org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:494) > at > org.apache.struts2.dispatcher.FilterDispatcher.doFilter(FilterDispatcher.java: > 419) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFi > lterChain.java:215) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChai > n.java:188) > at > com.opensymphony.module.sitemesh.filter.PageFilter.parsePage(PageFilter.java:1 > 18) > at > com.opensymphony.module.sitemesh.filter.PageFilter.doFilter(PageFilter.java:52> ) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFi > lterChain.java:215) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChai > n.java:188) > at > org.apache.struts2.dispatcher.ActionContextCleanUp.doFilter(ActionContextClean > Up.java:99) > at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFi > lterChain.java:215) > at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChai > n.java:188) > at > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java > :213) > at > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java > :174) > at > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) > at > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) > at > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:1 > 08) > at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:174) > at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:874) > at > org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processCon > nection(Http11BaseProtocol.java:665) > at > org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java: > 528) > at > org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWork > erThread.java:81) > at > org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java: > 689) > at java.lang.Thread.run(Thread.java:619) > > My struts.xml is as follows : > > > "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN" > "http://struts.apache.org/dtds/struts-2.0.dtd"> > > > > > /jsp/index.jsp > > > /jsp/index.jsp > /jsp/helloWorld.jsp > > > > > > I tried all combinations for the "name" attribute of the package tag > but it doesn't work. Is there an easier way to do this? Also, how can > I build my struts project using eclipse instead of maven? > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscribe@struts.apache.org > For additional commands, e-mail: user-help@struts.apache.org > This email and any attachments ("Message") may contain legally privileged and/or confidential information. If you are not the addressee, or if this Message has been addressed to you in error, you are not authorized to read, copy, or distribute it, and we ask that you please delete it (including all copies) and notify the sender by return email. Delivery of this Message to any person other than the intended recipient(s) shall not be deemed a waiver of confidentiality and/or a privilege. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@struts.apache.org For additional commands, e-mail: user-help@struts.apache.org