Re: Migration problem from 2.0.x to 2.1.6

2010-05-28 Thread Gwen Harold Autencio
Ahh I see thanks .. i'll read on it ..

--- On Thu, 5/27/10, Greg Lindholm greg.lindh...@gmail.com wrote:

 From: Greg Lindholm greg.lindh...@gmail.com
 Subject: Re: Migration problem from 2.0.x to 2.1.6
 To: Struts Users Mailing List user@struts.apache.org
 Date: Thursday, May 27, 2010, 10:50 PM
 Check out the wiki entry for
 migrating
 
 https://cwiki.apache.org/S2WIKI/troubleshooting-guide-migrating-from-struts-20x-to-21x.html
 
 There is a section Filter Mapping, default Action
 extensions, and
 Servlets that should help.
 
 Unfortunately the docs seem to still be messed up.
 sigh
 
 
 On Thu, May 27, 2010 at 1:48 AM, Gwen Harold Autencio
 gwenharol...@yahoo.com
 wrote:
  Hi,
 
  I got a Servlet which doesn't extends to an action.
 Looking for a work around without extending the servlet to
 an action because it's already has extends another class.
  Any ideas ?
 
  I'm getting this in the logs
 
  2010-05-27 13:46:44,962 [btpool0-8] WARN
  org.apache.struts2.dispatcher.Dispatcher  - Could not
 find action or result
  There is no Action mapped for namespace / and action
 name repository/internal/. - [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)
 
 
 
 
 
 -
  To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
  For additional commands, e-mail: user-h...@struts.apache.org
 
 
 
 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org
 
 




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



Re: Migration problem from 2.0.x to 2.1.6

2010-05-28 Thread Greg Lindholm
Here is a link to the same page that is working

https://cwiki.apache.org/confluence/display/S2WIKI/Troubleshooting+guide+migrating+from+Struts+2.0.x+to+2.1.x


On Fri, May 28, 2010 at 4:35 AM, Gwen Harold Autencio
gwenharol...@yahoo.com wrote:
 Ahh I see thanks .. i'll read on it ..

 --- On Thu, 5/27/10, Greg Lindholm greg.lindh...@gmail.com wrote:

 From: Greg Lindholm greg.lindh...@gmail.com
 Subject: Re: Migration problem from 2.0.x to 2.1.6
 To: Struts Users Mailing List user@struts.apache.org
 Date: Thursday, May 27, 2010, 10:50 PM
 Check out the wiki entry for
 migrating

 https://cwiki.apache.org/S2WIKI/troubleshooting-guide-migrating-from-struts-20x-to-21x.html

 There is a section Filter Mapping, default Action
 extensions, and
 Servlets that should help.

 Unfortunately the docs seem to still be messed up.
 sigh


 On Thu, May 27, 2010 at 1:48 AM, Gwen Harold Autencio
 gwenharol...@yahoo.com
 wrote:
  Hi,
 
  I got a Servlet which doesn't extends to an action.
 Looking for a work around without extending the servlet to
 an action because it's already has extends another class.
  Any ideas ?
 
  I'm getting this in the logs
 
  2010-05-27 13:46:44,962 [btpool0-8] WARN
  org.apache.struts2.dispatcher.Dispatcher  - Could not
 find action or result
  There is no Action mapped for namespace / and action
 name repository/internal/. - [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)
 
 
 
 
 
 -
  To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
  For additional commands, e-mail: user-h...@struts.apache.org
 
 

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






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



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



Re: Migration problem from 2.0.x to 2.1.6

2010-05-28 Thread Ken
I am now experiencing the same error.

There is no Action mapped for namespace / and action name welcome. -
[unknown location]
at
com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:178)
at
org.apache.struts2.impl.StrutsActionProxy.prepare(StrutsActionProxy.java:61)

Added constant name=struts.action.extension value=action / to my
struts.xml configuration

