RE: Post method not work when deployed to GAE

2011-01-02 Thread webpost
Hi Joe, I don't have a solution for you but I have been having the same problem. In my search through the forums, I noticed that several others have reported similar problems in recent weeks:

RE: Is there a way to setup hierarchy of routers?

2010-12-29 Thread webpost
Thanks Jerome. This worked with the 2.0.3 version that I was using. Regards, RK. -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2694530

Issues in migrating to 2.1 M2

2010-12-29 Thread webpost
Hi, I am trying to migrate my existing 2.0.3 based Restlet framework application to 2.1 M2. I replaced org.restlet.jar and org.restlet.ext.json.jar in my application and fixed a couple of router.attach related issues in pointed out in terms of casting of parameters. After that I tried to run

RE: ClientResource Performance

2010-12-29 Thread webpost
Hi Jerome, I have tried as you suggested, but I am having different issues in different tests. I have initialized a static variable in my application with Client object one time and using it for all my ClientResource calls. Using these changes, if I now run my test that does a GET of a

DomRepresentation.getNode(someXpath) returns null

2010-12-29 Thread webpost
Hi all, this is the first time I post on the mailing list so please apologies if some informations are missing: just ask for them and I'll give you them with pleasure :) I wrote this simple sample of code that should work fine: import org.restlet.ext.xml.DomRepresentation; DomRepresentation

Using ClientResource inside ChallengeAuthenticator

2010-12-28 Thread webpost
Hi, We are using ChallengeAuthenticator infront of a router in our application. We have set a Verifier into this ChallengeAuthenticator which implements a getLocalSecret method. Inside this method we are trying to do some checks based on the given identifier and get its secret. In this

ClientResource Performance

2010-12-27 Thread webpost
Are there any benchmarks in terms of performance when communicating between client and server running on different machines in Restlet Framework? Every ClientResource call seems to open a HttpConnector and then close it based on my release() call on the ClientResource. I find the overall

Free book chapter review request

2010-12-27 Thread webpost
Hi all, I'm writing a free mini-book on GWTGAE, at http://code.google.com/p/gwt-gae-book/ I've just completed a draft version of working with REST services, using restlet. It's at http://code.google.com/p/gwt-gae-book/wiki/ManagingLocations Would you please have a look and let me know your

Is there a way to setup hierarchy of routers?

2010-12-26 Thread webpost
Hi, We have been trying to use Restlet framework and having difficulty in implementing a hierarchy of routers. We want to have our server running listening with a route to our main application gateway. For example anything that matches /myapp/mygateway/ is received by my router. This router

Doubt in assigning a text value to a java variable

2010-12-23 Thread webpost
Hi, Am working in a restlet 2.1. I created a html program, in that am having a textbox. I can able to access the Restlet 8182 port via html program using get method. How i should want to assign the value of the textbox created in html to a java variable. Can anyone please help me? Thanks

RE: Re: how to reuse ServerResource to store multiple resource and retrieve it?

2010-12-21 Thread webpost
I see. Let me confirm the concept. if I need more than two levels? say contacts/{category}/{id} Would it be correct conceptually: router.attach(/contact/{category}/{id}, ContactServerResource.class); and in ContactServerResource, String categoryName=

how to reuse ServerResource to store multiple resource and retrieve it?

2010-12-20 Thread webpost
How do i reuse the ServerResource to store many resource? for instance, i have already do: router.attach(/contact/123, ContactServerResource.class); How do i type in a different url like /shops/1234 to get to the ContactServerResource's other resource. it seems that one URL is

Question about redirect on example/book/rest/ch7

2010-12-14 Thread webpost
Hi I am trying out the Bookmark example listed for chapter 7 of the restful web service book. Everything works except when I try to get a list of bookmarks for a particular user, it always says not found. If I comment out the handle function in the BookmarksResource, then the request to

java.io.OutputStream in Restlet? - Connection to JENA

2010-12-14 Thread webpost
Dear Developer; How are you? I am using RESTLET for implementing Linked Open data. My problem is that I can not connect Jena output into Restlet representation. Because Jena only writes its output to java.io.OutputStream directly. So, I can not create any representation associated with RESTLET.

RE: BufferOverflowException v2.1

