Jerome Louvel | 1 Jun 2009 10:33
Gravatar

RE: get servletContext on GAE?

Hi Zsolt,

Did you have a look at Restlet extension for Velocity? It doesn't need a
ServletContext. 

Otherwise, I've just changed the ServerServlet in SVN trunk to copy the
ServletContext into a special "org.restlet.ext.servlet.ServletContext"
attribute of both the Component's context and the Application's context.

Best regards,
Jerome Louvel
--
Restlet ~ Founder and Lead developer ~ http://www.restlet.org
Noelios Technologies ~ Co-founder ~ http://www.noelios.com

-----Message d'origine-----
De : Zsolt Czinkos [mailto:czinkos <at> gmail.com] 
Envoyé : vendredi 22 mai 2009 00:49
À : discuss <at> restlet.tigris.org
Objet : get servletContext on GAE?

Hello

Restlet 1.2 snapshot on GAE.

Is it possible  to get servletcontext on gae? How? I'd like to try
velocity, and need ServletContext for init Velocity engine.

Thanks in advance,  it must be a trivial question...

(Continue reading)

Jerome Louvel | 1 Jun 2009 10:38
Gravatar

RE: Problem with Engine.getClassLoader() and Spring DM

Hi David,

The try/catch issue is fixed already in SVN trunk, thanks for reporting it. 

Regarding the adaptation of the strategy based on the environment, it indeed
sounds like a better long term solution. I've entered a RFE:

"Adjust classloading strategy based on edition"
http://restlet.tigris.org/issues/show_bug.cgi?id=824

Best regards,
Jerome Louvel
--
Restlet ~ Founder and Lead developer ~ http://www.restlet.org
Noelios Technologies ~ Co-founder ~ http://www.noelios.com

-----Message d'origine-----
De : David Fogel [mailto:carrotsalad <at> gmail.com] 
Envoyé : vendredi 22 mai 2009 01:40
À : discuss <at> restlet.tigris.org
Objet : Re: Problem with Engine.getClassLoader() and Spring DM

Hi Jerome-

Wow, that was fast- thanks for looking at this!

I took a look at the code in the restlet trunk.  I think that the
class org.restlet.engine.util.EngineClassLoader won't work as you
intended it to.  The problem is that the ClassLoader.loadClass()
method is defined to throw a ClassNotFoundException if it can't find a
(Continue reading)

Jerome Louvel | 1 Jun 2009 10:39
Gravatar

RE: conditional request handling

Hi Arjohn,

This is available for sure in the recent 2.0 M3. Let me know if it worked
for you.

Best regards,
Jerome Louvel
--
Restlet ~ Founder and Lead developer ~ http://www.restlet.org
Noelios Technologies ~ Co-founder ~ http://www.noelios.com

-----Message d'origine-----
De : Arjohn Kampman [mailto:arjohn.kampman <at> aduna-software.com] 
Envoyé : jeudi 21 mai 2009 18:19
À : discuss <at> restlet.tigris.org
Objet : Re: conditional request handling

Jerome Louvel wrote:
> Hi Arjohn,
> 
> If you look at Restlet 2.0 (SVN trunk), there is a new ServerResource
class
> which has "getInfo(Variant) : RepresentationInfo" methods, allowing you to
> optimize the creation of representations.
> 
> The conditional processing code has also been refactored to easier
> understanding and extension if needed.

Cool, I'll have a look tomorrow. Is this also available in 1.2M2, or
only in the trunk?
(Continue reading)

Jerome Louvel | 1 Jun 2009 10:49
Gravatar

RE: A couple of issues (ServerServlet & Client Connector)

Hi MyloC,

Thanks for the feed-back! 

Regarding your first point, the ServerServlet class is currently available
in the "org.restlet.gae.jar", in the "org.restlet.ext.servlet" package. To
clarify this, we are working on separate distribution for each Restlet
edition. When this is done, you will have to put
"org.restlet.ext.servlet.jar" in your classpath (which already works as
there is nothing special in the extension for GAE).