struts
constant name=struts.action.extension value=action /
!-- Configuration for the default package. --
package name=default namespace=/ extends=tiles-default
result-types
result-type name=tiles
class=org.apache.struts2.views.tiles.TilesResult
default=true/
/result-types
action name=welcome class=home.Index
result name=successwelcome/result
/action
/package
include file=strutsConfig/struts_secure.xml/
/struts

Didn't work so did the next part changed web.xml to use
org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter

web-app version=2.5 xmlns=http://java.sun.com/xml/ns/javaee;
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd;
filter
filter-namestruts2/filter-name

filter-classorg.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter/filter-class
/filter
filter-mapping
filter-namestruts2/filter-name
url-pattern*.action/url-pattern
/filter-mapping

filter-mapping
filter-namestruts2/filter-name
url-pattern/struts/*/url-pattern
/filter-mapping
session-config
session-timeout
30
/session-timeout
/session-config
welcome-file-list
welcome-filehome/index.jsp/welcome-file
/welcome-file-list
context-param
param-name

org.apache.titles.impl.BasicTilesContainer.DEFINITIONS_CONFIG
/param-name
param-valueWEB-INF/tiles.xml/param-value
/context-param
listener
listener-class
org.apache.tiles.web.startup.TilesListener
/listener-class
/listener
/web-app

I was getting two errors about not being able to load tiles-default
before that...
Still same error,
Then removed  constant name=struts.action.extension value=action /
Still same error.

Suggestions?

On Fri, 2010-05-28 at 08:23 -0400, Greg Lindholm wrote:

 Here is a link to the same page that is working
 
 https://cwiki.apache.org/confluence/display/S2WIKI/Troubleshooting+guide+migrating+from+Struts+2.0.x+to+2.1.x
 
 
 On Fri, May 28, 2010 at 4:35 AM, Gwen Harold Autencio
 gwenharol...@yahoo.com wrote:
  Ahh I see thanks .. i'll read on it ..
 
  --- On Thu, 5/27/10, Greg Lindholm greg.lindh...@gmail.com wrote:
 
  From: Greg Lindholm greg.lindh...@gmail.com
  Subject: Re: Migration problem from 2.0.x to 2.1.6
  To: Struts Users Mailing List user@struts.apache.org
  Date: Thursday, May 27, 2010, 10:50 PM
  Check out the wiki entry for
  migrating
 
  https://cwiki.apache.org/S2WIKI/troubleshooting-guide-migrating-from-struts-20x-to-21x.html
 
  There is a section Filter Mapping, default Action
  extensions, and
  Servlets that should help.
 
  Unfortunately the docs seem to still be messed up.
  sigh
 
 
  On Thu, May 27, 2010 at 1:48 AM, Gwen Harold Autencio
  gwenharol...@yahoo.com
  wrote:
   Hi,
  
   I got a Servlet which doesn't extends to an action.
  Looking for a work around without extending the servlet to
  an action because it's already has extends another class.
   Any ideas ?
  
   I'm getting this in the logs
  
   2010-05-27 13:46:44,962 [btpool0-8] WARN
   org.apache.struts2.dispatcher.Dispatcher  - Could not
  find action or result
   There is no Action mapped for namespace / and action
  name repository/internal/. - [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)
  




Re: Migration problem from 2.0.x to 2.1.6

2010-05-28 Thread Ken
... Arg, was missing a jar... struts-2-tiles-plugin-2.1.8.1.jar now
it's working.

On Fri, 2010-05-28 at 15:08 -0600, Ken wrote:

 I am now experiencing the same error.
 
 There is no Action mapped for namespace / and action name welcome. -
 [unknown location]
 at
 com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:178)
 at
 org.apache.struts2.impl.StrutsActionProxy.prepare(StrutsActionProxy.java:61)
 
 Added constant name=struts.action.extension value=action / to my
 struts.xml configuration
 
 struts
 constant name=struts.action.extension value=action /
 !-- Configuration for the default package. --
 package name=default namespace=/ extends=tiles-default
 result-types
 result-type name=tiles
 class=org.apache.struts2.views.tiles.TilesResult
 default=true/
 /result-types
 action name=welcome class=home.Index
 result name=successwelcome/result
 /action
 /package
 include file=strutsConfig/struts_secure.xml/
 /struts
 
 Didn't work so did the next part changed web.xml to use
 org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter
 
 web-app version=2.5 xmlns=http://java.sun.com/xml/ns/javaee;
 xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance;
 xsi:schemaLocation=http://java.sun.com/xml/ns/javaee
 http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd;
 filter
 filter-namestruts2/filter-name
 
 filter-classorg.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter/filter-class
 /filter
 filter-mapping
 filter-namestruts2/filter-name
 url-pattern*.action/url-pattern
 /filter-mapping
 
 filter-mapping
 filter-namestruts2/filter-name
 url-pattern/struts/*/url-pattern
 /filter-mapping
 session-config
 session-timeout
 30
 /session-timeout
 /session-config
 welcome-file-list
 welcome-filehome/index.jsp/welcome-file
 /welcome-file-list
 context-param
 param-name
 
 org.apache.titles.impl.BasicTilesContainer.DEFINITIONS_CONFIG
 /param-name
 param-valueWEB-INF/tiles.xml/param-value
 /context-param
 listener
 listener-class
 org.apache.tiles.web.startup.TilesListener
 /listener-class
 /listener
 /web-app
 
 I was getting two errors about not being able to load tiles-default
 before that...
 Still same error,
 Then removed  constant name=struts.action.extension value=action /
 Still same error.
 
 Suggestions?
 
 On Fri, 2010-05-28 at 08:23 -0400, Greg Lindholm wrote:
 
  Here is a link to the same page that is working
  
  https://cwiki.apache.org/confluence/display/S2WIKI/Troubleshooting+guide+migrating+from+Struts+2.0.x+to+2.1.x
  
  
  On Fri, May 28, 2010 at 4:35 AM, Gwen Harold Autencio
  gwenharol...@yahoo.com wrote:
   Ahh I see thanks .. i'll read on it ..
  
   --- On Thu, 5/27/10, Greg Lindholm greg.lindh...@gmail.com wrote:
  
   From: Greg Lindholm greg.lindh...@gmail.com
   Subject: Re: Migration problem from 2.0.x to 2.1.6
   To: Struts Users Mailing List user@struts.apache.org
   Date: Thursday, May 27, 2010, 10:50 PM
   Check out the wiki entry for
   migrating
  
   https://cwiki.apache.org/S2WIKI/troubleshooting-guide-migrating-from-struts-20x-to-21x.html
  
   There is a section Filter Mapping, default Action
   extensions, and
   Servlets that should help.
  
   Unfortunately the docs seem to still be messed up.
   sigh
  
  
   On Thu, May 27, 2010 at 1:48 AM, Gwen Harold Autencio
   gwenharol...@yahoo.com
   wrote:
