RE: Restlet + Spring + Hibernte + Oauth : Injected Dao is null

2012-07-27 Thread Jerome Louvel
r or maybe setting it via Spring. Hope this helps. Best regards, Jerome -- http://www.restlet.com http://twitter.com/#!/jlouvel -Message d'origine- De : Thierry LAU [mailto:la...@sfeir.com] Envoyé : jeudi 26 juillet 2012 14:32 À : discuss@restlet.tigris.org; Ioannis Mavroukakis Obje

RE: Restlet + Spring + Hibernte + Oauth : Injected Dao is null

2012-07-26 Thread Thierry LAU
Hi Ioannis Thanks for your reply. I did manage to avoid a null Dao. However, It bypass the OAuthAuthorizer so there is no more authorization control. How can I attach OAuthAuthorizer between my protected resource and the Application in the applicationContext.xml so Restlet performs authorizat

RE: Restlet + Spring + Hibernte + Oauth : Injected Dao is null

2012-07-26 Thread Ioannis Mavroukakis
Hi Thierry, I had the same issue, IIRC the problem is that Restlet instantiates a Resource per request. If that Resource is not managed by spring,your injected DAO will always be null. You need to use org.restlet.ext.spring.SpringFinder in your Application like so: (be warned, there's more to t

RE: Restlet + Spring + Hibernte + Oauth : Injected Dao is null

2012-07-26 Thread Thierry LAU
Let me explain more whatI am trying to perform. I'm trying to create the MyProtectedApplication describe in the oauth page of Restlet site http://wiki.restlet.org/docs_2.1/13-restlet/28-restlet/392-restlet.html This is the code : public class MyProtectedApplication extends Application{ publ

Restlet + Spring + Hibernte + Oauth : Injected Dao is null

2012-07-26 Thread Thierry LAU
Hi I have actually some difficulty to inject my Dao into my ServerResource. Injected Dao is null This is the bean in my applicationContext.xml : This is the MyProtectedApplication code : private DogsRestResource dogsRestResource; + getter setter

Problems with Restlet Spring integration

2011-11-11 Thread Sagar Keer
Hello, I am attempting to convert my regular restlet application to one integrated with Spring. I followed the standard steps listed here: http://wiki.restlet.org/docs_2.0/13-restlet/28-restlet/70-restlet/196-restlet.html I configured my web.xml to get the context directly from my Router

Re: GWT Restlet Spring timeout problem

2011-04-26 Thread Musa YUVACI
e it is a bug.) Best Regards Musa YUVACI -- View this message in context: http://restlet-discuss.1400322.n2.nabble.com/GWT-Restlet-Spring-timeout-problem-tp6249038p6308310.html Sent from the Restlet Discuss mailing list archive at Nabble.com.

Re: GWT Restlet Spring timeout problem

2011-04-16 Thread Thierry Boileau
egards > Musa YUVACI > > -- > View this message in context: > http://restlet-discuss.1400322.n2.nabble.com/GWT-Restlet-Spring-timeout-problem-tp6249038p6268769.html > Sent from the Restlet Discuss mailing list archive at Nabble.com. > > -

Multi-tenant and multi-application in restlet + spring environment

2011-04-13 Thread Daniele Dellafiore
x27;ll consider of course :) In this scenario, 1. the springContextFactory is something I made up, that would take the app parameter, use it to load a whole set of spring xml files with the appropriate placeholder. 2. the restlet spring beans are more tricky. The server (host, port...) so is the component

Re: GWT Restlet Spring timeout problem

2011-04-13 Thread Musa YUVACI
://restlet-discuss.1400322.n2.nabble.com/GWT-Restlet-Spring-timeout-problem-tp6249038p6268769.html Sent from the Restlet Discuss mailing list archive at Nabble.com. -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2719423

Re: GWT Restlet Spring timeout problem

2011-04-13 Thread Thierry Boileau
ent (GWT + Servlets) and Service (Restlet + Spring + > Hibernate). > > GWT call servlet and servlet connects to Service layer. One person getting > one request is working well but when GUI start to get more requests or more > peoples sign in and taking data from server, Servlet st

GWT Restlet Spring timeout problem

2011-04-07 Thread Musa YUVACI
Hi we are developing web based application on glassfishv3. We have 2 application as a client (GWT + Servlets) and Service (Restlet + Spring + Hibernate). GWT call servlet and servlet connects to Service layer. One person getting one request is working well but when GUI start to get more requests

RE: Re: Restlet + Spring + Tomcat memory problems

2010-06-02 Thread Jerome Louvel
FYI, this bug has just been fixed in SVN trunk. Best regards, Jerome Louvel -- Restlet ~ Founder and Technical Lead ~ http://www.restlet.org Noelios Technologies ~ http://www.noelios.com -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4

