You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "Martin Gainty (JIRA)" <ji...@apache.org> on 2008/04/20 02:57:05 UTC

[jira] Issue Comment Edited: (WW-2468) There is no Action mapped for namespace /actionchaining and action name actionChain1!input. - [unknown location]

    [ https://issues.apache.org/struts/browse/WW-2468?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=43674#action_43674 ] 

mgainty edited comment on WW-2468 at 4/19/08 5:56 PM:
------------------------------------------------------------

contents of struts.xml

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
    "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
    "http://struts.apache.org/dtds/struts-2.0.dtd">
<!-- START SNIPPET: xworkSample -->
<struts>
    <constant name="struts.enable.DynamicMethodInvocation" value="true" />

same exception displayed
my assumption this is a Xwork bug

Some more information from logs:
(org.apache.struts2.codebehind.CodebehindUnknownHandler:106) - Trying to locate unknown action template with extension .jsp in directory /tags/ui/
2008-04-19 19:17:55,156 DEBUG (org.apache.struts2.codebehind.CodebehindUnknownHandler:106) - Trying to locate unknown action template with extension .vm in directory /tags/ui/
2008-04-19 19:17:55,171 DEBUG (org.apache.struts2.codebehind.CodebehindUnknownHandler:106) - Trying to locate unknown action template with extension .ftl in directory /tags/ui/
2008-04-19 19:17:55,187 ERROR (org.apache.struts2.dispatcher.Dispatcher:512) - Could not find action or result
There is no Action mapped for namespace /tags/ui and action name lotsOfOptiontransferselect!input. - [unknown location]
	at com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:186)

org.apache.struts2.codebehind.CodebehindUnknownHandler.java

The call to locateTemplate always fails here is the code:
URL locateTemplate(String path) throws MalformedURLException {

//This call ALWAYS Fails
        URL template = servletContext.getResource(path);
        if (template != null) {
            if (LOG.isDebugEnabled()) {
                LOG.debug("Loaded template '" + path + "' from servlet context.");
            }
        } else {
            template = ClassLoaderUtils.getResource(path, getClass());
            if (template != null && LOG.isDebugEnabled()) {
                LOG.debug("Loaded template '" + path + "' from class path.");                
            }
        }
        return template;
    }

HTH
Martin

      was (Author: mgainty):
    contents of struts.xml

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC
    "-//Apache Software Foundation//DTD Struts Configuration 2.0//EN"
    "http://struts.apache.org/dtds/struts-2.0.dtd">
<!-- START SNIPPET: xworkSample -->
<struts>
    <constant name="struts.enable.DynamicMethodInvocation" value="true" />

same exception displayed
my assumption this is a Xwork bug

Thanks
Martin-

  
> There is no Action mapped for namespace /actionchaining and action name actionChain1!input. - [unknown location] 
> -----------------------------------------------------------------------------------------------------------------
>
>                 Key: WW-2468
>                 URL: https://issues.apache.org/struts/browse/WW-2468
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Value Stack
>    Affects Versions: 2.0.11
>         Environment: JVM 1.5_02
> TC 5.5.17
> Struts-2.0.11
>            Reporter: Martin Gainty
>            Assignee: Don Brown
>
> specifically stating the input method in the Struts URL Tag in the accompanying jsp in this manner
> <li><a href="<s:url action="actionChain1!input" namespace="/actionchaining"  includeParams="none" />">Action Chaining</a></li>
> referenced in the browser address bar
> http://localhost:8080/struts2-showcase-2.0.11/actionchaining/actionChain1!input.action
> produces..
> There is no Action mapped for namespace /actionchaining and action name actionChain1!input. - [unknown location] 
> tried another way specifying method="input" from Struts URL tag
> tags/ui/index.jsp
> <li><s:url id="url" namespace="/tags/ui" action="lotsOfOptiontransferselect" method="input" /><s:a href="%{url}">Option Transfer Select UI Example</s:a></li>
> and populating the input method in the address bar
> http://localhost:8080/struts2-showcase-2.0.11/tags/ui/lotsOfOptiontransferselect!input.action
> produces the same unresolved input method error output..
> Messages: There is no Action mapped for namespace /tags/ui and action name lotsOfOptiontransferselect!input. 
>  
> Browser used
> IE6.0.28
> FF 2.0.11

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.