2010-12-09 Thread webpost
Hi, I think this is the same issue as discussed here: http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2682395 It's been fixed in the latest 2.1 snapshot. Sure. Not sure how you normally do this, but here is a JUnit test class which exercises a slightly modified

RE: gae edition deploy error

2010-12-08 Thread webpost
thanks for the reply. sorry i posted at the google app engine forum and forgot to do it here. yes, i compiled it again but i get this. compiling module org.restlet.example.gae.serialization.Serialization Validating newly compiled units [ERROR] Errors in

RE: Serialization example: NoSuchMethodError on Router.attach

2010-12-08 Thread webpost
Guido, thanks for the advice. However ... Even when I set the property as a VM argument using :- -Dorg.restlet.engine.io.bufferSize=102400 BEFORE the Restlet Application is launched, BEFORE it's constructor is called, and BEFORE the Restlet engine is started, for my ServerResource, the buffer

BufferOverflowException v2.1

2010-12-07 Thread webpost
(separated from previous topic) Guido thanks for the advice. However ... I have tried again to resolve this problem by using the latest 2.1 snapshot but still to no avail. I set the property as early as I can(actually as a launch argument using -D{property-name}, that is, long before the

Restlet DigestAuthenticator hashed local secret

2010-12-06 Thread webpost
Hey folks, I am trying to secure some parts of a Restlet 2.0 API using HTTP Digest through the DigestAuthenticator class. In all of the examples I have seen, the DigestAuthenticator expects to receive a wrapped LocalVerifier through setWrappedVerifier(LocalVerifier localVerifier). Also in all

RE: Serialization example: NoSuchMethodError on Router.attach

2010-12-05 Thread webpost
I have an update to this post. Jerome pointed out the cause of the NoSuchMethodError problem was likely to be a CLASSPATH issue, i.e. something was still picking up the 2.0.3 version rather than 2.1. He was correct and once that was sorted out that particular problem hsa gone away. However

RE: How do I get DOMRepresentation from Response in restlet 2.0

2010-12-03 Thread webpost
As long as the response is valid xml, you can just use DomRepresentaion dom = new DomRepresentation(response.getEntity()) -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2687633

RE: Post method not work when deployed to GAE

2010-12-01 Thread webpost
I have the same problem. I am using 2.1 milestone 1. I can Get but not Put or Post a Serializable object Mike -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2687173

How do I get DOMRepresentation from Response in restlet 2.0

2010-11-30 Thread webpost
Hi, Currently I am migrating from Restlet 1.1 to 2.0.3 and I wonder how to get a DOM Representation from a Response object. In the old version this was achieved by calling getEntityAsDom on the response. But this method is not available anymore. Please provide help on the best practice to

RE: Re: Unexpected status codes when using restlet with jackson

2010-11-29 Thread webpost
}' (single-quotes are delimiters for shell, double-quotes are part of the content. Or maybe just -d '1' -- that should be a valid JSON value, too. It does seem a shame that JSON requires double-quotes around the keys, but that's how it is. --tim On Mon, Nov 29, 2010 at 5:56 AM, webpost

RE: Re: JAX RS + Tomcat (Servlet Container)

2010-11-26 Thread webpost
Hi Stephan, for now we are trying the following solution: We created an HttpServletRequestWrapper which overrides the method #getInputStream. In this method we read the parameters from request#getParameterMap and return it into an ByteArrayInputStream. We will let you know if it works. Best

RE: Re: router.attach advice please...

2010-11-24 Thread webpost
Hi Thierry Many thanks for your help. I'm not using Ajax, and I don't think this is a 'same origin policy' mechanism issue, becuase if I substitute: router.attach(/trace, MyClass.class) with: router.attachDefault(myClass.class) then it all works fine, when my browser points to:

Restlet and SIP

2010-11-18 Thread webpost
All, I am engaged in a VOIP project for which I would very much like to have a GWT SIP client. Today, I noticed that the Restlet road map has identitified a SIP client to be ready Q2 2011. I need this. My questions are simple. Can I be of any help? and if so how?

RE: Using GWT extension takes over the content negotiation!