Re: restlet + spring + camel + tomcat

2010-03-01 Thread tapdur
t; -- > Restlet ~ Founder and Technical Lead ~ http://www.restlet.org > Noelios Technologies ~ http://www.noelios.com > > > > -Message d'origine- > De : tapdur [mailto:[hidden email]] > Envoyé : lundi 8 février 2010 22:52 > À : [hidden email] > Objet : restlet +

RE: restlet + spring + camel + tomcat

2010-02-26 Thread Jerome Louvel
and Technical Lead ~ http://www.restlet.org Noelios Technologies ~ http://www.noelios.com -Message d'origine- De : tapdur [mailto:tapdu...@gmail.com] Envoyé : lundi 8 février 2010 22:52 À : discuss@restlet.tigris.org Objet : restlet + spring + camel + tomcat Hi, i am trying t

restlet + spring + camel + tomcat

2010-02-08 Thread tapdur
.nabble.com/restlet-spring-camel-tomcat-tp4537365p4537365.html Sent from the Restlet Discuss mailing list archive at Nabble.com. -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2445987

Re: GAE + Restlet + Spring

2009-12-14 Thread Thierry Boileau
Hi Jim, you can get it from the download page: http://www.restlet.org/downloads/ Best regards, Thierry Boileau >> Hi Jim, >> >> >>> Is there any reason why it's missing? Is it incompatible with GAE? >>> >> not at all... >> Thanks a lot for your report, the SpringServerServlet is now

Re: GAE + Restlet + Spring

2009-12-12 Thread Jim Alateras
> Hi Jim, > >> Is there any reason why it's missing? Is it incompatible with GAE? > > not at all... > Thanks a lot for your report, the SpringServerServlet is now part of > the gae edition! > thanks Thierry, where can i download it from? cheers -

Re: GAE + Restlet + Spring

2009-12-11 Thread Thierry Boileau
Hi Jim, >Is there any reason why it's missing? Is it incompatible with GAE? not at all... Thanks a lot for your report, the SpringServerServlet is now part of the gae edition! Best regards, Thierry Boileau > Hey All, > > Started working with GAE + Restlet by following instructions on the >

Re: GAE + Restlet + Spring

2009-12-11 Thread Thierry Boileau
Hello Jim, I can say, that the servlet is explicity removed from the jar, but I don't know why... I check that. Best regards, Thierry Boileau > Hey All, > > Started working with GAE + Restlet by following instructions on the > wiki > (http://wiki.restlet.org/docs_2.0/13-restlet/275-restlet/

GAE + Restlet + Spring