For the second point is a bug that I just fixed in SVN trunk. For now, you
can also register it manually this way:

        Engine.getInstance().getRegisteredClients().add(new
HttpClientHelper(null));

The HttpClientHelper class is from the org.restlet.ext.net package.

Best regards,
Jerome Louvel
--
Restlet ~ Founder and Lead developer ~ http://www.restlet.org
Noelios Technologies ~ Co-founder ~ http://www.noelios.com

-----Message d'origine-----
De : MyloC [mailto:mscwd01 <at> gmail.com] 
Envoyé : jeudi 21 mai 2009 01:40
À : discuss <at> restlet.tigris.org
Objet : A couple of issues (ServerServlet & Client Connector)
(Continue reading)

Jerome Louvel | 1 Jun 2009 10:55
Gravatar

RE: Freemarker CLAP and jarfiles.

Hi Matt,

We've made some changes to the classloading strategy very recently. I
suggest that you try with a fresh 2.0 snapshot.

Also, I suggest that you look at the new ContextTemplateLoader class that we
added to the FreeMarker extension:
http://www.restlet.org/documentation/snapshot/ext/org/restlet/ext/freemarker
/ContextTemplateLoader.html

Best regards,
Jerome Louvel
--
Restlet ~ Founder and Lead developer ~ http://www.restlet.org
Noelios Technologies ~ Co-founder ~ http://www.noelios.com

-----Message d'origine-----
De : Matt [mailto:mjwatson <at> gmail.com] 
Envoyé : samedi 23 mai 2009 06:43
À : discuss <at> restlet.tigris.org
Objet : Freemarker CLAP and jarfiles.

Hi there,

I've got a small issue that I'm trying to resolve. 

I'm using Freemarker to access templates stored within the classpath hence
I'm using the CLAP protocol. 

I can run my application fine through the IDE but when I attempt to run it
(Continue reading)

Jerome Louvel | 1 Jun 2009 10:57
Gravatar

RE: Possible bug in Restlet 1.2m2 (maybe solved in post 1.2m2?)

Hi,

Thierry is correct, we have fixed this. It is only necessary to support GET
if you want to support conditional PUTs as they conditions evaluation is
based on the representation returned by GET.

Best regards,
Jerome Louvel
--
Restlet ~ Founder and Lead developer ~ http://www.restlet.org
Noelios Technologies ~ Co-founder ~ http://www.noelios.com

-----Message d'origine-----
De : Thierry Boileau [mailto:thierry.boileau <at> noelios.com] 
Envoyé : lundi 25 mai 2009 11:01
À : discuss <at> restlet.tigris.org
Objet : Re: Possible bug in Restlet 1.2m2 (maybe solved in post 1.2m2?)

Hello Fabian,

I've just make the test, and I think this has been fixed in 1.2m2.

best regards,
Thierry Boileau
> Hello,
>
> I have a resource which should only accept PUT requests (to modify its
> state; the resource is created with a POST to a 'parent' resource)
>
> If I implement it like this:
(Continue reading)

Jerome Louvel | 1 Jun 2009 11:50
Gravatar

RE: nesting Routers

Hi Liam,

When a request goes through a router, matching an URI template route, it
"eats" part of the 
target URI to allow hierarchical routing. It would indeed be useful to allow
routing without touching the URI for filtering purpose as you need. I've
added a comment in this RFE:

"Refactor Routing API"
http://restlet.tigris.org/issues/show_bug.cgi?id=763

Also, in order to facilitate the debugging of such routing issues, I've just
added better logging capabilities to the Router classes via a new protected
"log(Route)" method. 

By default, it will log at the Level.FINE, some useful information on the
virtual host selected, the route template followed, etc. It can of course be
customized.

To turn it on, you need a fresh Restlet 2.0 snapshot or use SVN trunk and to
adjust to logging properties to display FINE messages. See details here:

"User Guide: Logging"
http://wiki.restlet.org/docs_1.2/13-restlet/48-restlet/101-restlet.html

