2.0m4 - Variant.equals and ClassCastException

2009-09-23 Thread Patrick Logan
In 2.0m4 on line 329 of Variant.java there is a ClassCastException if other is not an instanceof Variant. That line should only be executed if the variable result of the previous line is true. If false then equals should just return false. --

problem with Variant.equals in 2.0m4

2009-09-23 Thread webpost
The implementation of equals in Variant.java of 2.0m4 seems to incorrectly cast the other object as a Variant... The problem is on line 329 where it defines otherVariant. In the case where result is false, the equals method should just return false... @Override public boolean

RE: Re: how to Router.attach() a resource object

2009-09-23 Thread sam l
ah, thank you very much. indeed, template names are directly inferred from the request path. So, I just modified DirectToTemplateResource. Thank you again for prompt response. It could have taken me a long time. Thanks. sam --

2.0m4/snap GWT cannot be used at all

2009-09-23 Thread weltermann17
Hi, several posts have raised the issue that the current GWT edition cannot be used anymore. Calling a Client.get works only in hosted but not in compiled mode. Using Reference.getTargetRef fails in hosted mode with a IllegalAccessError exception due to a call to

RE: Re: Integrating Apache and Restlet server like Apache and Tomcat

2009-09-23 Thread Ashish Sharma
Bruno, Can you post a simple code sample for reference. As I am a newbie. Thanks in advance!! Ashish -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2398769

Re: Integrating Apache and Restlet server like Apache and Tomcat

2009-09-23 Thread Bruno Harbulot
Hi Ashish, As Rémi said, mod_proxy might be better for what you need. In addition, mod_jk seems to have been deprecated in favour of mod_proxy_ajp (both use AJP). There is more about this on the Jetty wiki: http://docs.codehaus.org/display/JETTY/Configuring+AJP13+Using+mod_jk The only case

Re: Re: Netty extension

2009-09-23 Thread Rob Heittman
This looks really exciting, Gabriel! I haven't had a chance to try it yet ... just got back from a long and busy trip and am trying to clear my desk. Quick question -- does the Netty connector only handle HTTP or does it also handle HTTPS? On Wed, Sep 23, 2009 at 2:48 AM, Gabriel Ciuloaica

RE: Re: Integrating Apache and Restlet server like Apache and Tomcat

2009-09-23 Thread Ashish Sharma
Bruno, I am able to run restlet over jetty as advised by you, but I am not clear how can it fulfill my original requirement. Please explain!!! thanks in advance Ashish Hi Ashish, Ashish Sharma wrote: Hello, I have my Apache http server running on localhost:80 and restlet server

RE: Re: Re: Netty extension

2009-09-23 Thread Gabriel Ciuloaica
Hi Rob, It handle both HTTP and HTTPS. In case of HTTPS, there are some configs that need to be done that are, same as for Restlet. Br, Gabi -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2398842

getText() still returns null with Tomcat

2009-09-23 Thread Rickard Öberg
Hi, We are using Restlet 2.0-SNAPSHOT from the Maven repo (which doesn't seem to have been updated since June btw) along with Tomcat, and we seem to be running into the getText() returns null bug alot. I read the bug threads on Restlet (id: 843) and Tomcat (id: 42996) issue trackers, and from