2010-11-15 Thread webpost
Thanks Thierry for your prompt reply. The issue still persists in release 2.0.3; without the @Get(xml|gwt) annotation, the target Variant is always null resulting in the GwtConverter and XStreamConverter score() methods both returning 0.5. Because GwtConverter comes first in my build, it is

Can not access wiki..

2010-11-15 Thread webpost
Is there a IP Block on the wiki? I can't access it from my home machine, but can from a server at work. My address is in the range 69.50.48.X Trying to look up some documentation or info about the project, but can't seem to get anything! Very frustrating!!!

Wiki access restricted...

2010-11-15 Thread webpost
(sorry if this is dupped, not sure if it posted before) Is there a IP Block on the wiki? I can't access it from my home machine, but can from a server at work. My address is in the range 69.50.48.X Trying to look up some documentation or info about the project, but can't seem to get anything!

Client proxy problem

2010-11-14 Thread webpost
Hello, I keep getting Error: Can't parse the enclosed entity in my GWT client. It started to appear after I upgraded Restlet to 2.1M4 and tried to replace GWTShellServlet Wrapper with ServerServlet. I will be thankful for any guide. --

GWT Serialization problem

2010-11-12 Thread webpost
Hi, I'm having problems following the First application example in http://wiki.restlet.org/docs_2.0/13-restlet/21-restlet/318-restlet/303-restlet/version/live. There seems to be something going wrong with the GWT serialization of the Contact object on the server. I can see the GET request

RE: Using GWT extension takes over the content negotiation!

2010-11-12 Thread webpost
Ok, I don't know if this is idiomatic Restlet, but I solved the issue by doing this: @Override public Restlet createInboundRoot() { getMetadataService().addExtension(x-java-serialized-object+gwt, MediaType.APPLICATION_JAVA_OBJECT_GWT); ... And annotating the

RE: Re: setStatus() 500 error with newline in description

2010-11-12 Thread webpost
Thank you for your help Stephan! -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2681134

RE: GWT Serialization problem

2010-11-12 Thread webpost
Sorry, duplicate of http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2681028 -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2681263

POST method not working (Error 405)

2010-11-12 Thread webpost
I'm trying to submit a post request and have the current @Post annotation set in my handler class on the server. I'm getting an error 405 returned though stating that this method isn't allowed. Is the annotation the only thing I have to set or am I missing something? I'm using the post

HTTP POST - error 405 Method not allowed

2010-11-12 Thread webpost
I'm trying to submit a post request and have the current @Post annotation set in my handler class on the server. I'm getting an error 405 returned though stating that this method isn't allowed. Is the annotation the only thing I have to set or am I missing something? I'm using the post

RE: POST method not working (Error 405)

2010-11-12 Thread webpost
Here is a snippet of the client code: ... final Representation rep = form.getWebRepresentation(); ClientResource householdResource = new ClientResource(http://localhost:8080/REST/household;); final Representation representation = householdResource.post(rep); ... The code on the server looks

Error when posting to webapp running on 2.1MS1

2010-11-12 Thread webpost
I get this exception when trying to send a message: SEVERE: Allocate exception for servlet RestletServlet java.lang.ClassNotFoundException: org.restlet.engine.http.ServerCall at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1645) at

RE: POST method not working (Error 405)

2010-11-12 Thread webpost
FIXED the error by doing this: It seems my annotations aren't being picked for some reason so in the constructor for my resource handler I have added this code. // Declare the kind of representations supported by this resource. final SetMethod allowedMethods = new HashSetMethod();

Using GWT extension takes over the content negotiation!

2010-11-11 Thread webpost
Hi Restlet team, I'm using Restlet 2.0.1 JEE edition, with both the GWT and XStream extensions. The idea is to have a web service that ordinarily returns XML representations of POJOs except when called from Restlet GWT. However despite setting the Accept header of the request, e.g. Accept:

RE: How to Force URL Encoding Before URI Matching?

2010-11-11 Thread webpost
Did you resolve this? I'm having the same problem... -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2681122

Exception in ClientResource.get()

2010-11-11 Thread webpost
Hi, im trying to consume a restlet get method i've implemented, but i get this exception. 11-11 11:08:58.224: ERROR/AndroidRuntime(446): FATAL EXCEPTION: main 11-11 11:08:58.224: ERROR/AndroidRuntime(446): java.lang.NullPointerException 11-11 11:08:58.224: ERROR/AndroidRuntime(446): at

