Re: WARNING: Could not find action or result There is no Action mapped for namespace / and action name . - [unknown location]

2009-02-13 Thread Ratheesh Kumar K

hi,

i have attached the configbrowser plugin and is not able to trace it.the
screen shots are as follows:
http://www.nabble.com/file/p22009471/configbrowser1.gif 
http://www.nabble.com/file/p22009471/configbrowser2.gif 
http://www.nabble.com/file/p22009471/configbrowser3.gif 



Musachy Barroso wrote:
> 
> Add the config browser to your app and check what urls it is mapping:
> http://struts.apache.org/2.x/docs/config-browser-plugin.html
> 
> musachy
> 
> On Fri, Feb 13, 2009 at 11:31 AM, Ratheesh Kumar K
>  wrote:
>>
>> Thanks for your reply.
>> I was not fortunate enough to get it run by your reply. can you give a
>> bit
>> more help to me.
>>
>> I hav changed the class name to start with capital letter.
>> Now the struts.xml looks like as follows:
>>
>> >"-//Apache Software Foundation//DTD Struts Configuration 2.1//EN"
>>"http://struts.apache.org/dtds/struts-2.1.dtd";>
>> 
>>
>>> extends="struts-default">
>>
>>index.jsp
>>success.jsp
>>
>>
>> 
>>
>>  web.xml
>>
>> 
>> http://www.w3.org/2001/XMLSchema-instance";
>> xmlns="http://java.sun.com/xml/ns/javaee";
>> xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd";
>> xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
>> http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"; id="WebApp_ID"
>> version="2.5">
>>  test1
>>  
>>index.jsp
>>  
>>  
>> struts2
>>
>> org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
>> 
>>  
>>  
>>  struts2
>>  /*
>>  
>> 
>>
>> directory structure looks like as follows:
>> http://www.nabble.com/file/p2131/directory13.gif
>>
>>
>>
>> newton.dave wrote:
>>>
>>>  From my JavaRanch response:
>>>
>>> A couple of notes:
>>>
>>> * You're missing commons-io.
>>> * Java class names should start with a capital letter, i.e., TestAction.
>>> * You should use the ng filter in 2.1.6.
>>> * Namespaces should begin with a slash ("/").
>>>
>>> Is there anything in the log regarding a filter startup failure?
>>>
>>> Dave
>>>
>>> Ratheesh Kumar K wrote:
>>>> hi ,
>>>> thanks 4 ur reply.
>>>> But as u can see my reply to the mail (third post in this thread.), I
>>>> hav
>>>> attached all the jsps and configuration file. In the jsp I have given
>>>> the
>>>> action.
>>>> Can you be more clear on your statement, taking in consideration that I
>>>> am a
>>>> newbie to struts.
>>>> Please help me.
>>>>
>>>>
>>>>
>>>>
>>>> suhas kokal wrote:
>>>>> Hi,
>>>>> This is Suhas. I have read your mail.
>>>>> Most probably you have not defined the action which drives the jsp.
>>>>> Bcos if no action is mentioned in the , defaults to the
>>>>> driving
>>>>> action. If not defined warning comes out.
>>>>>
>>>>> Thanks
>>>>>
>>>>> Suhas.
>>>>>
>>>>>
>>>>>
>>>>> --- On Thu, 12/2/09, Ratheesh Kumar K 
>>>>> wrote:
>>>>>
>>>>>> From: Ratheesh Kumar K 
>>>>>> Subject: Re: WARNING: Could not find action or result There is no
>>>>>> Action
>>>>>> mapped for namespace / and action name . - [unknown location]
>>>>>> To: user@struts.apache.org
>>>>>> Date: Thursday, 12 February, 2009, 9:41 AM
>>>>>> Sorry for the inconvenience.
>>>>>> Thanks for your instant response.
>>>>>> here is the directory structure
>>>>>> http://www.nabble.com/file/p21969639/directoryStructure.gif
>>>>>>
>>>>>> Following are the major configuration files:
>>>>>>
>>>>>> web.xml
>>>>>> >>>>> encoding="UTF-8"?>
>>>>>> >>>>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>>>>>> xmlns="http://java.sun.com/xml/ns/javaee";
>>>>>> xmlns:web="http:/

Re: WARNING: Could not find action or result There is no Action mapped for namespace / and action name . - [unknown location]

2009-02-13 Thread Ratheesh Kumar K

Thanks for your reply.
I was not fortunate enough to get it run by your reply. can you give a bit
more help to me.

I hav changed the class name to start with capital letter.
Now the struts.xml looks like as follows:

http://struts.apache.org/dtds/struts-2.1.dtd";>




index.jsp
success.jsp




 web.xml


http://www.w3.org/2001/XMLSchema-instance";
xmlns="http://java.sun.com/xml/ns/javaee";
xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd";
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"; id="WebApp_ID"
version="2.5">
  test1
  
index.jsp
  
  
 struts2

org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
 
  
  
  struts2
  /*
  


directory structure looks like as follows:
http://www.nabble.com/file/p2131/directory13.gif 



newton.dave wrote:
> 
>  From my JavaRanch response:
> 
> A couple of notes:
> 
> * You're missing commons-io.
> * Java class names should start with a capital letter, i.e., TestAction.
> * You should use the ng filter in 2.1.6.
> * Namespaces should begin with a slash ("/").
> 
> Is there anything in the log regarding a filter startup failure?
> 
> Dave
> 
> Ratheesh Kumar K wrote:
>> hi ,
>> thanks 4 ur reply.
>> But as u can see my reply to the mail (third post in this thread.), I hav
>> attached all the jsps and configuration file. In the jsp I have given the
>> action.
>> Can you be more clear on your statement, taking in consideration that I
>> am a
>> newbie to struts.
>> Please help me.
>> 
>> 
>> 
>> 
>> suhas kokal wrote:
>>> Hi, 
>>> This is Suhas. I have read your mail. 
>>> Most probably you have not defined the action which drives the jsp. 
>>> Bcos if no action is mentioned in the , defaults to the driving
>>> action. If not defined warning comes out.
>>>
>>> Thanks 
>>>
>>> Suhas.
>>>
>>>
>>>
>>> --- On Thu, 12/2/09, Ratheesh Kumar K  wrote:
>>>
>>>> From: Ratheesh Kumar K 
>>>> Subject: Re: WARNING: Could not find action or result There is no
>>>> Action
>>>> mapped for namespace / and action name . - [unknown location]
>>>> To: user@struts.apache.org
>>>> Date: Thursday, 12 February, 2009, 9:41 AM
>>>> Sorry for the inconvenience.
>>>> Thanks for your instant response.
>>>> here is the directory structure
>>>> http://www.nabble.com/file/p21969639/directoryStructure.gif
>>>>
>>>> Following are the major configuration files:
>>>>
>>>> web.xml
>>>> >>> encoding="UTF-8"?>
>>>> >>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>>>> xmlns="http://java.sun.com/xml/ns/javaee";
>>>> xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd";
>>>> xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
>>>> http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd";
>>>> id="WebApp_ID"
>>>> version="2.5">
>>>>   test1
>>>>   
>>>> t1.jsp
>>>>   
>>>>   
>>>>  struts2
>>>>
>>>> org.apache.struts2.dispatcher.FilterDispatcher
>>>>   
>>>>   
>>>>   struts2
>>>>   /*
>>>>   
>>>> 
>>>>
>>>> struts.xml
>>>>
>>>> >>> encoding="UTF-8"?>
>>>> >>> "-//Apache Software Foundation//DTD Struts
>>>> Configuration 2.1//EN"
>>>>
>>>> "http://struts.apache.org/dtds/struts-2.1.dtd";>
>>>> 
>>>> >>> value="true" />
>>>>>>> namespace="Amrita"
>>>> extends="struts-default">
>>>> >>> class="org.amrita.testAction">
>>>>>>> name="input">index.jsp
>>>>success.jsp
>>>>
>>>>
>>>> 
>>>>
>>>> testAction.java
>>>>
>>>> package org.amrita;
>>>>
>>>> import com.opensymphony.xwork2.ActionSupport;
>>>>
>>>> 

Re: WARNING: Could not find action or result There is no Action mapped for namespace / and action name . - [unknown location]

2009-02-11 Thread Ratheesh Kumar K

hi ,
thanks 4 ur reply.
But as u can see my reply to the mail (third post in this thread.), I hav
attached all the jsps and configuration file. In the jsp I have given the
action.
Can you be more clear on your statement, taking in consideration that I am a
newbie to struts.
Please help me.




suhas kokal wrote:
> 
> Hi, 
> This is Suhas. I have read your mail. 
> Most probably you have not defined the action which drives the jsp. 
> Bcos if no action is mentioned in the , defaults to the driving
> action. If not defined warning comes out.
> 
> Thanks 
> 
> Suhas.
> 
> 
> 
> --- On Thu, 12/2/09, Ratheesh Kumar K  wrote:
> 
>> From: Ratheesh Kumar K 
>> Subject: Re: WARNING: Could not find action or result There is no Action
>> mapped for namespace / and action name . - [unknown location]
>> To: user@struts.apache.org
>> Date: Thursday, 12 February, 2009, 9:41 AM
>> Sorry for the inconvenience.
>> Thanks for your instant response.
>> here is the directory structure
>> http://www.nabble.com/file/p21969639/directoryStructure.gif
>> 
>> Following are the major configuration files:
>> 
>> web.xml
>> > encoding="UTF-8"?>
>> > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>> xmlns="http://java.sun.com/xml/ns/javaee";
>> xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd";
>> xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
>> http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd";
>> id="WebApp_ID"
>> version="2.5">
>>   test1
>>   
>> t1.jsp
>>   
>>   
>>  struts2
>> 
>> org.apache.struts2.dispatcher.FilterDispatcher
>>   
>>   
>>   struts2
>>   /*
>>   
>> 
>> 
>> struts.xml
>> 
>> > encoding="UTF-8"?>
>> > "-//Apache Software Foundation//DTD Struts
>> Configuration 2.1//EN"
>>
>> "http://struts.apache.org/dtds/struts-2.1.dtd";>
>> 
>> > value="true" />
>>  > namespace="Amrita"
>> extends="struts-default">
>> > class="org.amrita.testAction">
>>  > name="input">index.jsp
>>  success.jsp
>>  
>>  
>> 
>> 
>> testAction.java
>> 
>> package org.amrita;
>> 
>> import com.opensymphony.xwork2.ActionSupport;
>> 
>> public class testAction extends ActionSupport
>> {
>>  /**
>>   * 
>>   */
>>  private static final long serialVersionUID = 1L;
>> 
>>  public String execute()
>>  {  
>>  return SUCCESS;  
>>  }
>> }
>> 
>> index.jsp
>> 
>> <%@ page language="java"
>> contentType="text/html; charset=ISO-8859-1"
>> pageEncoding="ISO-8859-1"%>
>> > Transitional//EN"
>> "http://www.w3.org/TR/html4/loose.dtd";>
>> <%@ taglib uri="/struts-tags"
>> prefix="s" %>
>> 
>> 
>> > content="text/html; charset=ISO-8859-1">
>> Insert title here
>> 
>> 
>>  haiii
>>  
>>   
>>  
>> 
>> 
>> 
>> success.jsp
>> 
>> <%@ page language="java"
>> contentType="text/html; charset=ISO-8859-1"
>> pageEncoding="ISO-8859-1"%>
>> > Transitional//EN"
>> "http://www.w3.org/TR/html4/loose.dtd";>
>> 
>> 
>> > content="text/html; charset=ISO-8859-1">
>> Insert title here
>> 
>> 
>> Success !!!
>> 
>> 
>> 
>> 
>> newton.dave wrote:
>> > 
>> > AFAIK the mailing list doesn't pass through
>> attachments, although using 
>> > one of the forums might.
>> > 
>> > Asking people to "go through" your
>> application probably isn't the most 
>> > effective approach--why not just post the relevant
>> configuration and 
>> > deployment information?
>> > 
>> > It's probably a simple configuration or deployment
>> issue.
>> > 
>> > Dave
>> > 
>> > Ratheesh Kumar K wrote:
>> >> Hello All,
>> >> I am a newbie to the Struts 2 framework. I started
>> with latest version of
>> >