Best regards,
Jerome Louvel
--
Restlet ~ Founder and Lead developer ~ http://www.restlet.org
Noelios Technologies ~ Co-founder ~ http://www.noelios.com
(Continue reading)

Jerome Louvel | 1 Jun 2009 12:16
Gravatar

RE: Trailing slashes in dir names in Restlet's Maven repo

Hi Aron,

Thanks for this report. This is fine regarding addition of Restlet to this
MVN repo browser site.

Regarding the missing trailing slash, I've just fixed it in SVN trunk. This
also speeds up navigation as it prevents one extra client redirection from
happening! This is checked in SVN trunk and will take a bit more time to be
propagated in our production environment.

Best regards,
Jerome Louvel
--
Restlet ~ Founder and Lead developer ~ http://www.restlet.org
Noelios Technologies ~ Co-founder ~ http://www.noelios.com

-----Message d'origine-----
De : Aron Roberts [mailto:aron <at> socrates.berkeley.edu] 
Envoyé : mercredi 27 mai 2009 00:57
À : discuss <at> restlet.tigris.org
Objet : Trailing slashes in dir names in Restlet's Maven repo

A trivial note regarding the Web view of Restlet's Maven repository:

   There appears to be a widely-followed convention for 
directory/index pages of Maven repositories on the Web, to include 
trailing slashes after directory names - at least per a quick check 
of several of the sites listed here, including Apache and Java.net:

   http://www.mvnbrowser.com/repositories.html#REPO1
(Continue reading)

Jerome Louvel | 1 Jun 2009 12:28
Gravatar

RE: Issue POSTing JSonRepresentation to server

Hi Gabriel,

Thanks for spotting this. Even though the JSON driver can easily be changed
when manually using XstreamRepresentation, this isn't possible via the
converter service. So, I'm now using the JettisonHierarchicalDriver as the
default one.

Checked in SVN trunk. The Jettison library was already distributed with
Restlet. 

Best regards,
Jerome Louvel
--
Restlet ~ Founder and Lead developer ~ http://www.restlet.org
Noelios Technologies ~ Co-founder ~ http://www.noelios.com

-----Message d'origine-----
De : Gabriel Ciuloaica [mailto:gciuloaica <at> gmail.com] 
Envoyé : mardi 26 mai 2009 22:11
À : discuss <at> restlet.tigris.org
Objet : RE: Issue POSTing JSonRepresentation to server

Hi Jerome,

I have done some testing for GET and POST/PUT. The only issue that I found
is related to usage of the XStreamRepresentation. The
JsonHierarchicalStreamDriver is not able to de-serialize objects. 
I guess that will be better to use a different Json driver as default driver
in XStreamRepresentation implementation. 

(Continue reading)

Jerome Louvel | 1 Jun 2009 12:34
Gravatar

RE: Resource not found when using Amazon Elastic LoadBalancer with port mapping

Hi there,

The behavior you describe is normal. Under load balancing, the incoming
requests do not have 8080 in their URIs, so your application can't route
based on this assumption.

However, there are ways to workaround this problem in Restlet, by adjusting
the configuration of your VirtualHost instances. 

Basically, you have two interesting properties (regex based):
- the "hostPort" which is based on the incoming URI (80)
- the "serverPort" which is based on the listening socket (8080)

Best regards,
Jerome Louvel
--
Restlet ~ Founder and Lead developer ~ http://www.restlet.org
Noelios Technologies ~ Co-founder ~ http://www.noelios.com

-----Message d'origine-----
De : webpost <at> tigris.org [mailto:webpost <at> tigris.org] 
Envoyé : mercredi 27 mai 2009 10:31
À : discuss <at> restlet.tigris.org
Objet : Resource not found when using Amazon Elastic LoadBalancer with port
mapping

Hey - bit stumped on what to do here.  

We've deployed a restlet based app on EC2 behind Amazon's new Elastic
Loadbalancer.
(Continue reading)


Gmane