Hi,
   
I got a Servlet which doesn't extends to an action.
   Looking for a work around without extending the servlet to
   an action because it's already has extends another class.
Any ideas ?
   
I'm getting this in the logs
   
2010-05-27 13:46:44,962 [btpool0-8] WARN
org.apache.struts2.dispatcher.Dispatcher  - Could not
   find action or result
There is no Action mapped for namespace / and action
   name repository/internal/. - [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)
   





Re: Migration problem from 2.0.x to 2.1.6

2010-05-27 Thread Rupali Gupta
You would anyways need to extend the action class if you want the action 
mapping in your servlet.



On 5/27/2010 11:18 AM, Gwen Harold Autencio wrote:

Hi,

I got a Servlet which doesn't extends to an action. Looking for a work around 
without extending the servlet to an action because it's already has extends 
another class.
Any ideas ?

I'm getting this in the logs

2010-05-27 13:46:44,962 [btpool0-8] WARN  
org.apache.struts2.dispatcher.Dispatcher  - Could not find action or result
There is no Action mapped for namespace / and action name repository/internal/. 
- [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)




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




   



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



Re: Migration problem from 2.0.x to 2.1.6

2010-05-27 Thread Gwen Harold Autencio
So all the servlet should be an action now in 2.1.6 ?

--- On Thu, 5/27/10, Rupali Gupta r.gup...@mpstechnologies.com wrote:

 From: Rupali Gupta r.gup...@mpstechnologies.com
 Subject: Re: Migration problem from 2.0.x to 2.1.6
 To: user@struts.apache.org
 Date: Thursday, May 27, 2010, 3:05 PM
 You would anyways need to extend the
 action class if you want the action 
 mapping in your servlet.
 
 
 On 5/27/2010 11:18 AM, Gwen Harold Autencio wrote:
  Hi,
 
  I got a Servlet which doesn't extends to an action.
 Looking for a work around without extending the servlet to
 an action because it's already has extends another class.
  Any ideas ?
 
  I'm getting this in the logs
 
  2010-05-27 13:46:44,962 [btpool0-8] WARN 
 org.apache.struts2.dispatcher.Dispatcher  - Could not
 find action or result
  There is no Action mapped for namespace / and action
 name repository/internal/. - [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)
 
 
 
 
 
 -
  To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
  For additional commands, e-mail: user-h...@struts.apache.org
 
 
 
 
     
 
 
 -
 To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
 For additional commands, e-mail: user-h...@struts.apache.org
 
 




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