Re: WARNING: Could not find action or result There is no Action mapped for namespace / and action name . - [unknown location]

2009-02-11 Thread Ratheesh Kumar K

Sorry for the inconvenience.
Thanks for your instant response.
here is the directory structure
http://www.nabble.com/file/p21969639/directoryStructure.gif 
Following are the major configuration files:

web.xml

http://www.w3.org/2001/XMLSchema-instance";
xmlns="http://java.sun.com/xml/ns/javaee";
xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd";
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd"; id="WebApp_ID"
version="2.5">
  test1
  
t1.jsp
  
  
 struts2
 org.apache.struts2.dispatcher.FilterDispatcher
  
  
  struts2
  /*
  


struts.xml


http://struts.apache.org/dtds/struts-2.1.dtd";>




index.jsp
success.jsp




testAction.java

package org.amrita;

import com.opensymphony.xwork2.ActionSupport;

public class testAction extends ActionSupport
{
/**
 * 
 */
private static final long serialVersionUID = 1L;

public String execute()
{  
return SUCCESS;  
}
}

index.jsp

<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
http://www.w3.org/TR/html4/loose.dtd";>
<%@ taglib uri="/struts-tags" prefix="s" %>



Insert title here


 haiii
 
 
 



success.jsp

<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
http://www.w3.org/TR/html4/loose.dtd";>