GWT Serialization problem

2010-11-11 Thread webpost
I'm trying to follow the instructions on the First Application example (http://wiki.restlet.org/docs_2.0/13-restlet/21-restlet/318-restlet/303-restlet.html) to integrate Restlet and GWT. I'm running Restlet JSE edition (2.1M1) on the server, running standalone. On the client I'm using version

setStatus() 500 error with newline in description

2010-11-10 Thread webpost
Hi All, I am trying to use setStatus with a newline in the description. This is a snipper of the server code with the error: public String acceptGet(String in) throws Exception { Status SERVER_ERROR_INTERNAL = new Status(530); getResponse().setStatus(SERVER_ERROR_INTERNAL, This

RE: Hang when calling setStatus with CLIENT_ERROR_BAD_REQUEST

2010-11-09 Thread webpost
version: 2.0.3 (stable) I am seeing this too, although not only on CLIENT_ERROR_BAD_REQUEST. Did you get anywhere discovering what it might be ? Regards Fraser -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2680149

XStream extention and NO_REFERENCES

2010-11-09 Thread webpost
I am using the XStream extension with ServerResource, and the generated XML contains references. Is there a way to disable this? It seems Xstream.setMode(XStream.NO_REFERENCES) should do it, but how do i get the XStream instance from within the @Get(xml) retrieve() method?

RE: Re: newbie question

2010-11-08 Thread webpost
That is promising news. Is there anybody who has done that who might have a few lines of sample code (with import jars) that hooks into Amazon SDB to get me started? --

Nested routers and keeping remaining part

2010-11-03 Thread webpost
Hi ! Is there a way to tell a router to not update the remaining part of the request so that you can have nested routers acting on the same remaining part. To be clear, my original need is, I have anonymous and authenticated resources but flat URLs. Kind of : /aaa : anon - resource /bbb : auth -

RE: Socket Exception using Redirector

2010-11-03 Thread webpost
I was able to suppress persistent connections by overriding createComponent and setting the http client's context parameters. I am not sure that is the best way of doing that but it is working now. It is still unsatisfying to suppress persistent connections as using persistent connections is

Changing content-type on ClientResource

2010-11-03 Thread webpost
I have a ServerResource that uses the @Put(xml) annotation like this: public interface TestResourceInterface { @Put(xml) public TestClass store(TestClass tc); ... } public class TestResource extends ServerResource implements TestResourceInterface { @Override public TestClass

RE: Restlet client code does not work in Restlet Server (ServerResource) service.

2010-11-01 Thread webpost
Hi I tried some more by using standard URLConnection inside the same block like... - URL yahoo = new URL(http://www.yahoo.com;); URLConnection yc = yahoo.openConnection(); BufferedReader in = new BufferedReader(

GWT/Restlet/GXT

2010-11-01 Thread webpost
My team is evaluating technologies for out new GUI. However, I am struggling at how to connect Restlets with GXT. I saw this posting by jlouvel and would love to know if the code or the tutorial/article existed. http://restlet.tigris.org/issues/show_bug.cgi?id=1094 Consider providing REST

A few questions about restlet.

2010-10-29 Thread webpost
Hi, i was reading the tutorials, and i'm a little confused. Let's say that i want to have this uris: 1) http://localhost:/code/isvalid/{codeNumber} in this uri i would like to check in my back if {codenumber} is a valid code 2) http://localhost:/code/create in this uri, the back will

Restlet client code does not work in Restlet Server (ServerResource) service.

2010-10-29 Thread webpost
I hope I'm not spamming the list. I tried post once, but the message doesn't seem to show up. I'm using restlet 2.0rc4 on BSD, and run into some interesting problem. I'm trying to make http request using restlet client from inside restlet server code (inside ServerResource @post method).

Trying to use restlet client from inside restlet server code

2010-10-29 Thread webpost
Hi, I'm using restlet 2.0rc4 on BSD, and run into some interesting problem. I'm trying to make http request using restlet client from inside restlet server code (inside ServerResource @post method). Code snippet is as following: InetAddress yahoohost =

ClientResource.wrap() proxy will not POST json

2010-10-29 Thread webpost
I am using the Android-2.0.1 and have interface: public interface FarmerResource { @Get public Farmer[] retrieve(); @Put(json) public Farmer store(Farmer farmer); @Post(json) public void update(Farmer farmer); @Delete public void remove(); } Then:

RE: Restlet client code does not work in Restlet Server (ServerResource) service.

2010-10-29 Thread webpost
Hi Jerome, I didn't see any response, only your name as author of response post. :-) Anyway, should I add any issue to your bug tracking in this case? --Patrick -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2677196

RE: Cannot request resources from GWT client when using Collection as a parmeter?

2010-10-28 Thread webpost
Thank you for the fix! I am looking forward to the new release! -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2676292

how to get String with space inside

2010-10-28 Thread webpost
I am trying to transfer a String with space character inside to server, but server side can not retrieve it properly. for example, if I send the string of London City, then server will display as London+City. How can I retrieve the String properly from server side? my client code is: String

RE: ClientResource and HttpClientHelper in 2.0.1

2010-10-28 Thread webpost
Thanks Thierry, I missed the context.setClientDispatcher call when looking at the api. btw, very much enjoying Restlet! -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2676681

RE: Re: Setting cookies

2010-10-20 Thread webpost
Yes, this worked, it looks like I was missing the 'getResponse()' in 'this.getResponse().getCookieSettings().add(new CookieSetting(0, cookieName, cookieValue));' Thanks so much for your help, I spent so long trying to figure this out. --

Setting cookies

2010-10-18 Thread webpost
I'm having a heck of a time trying to set a cookie. This is the code I have so far: In the first part attempts to read any cookies that I put there before, this always comes up blank. The second part tries to add a new cookie to the response. Theres a few places that I could have gone

RE: Re: POST Requests return with a 405 with @Post annotated method

2010-10-18 Thread webpost
I get this problem with 2.0.1 and 2.1 fetched today (18 Oct 2010) (Java SE versions) using the internal server. The example FirstResource application fails. Problem also occurs with PUT. 2.0.RC4 works (well, that bit did) Peter Furniss --

Jackson 1.4 in gae-2.0.1 won't AutoDetect Field

2010-10-15 Thread webpost
gae-2.0.1 has Jackson 1.4 which will not AutoDetect Fields of any kind. This makes it difficult to serialize classes like Objectify's Key which does not have public setters. The current Jackson is 1.6 which is subsequent to 1.5 when they introduced much more control over AutoDetection. I

How to PUT a JSON payload and have Jackson automagically create an object?

2010-10-14 Thread webpost
I am trying to PUT ( and POST ) to a ServerResource and have it convert my JSON payload to the corresponding Java POJO, but all I get is 415 Unsupported Media Type errors. My POJO implements Serializable, @Get(json) seems to work as it is supposed to. @Put(json) gives me the 415 Unsupported

change the default URL Restlet uses from http:// to https://

2010-10-14 Thread webpost
Hi I've got a web application created by my supervisor which uses Spring Security and Restlet. I've got two lots of proxying happening and SSL is performed at an earlier stage. All my resources of this web application have the URL http://something. It appears this is Restlet's default. how do

help, I need my URLS defaulted to https:// not http://

2010-10-14 Thread webpost
Hi I've got a web application from my supervisor using restlet and Spring security. I've got SSL happening at an earlier stage before the a request reach my web application on a virtual machine. Restlet has defaulted all my URLS to http://something. How do I change this so that the default is

RE: Re: get from browsers

2010-10-14 Thread webpost
This worked: this.getTunnelService().setUserAgentTunnel(true); Can you explain a little more why it works so I understand what is going on? Shawn -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2671992

RE: Re: Re: About XTC (Facelets port)

2010-10-13 Thread webpost
Good news. I managed to overcome all the difficulties. I've got it all working like a charm. I even wrapped up an example maven project containing a working configuration along with some simple classes that I wrote. You can merge it into your project if you like. I really think that if you

get from browsers

2010-10-13 Thread webpost
Restlet 2.0.1 I have two Get annotations defined: @Get(htm|html) and @Get The get @Get returns a serializable object which jackson serializes to json. However when I put the url in a browser I would expect the @Get(htm|html) to be called. I put in some print statement and it seems internet

RE: Re: Resource paths with Restlet and Jax Rs

2010-10-08 Thread webpost
Thanks a lot for you help, I guess I found a solution that works at least for me now. I took your jax-rs extension sample that was provided with the Restlet download to see the figure it out - thanks for the hint. The @Context UriInfo does not work for parameter that are send within the HTTP

RE: Re: PUT requests return 405 code with @Put annotated method using 2.0.1 release

2010-10-08 Thread webpost
Hi Dustin, I've reproduced the error with a minimal test: public class ApiApplication extends Application{ public static final String TEST_URL = test; public ApiApplication(Context context){ super(context); } @Override

Content-Disposition

2010-10-08 Thread webpost
Hello All ! I have a web service which sends back PDF/CSV files to the browser. But these get downloaded through the browser with a default name and no extension! How do I get the browser to display a 'save as' dialog box and also specify the type of file am sending through (pdf/csv) ?

RE: Re: Resource paths with Restlet and Jax Rs

2010-10-05 Thread webpost
Hi Stephan, I guess you meant with parameter a @QueryParam annotated variable? I tried so and added something like this: public String createBlog(@DefaultValue(me) @QueryParam(alias) String alias) {...} But I still get the same error 405. Funnily enough the first post request is successful

RE: tutorial not working

2010-10-05 Thread webpost
i did forget the first line of the log GET /contacts/123 HTTP/1.1 404 472 -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2668232

RE: Re: Resource paths with Restlet and Jax Rs

2010-10-01 Thread webpost
Hi Stephan, sorry for bothering you that often but I just do not get it running. I just will exlain my problem a bit more in detail. While sending GET request everything concerning a simple GET request works. But sending a request with any other method I always get the 405 status code, even I

GuardedExample without using deprecated API

2010-09-30 Thread webpost
Hy everybody I was using CXF and change to Restlet because security looks to be easier to implement. I am using JAX-RS and I hopefully found an example with security in the source code: org.restlet.example.ext.jaxrs.GuardedExample I had some difficulties to make it work : We need to call

Runtime issue with Restlet 2.0-SNAPSHOT

2010-09-29 Thread webpost
Hi, I am using Restlet 2.0-SNAPSHOT version with jaxrs extension. But at runtime, I am getting error: java.lang.NoClassDefFoundError: org.restlet.util.Helper I see that this class is in restlet 1.1.10 verion. Am I missing anything in my dependency list? I also tried to search same class in all

RE: Re: Resource paths with Restlet and Jax Rs

2010-09-27 Thread webpost
Hi Stephan, as I read parts of your master thesis I found the extension issue and that it was done on purpose. So I could have found it by my own. Sorry for bothering you with this. But I got another issue, sending parameter with a POST request. When I send parameter with a POST request I just

RE: Re: About XTC (Facelets port)

2010-09-26 Thread webpost
I'm happy to hear that XTC has actually been used in production. That's enough for me to try to use it myself. I suppose the whole integration shouldn't be so difficult altogether. All that there really is to do, is to override AbstractUrlBasedView which amounts to implementing a single

Put method not working on deployed GAE app

2010-09-25 Thread webpost
I have downloaded the serialization example available on the site. Everything works fine using the GWT client. With the JSE client Get operations work fine both with JavaBean and JSON serialization, but I couldn't manage to get the Put (store) operation working on the deployed app, while I

RE: Re: Resource paths with Restlet and Jax Rs

2010-09-24 Thread webpost
Hi Stephan, (guess I should get a name here) The thing with the Spring is not that problem. The integration actually works fine. You just have to create a config file in which you specify the JaxRsApplication to call and you hand over the SpringComponent. It's quite easy. The problem is that

Determinism in content negotiation

2010-09-23 Thread webpost
With an HTTP request containing Accept: application/json, the Resource @Get method that is being called depends on the order of the functions as below: Resource1 { @Get public Blah retrieve1() {//this gets called} @Get(json) public Blah retrieve2() {} } Resource2 { @Get(json) public Blah

RE: Re: Restlet Framework 2.0.1released

2010-09-23 Thread webpost
Same problem here. Is there an issue for it ? -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2663633

Accept Header not working

2010-09-23 Thread webpost
Hi All, I am using Restlet 1.1, in represent method I am not getting proper MediaType which I am passing in Accept in request header. I tried to print getRequest().getClientInfo().getAcceptedMediaTypes() It always gives [*/*:1.0] no matter what I pass in Accept. I tried passing application/json

RE: SAML 2.0 with Restlet

2010-09-21 Thread webpost
Do I need to be more elaborate about my problem :) -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2662744

RE: Re: Resource paths with Restlet and Jax Rs

2010-09-21 Thread webpost
A note to the post before. I went on with trying a bit more and I figured out that it sends data back to the client but only in the case when I don't use any extensions. As soon as I use an extension on the POST call it prints me an 404 because it tries to request /blogs.json instead of

RE: Re: Resource paths with Restlet and Jax Rs

2010-09-20 Thread webpost
Thanks a lot for your help. It took me a while to figure it out how I can use the tunneling and the extension this way I want to. It is working for the GET requests as expected. But I got some other questions/ issues. I just enabled the tunnel for my JaxRsApplication class and added the mime

RE: Embedded Jetty

2010-09-17 Thread webpost
Hi Roy and Bruno, Note that Restlet 2.0.2 will ship with the latest Jetty 7 version. If a Servlet deployment isn't desired, it might be wise to migrate to Restlet 2.0. Best regards, Jerome -- Restlet ~ Founder and Technical Lead ~ http://www.restlet.o​rg Noelios Technologies ~

RE: OPTIONS instead of GET with GWT

2010-09-16 Thread webpost
I solve the problem calling the external address of the servlet from the client side (i was using the internal address) -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2660846

RE: Embedded Jetty

2010-09-14 Thread webpost
Please ignore. Sorry for the duplicate post (and html tags). -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2658876

RE: Embedded Jetty

2010-09-14 Thread webpost
Any help on this would be appreciated. Roy I'm attempting to use Jetty 7.1.5 with Restlet 1.1.10 however there's no connector jar included for this version of Jetty - only Jetty 6.1. So, I'm wondering is it possible to use Jetty 7? Also, I'm not sure where put jetty.xml so I can

Getting Error 1002 for everything after a while

2010-09-13 Thread webpost
Hello, I've created a few restlet apps now, and for some reason the last one gets garbled on a simple put of a simple class: ---Client.java @Entity public class Client implements Serializable { private static final long serialVersionUID = 1L; @Id Long id; String name = ;

Restlet Oauth

2010-09-13 Thread webpost
Hi, I have put together a basic rest api with restlet and want to secure it with OAuth authentication. Is there any example code out there ? Do we use the restlet oauth ? Or some other tool Many thanks --

Embedded Jetty

2010-09-13 Thread webpost
I'm attempting to use Jetty 7.1.5 with Restlet 1.1.10 however there's no connector jar included for this version of Jetty - only Jetty 6.1. So, I'm wondering is it possible to use Jetty 7? Also, I'm not sure where put jetty.xml so I can configure the server settings. Thanks, Roy

RE: URLEncoded querystring params

2010-09-09 Thread webpost
Hello Fraser, what kind of client are you using? Why don't you send /mbunittest/myflow?f​oo=foobar=bar​baz=baz? Best regards, Thierry Boileau Hi Thierry, Obviously my example is contrived to demonstrate the problem. In reality there may be occasions when I will need to send characters

RE: Wiki down

2010-09-07 Thread webpost
Thanks Jerome! -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2656530

JMS

2010-09-06 Thread webpost
Are there any plans to support JMS transport any time in the near future. Those of us using Restlet in Enterprise environments often require the use of asynchronous and highly reliable protocols ?? --

Error while parsing simple plain text fields in multipart form at Restlet 1.1

2010-09-06 Thread webpost
Hi everybody! I have some troubles with parsing simple plain-text form fields in Restlet v1.1 The form looks like form action=/restletServlet method=post enctype=multipart/form-data textarea name=simpleField rows=10 cols=100Simple text content/textarea input type=submit value=post /form

  1   2   3   4   5   6   >