2009-12-10 Thread Jim Alateras
Hey All, Started working with GAE + Restlet by following instructions on the wiki (http://wiki.restlet.org/docs_2.0/13-restlet/275-restlet/252-restlet.html ). I downloaded the gae enabled version of the restlet framework and everything worked as outlined in the article. I now want to extend m

Re: Restlet + Spring + Tomcat memory problems

2009-02-28 Thread Tim Peierls
oelios Technologies ~ Co-founder ~ http://www.noelios.com > > > -Message d'origine- > De : Felix Leipold [mailto:felix.leip...@gmx.de] > Envoyé : lundi 23 février 2009 19:34 > À : discuss@restlet.tigris.org > Objet : Restlet + Spring + Tomcat memory problems > > Hi G

RE: Restlet + Spring + Tomcat memory problems

2009-02-28 Thread Jerome Louvel
uvel -- Restlet ~ Founder and Lead developer ~ http://www.restlet.org Noelios Technologies ~ Co-founder ~ http://www.noelios.com -Message d'origine- De : Felix Leipold [mailto:felix.leip...@gmx.de] Envoyé : lundi 23 février 2009 19:34 À : discuss@restlet.tigris.org Objet : Restlet + Sp

Restlet + Spring + Tomcat memory problems

2009-02-23 Thread Felix Leipold
Hi Guys, we are using restlet with spring on tomcat. We use the RestletFrameWorkServlet in which we pass a class extending SpringRouter. Everything seemed to stop nicely. All our destroy methods got called, but somehow all the application classes stuck. After some memory debugging we came up w

OT: Re: RESTlet + Spring

2009-01-21 Thread Rhett Sutphin
.Bootstrap.main(Bootstrap.java:413) > > Anybody seen this before? > > On Wed, Jan 21, 2009 at 2:11 AM, Jerome Louvel > wrote: > Hi Jean-Philippe, > > Good to hear! To customize the status page, have a look at the > StatusService class and related property for your Applica

Re: RESTlet + Spring

2009-01-21 Thread Jean-Philippe Steinmetz
; Jérôme Louvel > -- > Restlet ~ Founder and Lead developer ~ http://www.restlet.org > Noelios Technologies ~ Co-founder ~ http://www.noelios.com > > -- > *De :* Jean-Philippe Steinmetz [mailto:caskate...@gmail.com] > *Envoyé :* mardi 20 janvier 2009 23:57

RE: RESTlet + Spring

2009-01-21 Thread Jerome Louvel
s ~ Co-founder ~ <http://www.noelios.com/> http://www.noelios.com _ De : Jean-Philippe Steinmetz [mailto:caskate...@gmail.com] Envoyé : mardi 20 janvier 2009 23:57 À : discuss@restlet.tigris.org Objet : Re: RESTlet + Spring Ok i've changed my depedencies to use restlet 1.1-SNA

Re: RESTlet + Spring

2009-01-21 Thread Jean-Philippe Steinmetz
> Noelios Technologies ~ Co-founder ~ http://www.noelios.com > > > > -- > *De :* Jean-Philippe Steinmetz [mailto:caskate...@gmail.com] > *Envoyé :* mardi 20 janvier 2009 22:42 > *À :* discuss@restlet.tigris.org > *Objet :* Re: RESTlet + Spring > > I'm using

RE: RESTlet + Spring

2009-01-20 Thread Jerome Louvel
r ~ <http://www.restlet.org/> http://www.restlet.org Noelios Technologies ~ Co-founder ~ <http://www.noelios.com> http://www.noelios.com _ De : Jean-Philippe Steinmetz [mailto:caskate...@gmail.com] Envoye : mardi 20 janvier 2009 22:42 A : discuss@restlet.tigris.org Objet : Re:

Re: RESTlet + Spring

2009-01-20 Thread Jean-Philippe Steinmetz
I'm using maven to manage all the dependencies. It's possible something is incorrectly done in my pom. For Spring I am using 2.5.6 for spring-core, spring-context and spring-web. I am using 2.0.8 for spring-hibernate3 and spring-jpa. For restlet I am using 1.1.1 for everything. Here is my pom.xml

Re: RESTlet + Spring

2009-01-20 Thread Rhett Sutphin
Hi Jean-Philippe, At first glance, the error seems to be a generic spring error -- that one of the wired dependencies is of the wrong type. Looking at your XML, I wonder if it is failing here: > value="persistenceUnitManager"/> > I think those should be "ref" instead of "v

RESTlet + Spring

2009-01-20 Thread Jean-Philippe Steinmetz
Hi All, I'm working on integrating restlet and spring for use in a web app to be run under Tomcat. After reading up on the Spring extension (thank you Jerome) I have decided to go the restlet as the main controller route. This is due to the fact that Spring is only being used as a Dao implementati

RE: Re: Restlet & Spring integration problem

2008-12-11 Thread postmaster
Hello, thanks for the answer:). Spring so why should I use feel extending the functionality of an existing application: (. You have some examples of interaction restlet-spring realized that an application servelet container? Hello, Marko > Hello, > > I think there are severals

Re: Restlet & Spring integration problem

2008-12-11 Thread Thierry Boileau
Hello, I think there are severals problems. In the web.xml file there is no link with the "context-application.xml " file. The FirstStepsApplication defines only a Router as a root Restlet. That means that all incoming requests will be routed to nothing. I just wonder, why do you need Spring? An

Restlet & Spring integration problem

2008-12-11 Thread postmaster
Hello, I have a problem with restlet libraries and drives. I configured the file web.xml: org.restlet.application firstSteps.FirstStepsApplication RestletServlet com.noelios.restlet.ext.servlet.ServerServlet

RE: Access Logging in Restlet-Spring application

2008-11-17 Thread Jerome Louvel
Hi Gabriel, Were you able to solve this logging issue? Do you have sample code to reproduce the issue? Otherwise, did you consider other Restlet-Spring integration modes beside RestletFrameworkServlet? For example, SpringServerServlet might give you better control on the logging (which will be

Access Logging in Restlet-Spring application

2008-11-11 Thread Gabriel Falkenberg
Hi, Is there a way to use the access log functionality in LogService in a Restlet/Spring application? A minimal Restlet application will log accesses by default but when I add the Spring integration the access logging stops. Since Spring seems to use commons-logging by default I've tried t

Re: Restlet Spring and Guards

2008-10-24 Thread Gabriel Falkenberg
Hi, and thanks for your help. I think I'm finally starting to get a grip on how an application is supposed to be organized. The solution looks like this: >From web.xml: restservice com.noelios.restlet.ext.spring.RestletFrameworkServlet targetRestletBeanN

Re: Restlet Spring and Guards

2008-10-21 Thread Kevin Conaway
Both the Application class and SpringRouter classes are instances of Restlet so I don't believe you need an Application instance. Wherever you have injected your SpringRouter, simply inject your Guard class with the SpringRouter as the "next" property. Kevin On Mon, Oct 20, 2008 at 8:19 AM, Gabr

Re: Restlet Spring and Guards

2008-10-20 Thread Rhett Sutphin
Hi Gabriel, On Oct 20, 2008, at 7:19 AM, Gabriel Falkenberg wrote: I wonder if there is a special way to add guards/filters to a Restlet application when using the Spring extension. My application does not seem to have a separate Application class, only a SpringRouter. Is an Application class r

Restlet Spring and Guards

2008-10-20 Thread Gabriel Falkenberg
Hi I wonder if there is a special way to add guards/filters to a Restlet application when using the Spring extension. My application does not seem to have a separate Application class, only a SpringRouter. Is an Application class required for this? Best Regards Gabriel Falkenberg

Re: restlet + spring --- managed resources

2008-04-09 Thread Konstantin Läufer
In my humble opinion, the current behavior of Resource.init (described below by Brian) is inconsistent with the role of the init method in the Spring bean lifecycle and with the method's own Javadoc. In the Spring bean lifecycle, the init method is invoked after the properties are set. Therefore, t

RE: restlet + spring --- managed resources

2008-03-10 Thread Jerome Louvel
onnovan > Envoyé : samedi 8 mars 2008 14:23 > À : discuss@restlet.tigris.org > Objet : Re: restlet + spring --- managed resources > > Rhett Sutphin detailedbalance.net> writes: > > > The way I handle this is to do internal configuration of > the resource, > >

Re: restlet + spring --- managed resources

2008-03-08 Thread Brian Donnovan
Rhett Sutphin detailedbalance.net> writes: > The way I handle this is to do internal configuration of the resource, > including setting variants, in the init method. For example: > > @Override > public void init(Context context, Request request, Response > response) { > s

Re: restlet + spring --- managed resources

2008-03-07 Thread Rhett Sutphin
Hi Brian, On Mar 7, 2008, at 9:50 AM, Brian Donnovan wrote: Rhett Sutphin detailedbalance.net> writes: Hi Brian, On Mar 6, 2008, at 10:04 AM, Brian Donnovan wrote: thanks for the hint, i will try it that way! just one thing, i looked at the springresource class and it seems to not have mu

Re: restlet + spring --- managed resources

2008-03-07 Thread Brian Donnovan
Rhett Sutphin detailedbalance.net> writes: > > Hi Brian, > > On Mar 6, 2008, at 10:04 AM, Brian Donnovan wrote: > > thanks for the hint, i will try it that way! > > just one thing, i looked at the springresource class and it seems to > > not have > > much in common with the original resource

Re: restlet + spring --- managed resources

2008-03-06 Thread keke
If you like Groovy, you might would like to give a try at GroovyRestlet's Spring Integration feature. For detail information see here http://groovy.codehaus.org/GroovyRestlet On Thu, Mar 6, 2008 at 10:47 PM, Brian Donnovan <[EMAIL PROTECTED]> wrote: > Hi everyone, > i´m trying to setup restlet w

Re: restlet + spring --- managed resources

2008-03-06 Thread Rhett Sutphin
Hi Brian, On Mar 6, 2008, at 10:04 AM, Brian Donnovan wrote: thanks for the hint, i will try it that way! just one thing, i looked at the springresource class and it seems to not have much in common with the original resource class. the great thing of the resource class were the hooks for ge

Re: restlet + spring --- managed resources

2008-03-06 Thread Brian Donnovan
Florian Schwarz tngtech.com> writes: > > Hi Brian, > > you can manage Restlets and (Restlet-) resources with the > org.restlet.ext.spring extension in a spring context. Use this classes > (SpringComponent, SpringResource ...) as your base classes and it is > simple to configure them with Spr

Re: restlet + spring --- managed resources

2008-03-06 Thread Florian Schwarz
Hi Brian, you can manage Restlets and (Restlet-) resources with the org.restlet.ext.spring extension in a spring context. Use this classes (SpringComponent, SpringResource ...) as your base classes and it is simple to configure them with Spring and use it's dependency injection mechanisms.

restlet + spring --- managed resources

2008-03-06 Thread Brian Donnovan
Hi everyone, i´m trying to setup restlet with spring, i´m wondering, what is the best practise with restlet resources? from my resource (eg. UserResource) í try to retrieve the requested data from a db, so what i´m trying to figure out is, whether its possible to manage the resources in spring cont

New sample: Restlet + Spring + Tomcat

2007-01-11 Thread Jerome Louvel
Hi all, Sreenivas Reddy has developed a sample application that illustrates how to combine Restlet 1.0 RC1 with Spring 2.0, all deployed in Apache Tomcat 5.5. It illustrates how to configure your URI -> Restlet mappings, using a Spring XML configuration document. It also perfectly leverages the