Insert title here


Success !!!




newton.dave wrote:
> 
> AFAIK the mailing list doesn't pass through attachments, although using 
> one of the forums might.
> 
> Asking people to "go through" your application probably isn't the most 
> effective approach--why not just post the relevant configuration and 
> deployment information?
> 
> It's probably a simple configuration or deployment issue.
> 
> Dave
> 
> Ratheesh Kumar K wrote:
>> Hello All,
>> I am a newbie to the Struts 2 framework. I started with latest version of
>> Struts 2, i.e. Struts  2.1.6 and is strucked with the following error. I
>> have gone through the entire forums and many other mailing list, but was
>> not
>> able to get it corrected. The war file for the project is attached,
>> please
>> go theough it and send me some solutions. Any pointers and tricks are
>> appreciated. Please execute the war file and then comment on it, because
>> I
>> experimented all the tricks explained in most of the user forums. You can
>> download the war file from  http://www.fileqube.com/file/GgjLtuIij172959
>> here  or from 
>> http://www.adrive.com/public/74896d3331b8aae51eeb1bb90e63cde126bf3d709bc8e9c932956279a2bfa6c8.html
>> here 
>> 
>> Following are the development environment configurations:
>> IDE: Eclipse Platform Version: 3.4.1 Build id: M20080911-1700 [Ganymede]
>> Servelt Engine: Tomcat 6.0.18
>> Struts version: 2.1.6
>> Operating System : Windows XP
>> 
>> Following is the error report:
>> 
>> Feb 10, 2009 9:04:25 PM
>> com.opensymphony.xwork2.util.logging.commons.CommonsLogger warn
>> WARNING: Could not find action or result
>> There is no Action mapped for namespace / and action name . - [unknown
>> location]
>> at
>> com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:177)
>> at
>> org.apache.struts2.impl.StrutsActionProxy.prepare(StrutsActionProxy.java:61)
>> at
>> org.apache.struts2.impl.StrutsActionProxyFactory.createActionProxy(StrutsActionProxyFactory.java:39)
>> at
>> com.opensymphony.xwork2.DefaultActionProxyFactory.createActionProxy(DefaultActionProxyFactory.java:47)
>> at
>> org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:458)
>> at
>> org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)
>> at
>> org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:76)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
>> at
>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>> at
>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>> at
>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
>> at
>>

