Re: Envoke Services (Methods of Services) remotley using JSONRPC

2012-03-16 Thread Beat Durrer
Hi guys, Bypassing Tapestry sounds uncool... Why not create a page with as many onActivate methods as you need for your parameters and then use Jackson JSON or a similar Java-to-JSON parser and return it as StreamResponse of your onActivate? There is a Jumpstart example for Webservices, but it c

Re: Envoke Services (Methods of Services) remotley using JSONRPC

2012-03-16 Thread Thiago H. de Paula Figueiredo
On Fri, 16 Mar 2012 08:05:17 -0300, Lance Java wrote: Incorrect!!! You need to tell tapestry to ignore the URL so that it lets the servlet container handle the URL instead of tapestry. Have you configured some sort of spring servlet or spring filter in web.xml? If you want spring to handle

Re: Envoke Services (Methods of Services) remotley using JSONRPC

2012-03-16 Thread Lance Java
FYI I think you will need something like the following in your web.xml. I am surprised that the jsonrpc4j docs don't mention this org.springframework.web.context.ContextLoaderListener contextConfigLocation /WEB-INF/my-application-contex

Re: Envoke Services (Methods of Services) remotley using JSONRPC

2012-03-16 Thread Lance Java
Incorrect!!! You need to tell tapestry to ignore the URL so that it lets the servlet container handle the URL instead of tapestry. Have you configured some sort of spring servlet or spring filter in web.xml? If you want spring to handle URL's then you will need to do this. This is now NOT a tape

Re: Envoke Services (Methods of Services) remotley using JSONRPC

2012-03-16 Thread stebac
Thanks for your advice, It seems to be a chicken/egg problem: if I dont ignore the url: tapestry sends the Index-page, obviously not recognizing that /json/UserService.json is addressed to the Sring-Service. If I ignore /json/.* I get the 404, becouse tapestry does not feel responsible and there

Re: Envoke Services (Methods of Services) remotley using JSONRPC

2012-03-16 Thread Lance Java
> I added "/UserService.json" to the ignorList, but just got 404 as a response You definitely have something wrong with your jsonrpc4j config. Get this working first before thinking about integrating jsonrpc4j with the tapestry filter. FYI, instead of having a ignore filter for "/UserService.json

Re: Envoke Services (Methods of Services) remotley using JSONRPC

2012-03-16 Thread stebac
Thanks again for your replies, I added "/UserService.json" to the ignorList, but just got 404 as a response, so I thought either my spring service is configured wrong (or not running at all), or I need to teach tapestry to work with jsonrpc4j, (on top instead of beside). Either way is ok, if it w

Re: Envoke Services (Methods of Services) remotley using JSONRPC

2012-03-15 Thread Thiago H. de Paula Figueiredo
On Thu, 15 Mar 2012 13:24:40 -0300, Lance Java wrote: Take a look at the link I sent you in regard to using CXF with Tapestry. To use jsonrpc4j with Tapestry you will need to tell tapestry to ignore certain paths using contributeIgnorePathsFilter() in your AppModule This is correct, unless

Re: Envoke Services (Methods of Services) remotley using JSONRPC

2012-03-15 Thread Lance Java
Take a look at the link I sent you in regard to using CXF with Tapestry. To use jsonrpc4j with Tapestry you will need to tell tapestry to ignore certain paths using contributeIgnorePathsFilter() in your AppModule By default, the tapestry filter processes every URL. On Thursday, 15 March 2012,

Re: Envoke Services (Methods of Services) remotley using JSONRPC

2012-03-15 Thread stebac
Thank you very much for your very quick response! Both resources are interessting and resteasy has good chances to make the race ;) but just for couriosity: I invested already some time to get jsonrpc4j to work with tapestry and spring, but without luck. I did the configuration exactly as describ

Re: Envoke Services (Methods of Services) remotley using JSONRPC

2012-03-15 Thread Thiago H. de Paula Figueiredo
On Thu, 15 Mar 2012 09:08:31 -0300, stebac wrote: Hallo! Hi! I don't know any JSON-RPC integrations in Tapestry, but of course that doesn't mean it doesn't exist. :) Tapestry itself has a very nice JSON support, which I guess would help write these integrations. Anyway, take a look at

Re: Envoke Services (Methods of Services) remotley using JSONRPC

2012-03-15 Thread Lance Java
o use jsonrpc4j if there is anything more suitable. > > Thanks in advance! > > Regards > Stefan > > -- > View this message in context: http://tapestry.1045711.n5.nabble.com/Envoke-Services-Methods-of-Services-remotley-using-JSONRPC-tp5567790p5567790.html &

Envoke Services (Methods of Services) remotley using JSONRPC

2012-03-15 Thread stebac
-- View this message in context: http://tapestry.1045711.n5.nabble.com/Envoke-Services-Methods-of-Services-remotley-using-JSONRPC-tp5567790p5567790.html Sent from the Tapestry - User mailing list archive at Nabble.com. - To