RE: Migration problem from 2.0.x to 2.1.6

2010-05-27 Thread Yang, Senshan
If you have access the class the Servlet extends to and that class does not 
extend to a class, try to have that class extends to an action.

-Original Message-
From: Gwen Harold Autencio [mailto:gwenharol...@yahoo.com] 
Sent: Thursday, May 27, 2010 1:49 AM
To: user@struts.apache.org
Subject: Migration problem from 2.0.x to 2.1.6

Hi,

I got a Servlet which doesn't extends to an action. Looking for a work around 
without extending the servlet to an action because it's already has extends 
another class.
Any ideas ?

I'm getting this in the logs

2010-05-27 13:46:44,962 [btpool0-8] WARN  
org.apache.struts2.dispatcher.Dispatcher  - Could not find action or result
There is no Action mapped for namespace / and action name repository/internal/. 
- [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)


  

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


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



Re: Migration problem from 2.0.x to 2.1.6

2010-05-27 Thread Greg Lindholm
Check out the wiki entry for migrating

https://cwiki.apache.org/S2WIKI/troubleshooting-guide-migrating-from-struts-20x-to-21x.html

There is a section Filter Mapping, default Action extensions, and
Servlets that should help.

Unfortunately the docs seem to still be messed up. sigh


On Thu, May 27, 2010 at 1:48 AM, Gwen Harold Autencio
gwenharol...@yahoo.com wrote:
 Hi,

 I got a Servlet which doesn't extends to an action. Looking for a work around 
 without extending the servlet to an action because it's already has extends 
 another class.
 Any ideas ?

 I'm getting this in the logs

 2010-05-27 13:46:44,962 [btpool0-8] WARN  
 org.apache.struts2.dispatcher.Dispatcher  - Could not find action or result
 There is no Action mapped for namespace / and action name 
 repository/internal/. - [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)




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



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



Migration problem from 2.0.x to 2.1.6

2010-05-26 Thread Gwen Harold Autencio
Hi,

I got a Servlet which doesn't extends to an action. Looking for a work around 
without extending the servlet to an action because it's already has extends 
another class.
Any ideas ?

I'm getting this in the logs

2010-05-27 13:46:44,962 [btpool0-8] WARN  
org.apache.struts2.dispatcher.Dispatcher  - Could not find action or result
There is no Action mapped for namespace / and action name repository/internal/. 
- [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)


  

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