WARNING: Could not find action or result There is no Action mapped for namespace / and action name . - [unknown location]

2009-02-11 Thread Ratheesh Kumar K

Hello All,
I am a newbie to the Struts 2 framework. I started with latest version of
Struts 2, i.e. Struts  2.1.6 and is strucked with the following error. I
have gone through the entire forums and many other mailing list, but was not
able to get it corrected. The war file for the project is attached, please
go theough it and send me some solutions. Any pointers and tricks are
appreciated. Please execute the war file and then comment on it, because I
experimented all the tricks explained in most of the user forums. You can
download the war file from  http://www.fileqube.com/file/GgjLtuIij172959
here  or from 
http://www.adrive.com/public/74896d3331b8aae51eeb1bb90e63cde126bf3d709bc8e9c932956279a2bfa6c8.html
here 

Following are the development environment configurations:
IDE: Eclipse Platform Version: 3.4.1 Build id: M20080911-1700 [Ganymede]
Servelt Engine: Tomcat 6.0.18
Struts version: 2.1.6
Operating System : Windows XP

Following is the error report:

Feb 10, 2009 9:04:25 PM
com.opensymphony.xwork2.util.logging.commons.CommonsLogger warn
WARNING: Could not find action or result
There is no Action mapped for namespace / and action name . - [unknown
location]
at
com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:177)
at
org.apache.struts2.impl.StrutsActionProxy.prepare(StrutsActionProxy.java:61)
at
org.apache.struts2.impl.StrutsActionProxyFactory.createActionProxy(StrutsActionProxyFactory.java:39)
at
com.opensymphony.xwork2.DefaultActionProxyFactory.createActionProxy(DefaultActionProxyFactory.java:47)
at
org.apache.struts2.dispatcher.Dispatcher.serviceAction(Dispatcher.java:458)
at
org.apache.struts2.dispatcher.ng.ExecuteOperations.executeAction(ExecuteOperations.java:77)
at
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.doFilter(StrutsPrepareAndExecuteFilter.java:76)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Unknown Source)

-- 
View this message in context: 
http://www.nabble.com/WARNING%3A-Could-not-find-action-or-result-There-is-no-Action-mapped-for-namespace---and-action-name-.unknown-location--tp21957971p21957971.html
Sent from the Struts - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org