What is the point of JaxbRepresentation.getJaxbSource()?

2010-08-25 Thread webpost
This method creates and returns a new object that appears to have no relation to the one used for marshalling. Am I missing something? -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2650824

Resource paths with Restlet and Jax Rs

2010-08-25 Thread webpost
Hello, I set up a small standalone server as JaxRsApplication like in the "JAX-RS extension" example on the website. My resources are annotated with Jax-Rs Annotations. Every Resource should have the same entry point. So I was thinking to put @Path("") on each resource class and the specified

GWT / RESTlet RPC / Cross Site

2010-08-27 Thread webpost
Hi, I wonder if anybody could tell me if I am going about something the right way, or even if it's possible?!?: I want to deploy an application on GAE using RESTLet with GWT, and put/retrieve 'some' data on the server using SSL from a normal web page - the information being transferred is some

RE: Intermittent Errors

2010-08-30 Thread webpost
Update: I switched form the 2.0.0 (stable) version to the latest snapshot, and things seem somewhat improved. I was seeing quite a lot of NPE's usually trying to access the request entity and also a lot of socket timeouts, but after 50+ tests I only had one socket timeout failure (previously I

GWT XMLHttpRequest How to set 'withCredentials'

2010-08-30 Thread webpost
Sorry, I think I'm being a bit af a noob, but I have searched without success to find how your set 'withCredentials' attribute of the underlying XMLHttpRequest in retlet RPC calls in GWT. And yes (before somebody asks) I am doing XSS ;-) PLEASE could somebody point me in the right direction. T

RE: Jackson Dependencies

2010-08-30 Thread webpost
Hi Thierry, Re #1: The FAQ modification looks great. That last sentence would have put me on the right trail. Why return 405 instead of 500 in a case like this, though? Re #2: Absolutely makes sense. Thanks! // Doug -- http://restlet.tigri

Wiki down

2010-09-03 Thread webpost
Hi All, It seems the wiki is down. I'm assembling some technical documentation and was hopping to refer to it. Any idea when it will be up? Aside, I would have posted this to the wiki discussion list, bu it seems that doesn't allow guest posts. Much obliged, Taylor Mathewson ---

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 ?? -- http://restlet.tigris.org/ds/viewMessage.do

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 Simple text content I've tried to parse multipart request from my resource as in the example at http://wiki.restlet.org/docs_1.1/13-restlet/28-restlet/64-restlet.html page (

Using a REST layer for UI and services

2010-09-06 Thread webpost
Hi everyone, I have a web app who is divided into a "web services" and a "ui" front end. Actually the "ui" is made from servlets who call a business services layers and my "web services" use the same business layer. But I wonder if it is a way to write a set of REST services for replacing the o

RE: Wiki down

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

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=foo&bar=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 cha

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 -- http://restlet.tigris.org/ds/viewMes

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: 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=4447&dsMessageId=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 con

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=4447&dsMessageId=2660846

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: 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 ty

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=4447&dsMessageId=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 filterin

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=4447&dsMessageId=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: 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 the

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 have

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 method:

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

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

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 Cha

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 d

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 success

tutorial not working

2010-10-05 Thread webpost
I am having trouble getting the tutorial example to work on GAE. AppEngine Log says: javax.servlet.ServletContext log: ContactRestlet: [Restlet] Attaching application: com.sem.server.rest.contact...@1bbc779 to URI: /contacts/123 This request caused a new process to be started for your applicatio

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=4447&dsMessageId=2668232

RE: tutorial not working

2010-10-07 Thread webpost
I cut it down to a single Servlet. Thank you for your input. -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2668865

RE: Re: Re: Exception in Applet running in Eclipse

2010-10-07 Thread webpost
Thierry, Thank you very much for this work around. It has resolved my problem. My remaining question is what effect does System.clearProperty​("http.proxyHos​t"); have on the function of the system? Is it safe to do this in the context of an Applet? I will conditionally add it solely for deb

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) ? Cheer

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 adv

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 interne

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 Unsuppor

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 i

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 h

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=4447&dsMessageId=2671992

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 trie

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 wrong:

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 -- htt

Set 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 wrong:

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. -- h

