Re: refering a web app file with FileRepresentation

2008-11-17 Thread Gan123
Hi, what that result.tmpl file contains? is there a way to load ftl files using CLAP, from web application context, like i am planning to store files either in WEB-INF or classes folder. Thanks for your help. On Mon, Nov 17, 2008 at 8:53 PM, Thierry Boileau (via Nabble) < [EMAIL PROTECTED]

[Tomcat] ETag dropped between Client and acceptRepresentation?

2008-11-17 Thread Richard Hoberman
Hi THE SHORT VERSION: I'm using version 1.1.1. I post an entity with an ETag using org.restlet.Client and get a null ETag in acceptRepresentation. This happens with Tomcat but not with the standalone Restlet test. I can't find any code that looks like it would handle the propagation of the ta

ERROR: 'Broken pipe'

2008-11-17 Thread Paul J. Lucas
I've been seeing a lot of: ERROR: 'Broken pipe' Exception intercepted @ HttpServerConverter.commit lately. What exactly does it mean? How can I print out the exception? And possible how to debug this? I'm using Restlet 1.0.9. - Paul

RE: getRootRef() returns null?

2008-11-17 Thread Jerome Louvel
Hi Thierry and Tamas, According to this paragraph: http://tools.ietf.org/html/rfc3986#section-5.2.3 we should indeed produce "http://localhost:8081/some/path"; in this case. Thierry, could you fix this in SVN trunk and 1.1 branch? Best regards, Jérôme Lou

RE: how to make it modifiable

2008-11-17 Thread Jerome Louvel
Hi, I can confirm that the method is part of Restlet 1.1: http://www.restlet.org/documentation/1.1/api/org/restlet/resource/Resource.h tml#setModifiable(boolean) However, it didn't exist in Restlet 1.0. Are you sure you have the right version installed? Best regards, Jérôme Louvel -- Restlet ~

RE: What is missing from Restlet?

2008-11-17 Thread Jerome Louvel
Hi all, JSecurity seems like a nice library to consider integration with. I've entered a RFE: "Add support for JSecurity" http://restlet.tigris.org/issues/show_bug.cgi?id=658 Best regards, Jérôme Louvel -- Restlet ~ Founder and Lead developer ~ http://www.restlet.org Noelios Technologies ~ Co-

RE: Access Logging in Restlet-Spring application

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

RE: which is better way for web application using RESTlet?

2008-11-17 Thread Jerome Louvel
Hi guys, We definitely have OSGi in our radar. We would like to explore better integration in the future. It would be nice to be able to easily deploy Restlet applications in Spring dm Server. There is even a design discussion started related to better Restlet-OSGi integration: http://wiki.res

Re: refering a web app file with FileRepresentation

2008-11-17 Thread Thierry Boileau
Hello, File templateDir=new File("clap:///template"); I don't think a java.io.File can be instantiated with a CLAP URI (CLAP is a pure Restlet concept). I just suggested you to create a FileRepresentation from either a CLAP or a WAR URI in order to return a Representation of a file. If you w

Re: Well HTTPS

2008-11-17 Thread Thierry Boileau
Hello, I suggest you have a look at this http://java.sun.com/j2se/1.5.0/docs/tooldocs/#security (and then choose the "keytool" documentation) and http://blogs.sun.com/andreas/entry/no_more_unable_to_find. You can find an explanation about the role of the keystore and the trustore (try to get

Well HTTPS

2008-11-17 Thread M E
WANNING BRAIN OVERHEATING  /\ I have read this http://en.wikipedia.org/wiki/Https and I want to implement HTTPS, in my sample application I converted component.getServers().add(Protocol.HTTP, 8182);to component.getServers().add(Protocol.HTTPS, 8182); Now Jersy is asking me a lot of questions

Re: refering a web app file with FileRepresentation

2008-11-17 Thread Gan123
Hi Thierry, Thanks for your reply, i tried to get the files from classpath using CLAP.i have "template" directory in the classpath. but it is still not able to read the files in that folder.actually i am trying to use freemarker template files stored in my classpath to render output.

Re: (Bug?) entity for "" receives null mediaType when deployed on Tomcat

2008-11-17 Thread Rob Heittman
Thanks ... Tomcat trunk didn't seem to have the same issue when I quick compiled it -- I'll start looking at 5.5.27 tag. If you have counter evidence that shows trunk or 6.x with the same issue, let me know. On Mon, Nov 17, 2008 at 8:10 AM, Richard Hoberman < [EMAIL PROTECTED]> wrote: > Hi Rob

Re: (Bug?) entity for "" receives null mediaType when deployed on Tomcat

2008-11-17 Thread Richard Hoberman
Hi Rob I tested this against Tomcat-5.5.27. The problem is also affecting code running on 5.5.25. Cheers Richard Rob Heittman wrote: > Thanks, Richard! Can you share a Tomcat version number? This sounds > like the same issue we've been seeing in GWT hosted mode, and I've > been trying to fig

Re: (Bug?) entity for "" receives null mediaType when deployed on Tomcat

2008-11-17 Thread Rob Heittman
Thanks, Richard! Can you share a Tomcat version number? This sounds like the same issue we've been seeing in GWT hosted mode, and I've been trying to figure out where this is triggered in the Tomcat codebase so maybe we can work around it better. GWT's embedded version is special enough and old

Re: port 80 does not work

2008-11-17 Thread Rob Heittman
On most computing platforms other than Windows, you may not bind directly to ports numbered lower than 1024 unless you are the root user. Really you ought not to run web services and such as root, though. Solutions like the Apache Commons Daemon allow you to bind to the port as root, but typicall

Re: port 80 does not work

2008-11-17 Thread Thierry Boileau
Hello, I suppose you don't launch your Web server with sufficient rights. Could you try with root user or something like that? best regards, Thierry Boileau Hi I added an HTTP server on port 80 using Restlet, it does NOT work, however it works on port 8080, why?? java.net.SocketException:

port 80 does not work

2008-11-17 Thread M E
Hi I added an HTTP server on port 80 using Restlet, it does NOT work, however it works on port 8080, why?? java.net.SocketException: Permission denied  it seems to be the first cause exception My guesses I don't get it, browser suppose to listen to port 80 for http, or it just a firewall issu

Re: [restlet] Receiving generic OK Response in Client

2008-11-17 Thread Thierry Boileau
Hello John, Some similar problems have been encoutered with the Mule Restlet transport. Since the problem seems to come from the integration with Mule, I suggest you open an issue int the mule tracker (http://www.mulesource.org/jira/browse/RESTLET). Best regards, Thierry Boileau -- Restlet