Re: Struts2 REST plugin problems

2011-07-05 Thread Łukasz Lenart
2011/7/4 Aelbery Lee aelb...@gmail.com: Yes. I had set struts.rest.namespace in the struts.xml to /ws. It must work, could you show your action's source code ? Do you map like these below: /ws/model - ModelAction.index() /ws/mode/1 - ModelAction.show() Regards -- Łukasz + 48 606 323 122

Re: Struts2 REST plugin problems

2011-07-03 Thread Łukasz Lenart
action not found, ws action. So I must make a mistake. Thanks for you help. -- View this message in context: http://struts.1045723.n5.nabble.com/Struts2-REST-plugin-problems-tp3492324p4544292.html Sent from the Struts - User mailing list archive at Nabble.com

Re: Struts2 REST plugin problems

2011-07-03 Thread Aelbery Lee
Yes. I had set struts.rest.namespace in the struts.xml to /ws. -- View this message in context: http://struts.1045723.n5.nabble.com/Struts2-REST-plugin-problems-tp3492324p4548572.html Sent from the Struts - User mailing list archive at Nabble.com

Re: Struts2 REST plugin problems

2011-07-02 Thread Aelbery Lee
a mistake. Thanks for you help. -- View this message in context: http://struts.1045723.n5.nabble.com/Struts2-REST-plugin-problems-tp3492324p4544292.html Sent from the Struts - User mailing list archive at Nabble.com

Re: Struts2 REST plugin problems

2010-09-02 Thread Rafael Taboada
Hi folks, I've just resolved my issue. My goal is to add struts-restful-plugin to an struts2 existent app. So i needed to have an url handler If I request http://localhost:8080/myApp/login.action, it must be resolved by DefaultActionMapper If I request

Re: Struts2 REST plugin problems

2010-09-02 Thread Rafael Taboada
Hi folks, I've just resolved my issue. My goal is to add struts-restful-plugin to an struts2 existent app. So i needed to have an url handler If I request http://localhost:8080/myApp/login.action, it must be resolved by DefaultActionMapper If I request

Struts2 REST plugin problems

2010-08-31 Thread Rafael Taboada
Hi folks, I have an struts2.0.14 app working well and I decided to migrate to struts2.1.8. Migration worked well. But when I tried to include rest plugin, my current urls to process some actions don't work. I have a http 404 error as a result. My goal is using restful to publish some methods

Re: Struts2 REST plugin problems

2010-08-31 Thread Rafael Taboada
I've just noticed, that rest plugin change the way how i can access to a specific action. When i use http://localhost:8080/myApp/runLogin.action, action mapping is failing. It thinks it is a restful method. and I can access the action putting http://localhost:8080/myApp/runLogin!execute Is there

Re: Struts2 REST plugin problems

2010-08-31 Thread Dale Newfield
On 8/31/10 1:04 PM, Rafael Taboada wrote: I have an struts2.0.14 app working well and I decided to migrate to struts2.1.8. Migration worked well. But when I tried to include rest plugin, my current urls to process some actions don't work. I have a http 404 error as a result. My goal is using

Re: Struts2 REST plugin problems

2010-08-31 Thread Dale Newfield
On 8/31/10 2:05 PM, Rafael Taboada wrote: Is there a chance to my traditional actions can co-exist with restful controllers?... If you're looking to have different parts of your url space get processed by different action mappers, the PrefixBasedActionMapper included in 2.2 might be what

Re: Struts2 REST plugin problems

2010-08-31 Thread Rafael Taboada
Thanks so much for your answer. I migrated my app to 2.1 because I need to use restful plugin, didn't think in 2.2 because it was released just a month ago (i think) and i don't know if it is a good option in production environment. I'll consider your advice. Thanks On Tue, Aug 31, 2010 at 1:21

Re: Struts2 REST plugin problems

2010-08-31 Thread Dale Newfield
On 8/31/10 3:15 PM, Rafael Taboada wrote: I migrated my app to 2.1 because I need to use restful plugin, didn't think in 2.2 because it was released just a month ago (i think) and i don't know if it is a good option in production environment. Theoretically any GA (General Availability) release

Re: Struts2 REST plugin problems

2010-08-31 Thread Rafael Taboada
Hi, I've been looking at PrefixBasedActionMapper. What is the way to configure it? I have in my struts.xml bean type=org.apache.struts2.dispatcher.mapper.ActionMapper name=pseudoRestful class=org.apache.struts2.dispatcher.mapper.Restful2ActionMapper/ constant name=struts.mapper.class

Re: Struts2 REST plugin problems

2010-08-31 Thread Dale Newfield
On 8/31/10 4:40 PM, Rafael Taboada wrote: I have in my struts.xml bean type=org.apache.struts2.dispatcher.mapper.ActionMapper name=pseudoRestful class=org.apache.struts2.dispatcher.mapper.Restful2ActionMapper/ constant name=struts.mapper.class

Re: Struts2 REST plugin problems

2010-08-31 Thread Rafael Taboada
Great, But I'm having the same problem HTTP status 404 I've downloaded struts-blank2.2.1 and added jars about restful plugin (struts2-rest-showcase-2.2.1) My struts.xml looks like : struts constant name=struts.enable.DynamicMethodInvocation value=true / constant name=struts.devMode

Re: Struts2 REST plugin problems

2010-08-31 Thread Rafael Taboada
Hi, I was debugging PrefixBasedActionMapper and a I noticed that: - It gets the right actionmappers /service - org.apache.struts2.dispatcher.mapper.restful2actionmap...@34e6529c - org.apache.struts2.dispatcher.mapper.defaultactionmap...@50e8709d - When I can access the uri

Re: Struts2 REST plugin problems

2010-08-31 Thread Dale Newfield
On 8/31/10 5:17 PM, Rafael Taboada wrote: But I'm having the same problem HTTP status 404 So it is failing to find any valid action mapping? What do your logs show? This might help you figure out what's going on: http://struts.apache.org/2.x/docs/config-browser-plugin.html My struts.xml