Azure and Restlet

2010-10-26 Thread webpost
I've like to confirm the version of restlet necessary to communicate with Azure. It looks like 2.0 has some Azure stuff built into the client API but I'm curious if it's possible/recommended to communicate with Azure using 1.1. I'm currently using 1.1 and am aware that the upgrade to 2.0 is no

RE: Accept Encoding in Directory?

2010-10-26 Thread webpost
whoops, i meant GET /foo.jar in the request. -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2675722

ClientResource and HttpClientHelper in 2.0.1

2010-10-26 Thread webpost
Hi, I'm using ClientResource with org.restlet.ext.httpclient.jar. Each time I create a new ClientResource object I get a new HttpClientHelper under the covers, each of which appears to have its own connection pool...apache logging indicates no connection re-use. Am I using this class incorrect

RE: Restlet performance

2010-10-27 Thread webpost
> Hi Dionisios, > > What you observe is the expected performance of the *internal* HTTP > connector, built-in the org.restlet.jar. This connector has been redesigned > for 2.0 to support advanced HTTP features such as provisional responses, > pipelining, asynchronous handling and future enhance

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=4447&dsMessageId=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 r

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=4447&dsMessageId=2676681

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 cre

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). Cod

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 = InetAddress.ge

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: ClientRe

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=4447&dsMessageId=2677196

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 brid

generated odata primative types do not handle null setters/getters

2010-11-02 Thread webpost
For a metadata property such as : when using the org.restlet.ext.odata.Generator tool the generated object contains : public double getZipcode() { return zipcode; } public void setZipcode(double zipcode) { this.zipcode = zipcode; } which do not allow you to set a zipc

Nested routers and keeping remaining part

2010-11-02 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 ge

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 TestCl

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 TestCl

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? -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=267

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=4447&dsMessageId=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? -

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 i

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=4447&dsMessageId=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 org

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 2.

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 ServerR

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=4447&dsMessageId=2681134

RE: GWT Serialization problem

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

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

2010-11-12 Thread webpost
I don't think this bug has been fixed as of version 2.0.3. I'm still getting the 405 error. -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2681314

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 method

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 method

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 li

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 org.apache.cat

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 Set allowedMethods = new HashSet(); allowedMethods.add(Metho

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. -- http:

Gwt with Restlet 2.1

2010-11-14 Thread webpost
Hi, I want to use Restlet 2.1M4 with GWT. In Restlet 2.0 I could use GWTShellServletWrapper (as in First application example) and everything would work fine. GWTShellServletWrapper was deprecated in 2.0 and is missing in 2.1. I could not find an example how to use Restlet with GWT in current st

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 a

Odata Code generation

2010-11-15 Thread webpost
Hi, Im having problem finding out how to generate code when there is useed basic authentification, from restlet to Odata REST service. If i disable Authentification it works fine with this code: String[] arguments = { "http://193.89.54.122/services/VDRejsetid/RejsetidDataService1.svc","c:\\temp

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! V

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: Restlet client, OSGi and JaxB extension

2010-11-22 Thread webpost
Hi, I find a way to resolve the constraint (Jaxb>2.1.0) by installing the jaxb bundle provided by the glassfish project (mvn:javax.xml.bind/jaxb-api-osgi) Now the Restlet JaxB extension bundle is running well, but the behaviour is the same :( There is no conversion using JaxB in the REST call r

JAX RS + Tomcat (Servlet Container)

2010-11-24 Thread webpost
Hi, we are using the Restlet Framework 2.0.3 with a Servlet Adapter in a Tomcat which forwards the requests to a JaxRsApplication. Using a standalone application the POST method worked fine, parameters have been extracted as expected. However running it inside the problem the POST parameters o

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: http://

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 r

Unexpected status codes when using restlet with jackson

2010-11-29 Thread webpost
Hi. I'm receiving an unexpected 415 when using restelt 2.1 with jackson. I've started using restlet only recently, so I may well be the cause of the problem. Case: When posting valid content type but malformed body, I expect 400 "Bad Request". Instead I'm receiving 415 "Unsupported Media Type".

  1   2   3   4   5   6   >