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
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
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
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
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
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
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
---
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
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
(
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
Thanks Jerome!
--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2656530
> Hello Fraser,
>
> what kind of client are you using?
> Why don't you send /mbunittest/myflow?foo=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
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 = "";
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
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
Please ignore. Sorry for the duplicate post (and html tags).
--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2658876
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
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
> 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.org
> Noelios Technologies
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
Do I need to be more elaborate about my problem :)
--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2662744
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
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
Same problem here. Is there an issue for it ?
--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2663633
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
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
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
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:
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
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
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
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
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
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
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
I cut it down to a single Servlet. Thank you for your input.
--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2668865
Thierry,
Thank you very much for this work around. It has resolved my problem.
My remaining question is what effect does
System.clearProperty("http.proxyHost");
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
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
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
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
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
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
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
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
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
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
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
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:
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
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:
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
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
whoops, i meant GET /foo.jar in the request.
--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2675722
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
> 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
Thank you for the fix! I am looking forward to the new release!
--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2676292
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
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
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
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
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
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
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
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(
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
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
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 -
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
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
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
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
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
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?
-
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
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:
Did you resolve this?
I'm having the same problem...
--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2681122
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
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.
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
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
Thank you for your help Stephan!
--
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2681134
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
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
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
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
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
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
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
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:
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
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
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
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!!!
(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
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?
---
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
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
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://
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
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 - 100 of 591 matches
Mail list logo