<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "Could not find action for actionName"]]></title>
		<link>http://forum.mentaframework.org/posts/list/3.page</link>
		<description><![CDATA[Latest messages posted in the topic "Could not find action for actionName"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>Could not find action for actionName</title>
				<description><![CDATA[ <span class="genmed"><b>Code:</b></span><br>
		<div style="overflow: auto; width: 100%;">
		<pre>
javax.servlet.ServletException: Could not find action for actionName: preeespelho
	org.mentawai.core.Controller.service&#40;Controller.java:266&#41;
	javax.servlet.http.HttpServlet.service&#40;HttpServlet.java:810&#41;
	org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter&#40;ReplyHeaderFilter.java:96&#41;
</pre>
		</div>

Não existe força nesse mundo que faz meu controller achar o meu action.

Alguem me ajuda ..... Ja chequei 5 mil vezes minhas classes e ele não acha nem sobre tortura.
]]></description>
				<guid isPermaLink="true">http://forum.mentaframework.org/posts/list/319.page#2002</guid>
				<link>http://forum.mentaframework.org/posts/list/319.page#2002</link>
				<pubDate><![CDATA[Thu, 8 Jun 2006 14:47:40]]> GMT</pubDate>
				<author><![CDATA[ Anonymous]]></author>
			</item>
			<item>
				<title>Re:Could not find action for actionName</title>
				<description><![CDATA[ Posta aqui o seu web.xml e o seu ApplicationManager.java]]></description>
				<guid isPermaLink="true">http://forum.mentaframework.org/posts/list/319.page#2003</guid>
				<link>http://forum.mentaframework.org/posts/list/319.page#2003</link>
				<pubDate><![CDATA[Thu, 8 Jun 2006 15:06:19]]> GMT</pubDate>
				<author><![CDATA[ saoj]]></author>
			</item>
			<item>
				<title>Re:Could not find action for actionName</title>
				<description><![CDATA[ <span class="genmed"><b>Code:</b></span><br>
		<div style="overflow: auto; width: 100%;">
		<pre>
&lt;?xml version="1.0" encoding="ISO-8859-1"?&gt;

&lt;!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd"&gt;

&lt;web-app&gt;
	&lt;display-name&gt;Nome&lt;/display-name&gt;

	&lt;servlet&gt;
		&lt;servlet-name&gt;Controller&lt;/servlet-name&gt;
		&lt;servlet-class&gt;org.mentawai.core.Controller&lt;/servlet-class&gt;
		&lt;init-param&gt;
			&lt;param-name&gt;applicationManager&lt;/param-name&gt;
			&lt;param-value&gt;br.com.telenews.control.ApplicationManager&lt;/param-value&gt;
		&lt;/init-param&gt;
		&lt;load-on-startup&gt;1&lt;/load-on-startup&gt;
	&lt;/servlet&gt;

	&lt;servlet-mapping&gt;
		&lt;servlet-name&gt;Controller&lt;/servlet-name&gt;
		&lt;url-pattern&gt;*.mtw&lt;/url-pattern&gt;
	&lt;/servlet-mapping&gt;
&lt;/web-app&gt;</pre>
		</div>

<span class="genmed"><b>Code:</b></span><br>
		<div style="overflow: auto; width: 100%;">
		<pre>
public class ApplicationManager extends ApplicationManager {

	
	public void init&#40;Context application&#41; {
		// Injeta no objeto de DAO generico o DAO do Hibernate
		ioc&#40;"gdao", HibernateGenericDAO.class, REQUEST&#41;;
		ioc&#40;"espelhodao", DAOEspelho.class, REQUEST&#41;;
	}

	
	public void loadActions&#40;&#41; {
		// Filtro global que controla as transações Hibernate
		filter&#40;new HibernateTransactionFilter&#40;&#41;&#41;;
		
		// Filtro global de Inversão de Controle
        filter&#40;new IoCFilter&#40;&#41;&#41;;
        
        // Filtro global que injeta valores direto na action
        filter&#40;new InjectionFilter&#40;&#41;&#41;;
		
        //Essa action trata a ação preespelho.exibe
       
        ActionConfig ac = new ActionConfig&#40;"/preespelho",PreEspelhoAction.class&#41;;
        ac.addConsequence&#40;SUCCESS, new Forward&#40;"/preespelho.jsp"&#41;&#41;;
        ac.addConsequence&#40;ERROR, new Forward&#40;"/error.jsp"&#41;&#41;;
        addActionConfig&#40;ac&#41;;
        
	}


	public void loadLocales&#40;&#41; {
		LocaleManager.add&#40;new Locale&#40;"pt", "BR"&#41;&#41;;
	}
}
</pre>
		</div>

A classe PreEspelhoAction e o link na hora que chamo a ação fica http://localhost:8080/Aplicacao/preeespelho.mtw. Eu não entendo porque o controller fala que não existe action para o preeespelho.

Vlw]]></description>
				<guid isPermaLink="true">http://forum.mentaframework.org/posts/list/319.page#2004</guid>
				<link>http://forum.mentaframework.org/posts/list/319.page#2004</link>
				<pubDate><![CDATA[Thu, 8 Jun 2006 15:13:00]]> GMT</pubDate>
				<author><![CDATA[ Anonymous]]></author>
			</item>
			<item>
				<title>Re:Could not find action for actionName</title>
				<description><![CDATA[ <blockquote> A classe PreEspelhoAction e o link na hora que chamo a ação fica http://localhost:8080/Aplicacao/preeespelho.mtw. Eu não entendo porque o controller fala que não existe action para o preeespelho. &nbsp;
		</blockquote>

*A classe PreEspelhoAction existe e o link  que chama a ação fica assim http://localhost:8080/Aplicacao/preeespelho.mtw. Eu não entendo porque o controller fala que não existe action para a ação preeespelho.]]></description>
				<guid isPermaLink="true">http://forum.mentaframework.org/posts/list/319.page#2005</guid>
				<link>http://forum.mentaframework.org/posts/list/319.page#2005</link>
				<pubDate><![CDATA[Thu, 8 Jun 2006 15:15:54]]> GMT</pubDate>
				<author><![CDATA[ Anonymous]]></author>
			</item>
			<item>
				<title>Re:Could not find action for actionName</title>
				<description><![CDATA[ Já achei o erro.

Ontem eu estava muito cansado e com dor de cabeça, ai hoje foi só sentar na cadeira que vi o grande vascilo.

Vlw ... brigado!]]></description>
				<guid isPermaLink="true">http://forum.mentaframework.org/posts/list/319.page#2009</guid>
				<link>http://forum.mentaframework.org/posts/list/319.page#2009</link>
				<pubDate><![CDATA[Fri, 9 Jun 2006 10:09:11]]> GMT</pubDate>
				<author><![CDATA[ Anonymous]]></author>
			</item>
			<item>
				<title>Re:Could not find action for actionName</title>
				<description><![CDATA[ I have got the same problem ..

// my ApplicationManager is residing at the package root (no package)
// loadActions
public void loadActions()
{
System.out.println("ApplicationManager.loadActions:: Mapping actions");
 setDebugMode(true);
ActionConfig ac = new ActionConfig("/feeds", FeedModule.class,"getFeed");
 addActionConfig(ac);

System.out.println("ApplicationManager.loadActions():: Finished");

}

// FeedModule
public class FeedModule extends BaseAction {

	public String getFeed()
	{
		String jsonFeed = "{name: \"this is a sample feed\" }";
		
		System.out.println("hello here");
		
		return SUCCESS;
	}

}

// web.xml
<web-app>  
 <servlet>  
     <servlet-name>Controller</servlet-name>  
     <servlet-class>org.mentawai.core.Controller</servlet-class>
<load-on-startup>1</load-on-startup>          
 </servlet>  
   

 <servlet-mapping>  
     <servlet-name>Controller</servlet-name>
     <url-pattern>*.mtw</url-pattern>  
 </servlet-mapping>  
 </web-app>  

my url is http://localhost:8080/ws/feeds.mtw

This is what i get 
SEVERE: Servlet.service() for servlet Controller threw exception
javax.servlet.ServletException: Could not find action for actionName: Feeds
	at org.mentawai.core.Controller.service(Controller.java:555)
	at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)

Anyone have an idea about what is getting wrong?
thanks]]></description>
				<guid isPermaLink="true">http://forum.mentaframework.org/posts/list/319.page#17533</guid>
				<link>http://forum.mentaframework.org/posts/list/319.page#17533</link>
				<pubDate><![CDATA[Thu, 11 Feb 2010 06:44:20]]> GMT</pubDate>
				<author><![CDATA[ logicalusman]]></author>
			</item>
			<item>
				<title>Re:Could not find action for actionName</title>
				<description><![CDATA[ ActionConfig ac = new ActionConfig(<b>"feeds"</b>, FeedModule.class,"getFeed"); 


right?]]></description>
				<guid isPermaLink="true">http://forum.mentaframework.org/posts/list/319.page#17574</guid>
				<link>http://forum.mentaframework.org/posts/list/319.page#17574</link>
				<pubDate><![CDATA[Thu, 4 Mar 2010 12:52:32]]> GMT</pubDate>
				<author><![CDATA[ spinow]]></author>
			</item>
			<item>
				<title>Re:Could not find action for actionName</title>
				<description><![CDATA[ I beleave.... You has set this in your ApplicationManager

<span class="genmed"><b>Code:</b></span><br>
		<div style="overflow: auto; width: 100%;">
		<pre>
  ActionConfig ac = new ActionConfig&#40;"/feeds", FeedModule.class,"getFeed"&#41;;
addActionConfig&#40;ac&#41;;
</pre>
		</div>

And you are requesting that:
http://localhost:8080/ws/feeds.mtw

I believe that is correct for your url.
http://localhost:8080/ws/feeds.<b>getFeed</b>.mtw

When you requesting....
http://localhost:8080/ws/feeds.mtw 

by default the method will be required <b>execute</b> and you not have this setting...

]]></description>
				<guid isPermaLink="true">http://forum.mentaframework.org/posts/list/319.page#17575</guid>
				<link>http://forum.mentaframework.org/posts/list/319.page#17575</link>
				<pubDate><![CDATA[Thu, 4 Mar 2010 13:15:55]]> GMT</pubDate>
				<author><![CDATA[ IceW0lf]]></author>
			</item>
	</channel>
</rss>
