How to use Transformer with XML namespaces?

2008-02-27 Thread Serene
Hi, I am trying to transform an XML with namespaces through XSL to HTML. In my DomRepresentation and DocumentBuilderFactory, I called setNamespaceAware(true). The TransformRepresentation does not seem to handle XML with namespaces. I do not see any way to set namespace awareness in

Re: First Steps - problems

2008-02-27 Thread Thierry Boileau
Hi Leshek, this is a log trace saying that the FirstStepsApplication class does not have a public contructor with a Context parameter. In this case, the default constructor is called followed by a call to the setContext method. I've added this contructor and updated both source and pages.

Re: Response Object Threadpool issue : Response Object stops working inside a thread

2008-02-27 Thread code dude
Hi All, Do you need syschoronize Responce object when used inside a thread .its just stops working inside a thread (threadpool) Am I missing something I am stuck at this problem for last 3-4 days , any help will me much appreciated Rgds, cd On 2/27/08, code dude [EMAIL PROTECTED] wrote:

Re: GroovyRestlet, a simple DSL for constructing Restlet application easily

2008-02-27 Thread keke
Hi Jerome, It will be great for me if this project could be accepted and hosted as a Groovy Module. Cheers, Keke On Tue, Feb 26, 2008 at 5:55 PM, Jerome Louvel [EMAIL PROTECTED] wrote: Hi keke! This is excellent and will remind to some long Restlet users an experience that was made on

Re: Response Object Threadpool issue

2008-02-27 Thread Tim Peierls
On Wed, Feb 27, 2008 at 8:36 AM, Tim Peierls [EMAIL PROTECTED] wrote: Currently RESTlet doesn't support asynchronous handling of requests, so the only way to use thread pools is to submit tasks from the response handling thread and block until the tasks. That should have read ... until the

Re: Response Object Threadpool issue

2008-02-27 Thread code dude
Thanks Tim ...What About servlet response in Jetty or Tomcat ...do they support asynchronous handling of requests?? , can this be overcome thru callbacks ?? On 2/27/08, Tim Peierls [EMAIL PROTECTED] wrote: Currently RESTlet doesn't support asynchronous handling of requests, so the only way to

Re: Response Object Threadpool issue

2008-02-27 Thread Tim Peierls
The servlet model is inherently thread-per-request. The only way to use multiple threads when handling a request is to block the handling thread until all other tasks related to the request are complete. You have to go beyond the servlet model to break out of this constraint. Rob Heittman's post

Re: Response Object Threadpool issue

2008-02-27 Thread Rob Heittman
FYI, somewhere in next week I hope to be landing the working GWT code that experiments with the async-style handle. Jerome's created a spot for it out of the normal modular build, so the experimental code isn't confused with actual Restlet internals. I just have to finish murderous deliverables

RE: How to use Transformer with XML namespaces?

2008-02-27 Thread Jerome Louvel
Hi Serene, I'm not aware of such limitation. Are you sure that your XSLT stylesheet correctly deal with namespaces? Could you send us a reproducible sample? Best regards, Jerome -Message d'origine- De : news [mailto:[EMAIL PROTECTED] De la part de Serene Envoyé : mercredi 27

Re: How to use Transformer with XML namespaces?

2008-02-27 Thread Serene
Jerome Louvel contact at noelios.com writes: Hi Serene, I'm not aware of such limitation. Are you sure that your XSLT stylesheet correctly deal with namespaces? Could you send us a reproducible sample? Best regards, Jerome -Message d'origine- De : news [mailto:news

Re: GroovyRestlet, a simple DSL for constructing Restlet application easily

2008-02-27 Thread Rob Heittman
I finally got a moment to take a look at this. Very neat and elegant! I'm allergic to programming in dynamic languages (::achoo::), but I like the DSL concept, and I spend a lot of free time experimenting with Scala. I'd love to follow a similar pattern for Scala someday. +1 for this as a

Re: First Steps - problems

2008-02-27 Thread Leshek
Thank you, a step forward. Any on what is wrong now? I get: [2/27/08 10:37:41:796 PST] 0024 ServletWrappe E SRVE0100E: Did not realize init() exception thrown by servlet RestletServlet: java.lang.NullPointerException at

Re: First Steps - problems

2008-02-27 Thread Stephan Koops
If I remeber right, we've had this exception already. Do you use n actual version? regards Stephan Leshek schrieb: Thank you, a step forward. Any on what is wrong now? I get: [2/27/08 10:37:41:796 PST] 0024 ServletWrappe E SRVE0100E: Did not realize init() exception thrown by

RE: First Steps - problems

2008-02-27 Thread Jerome Louvel
Hi all, Right, this is a regression that was introduced in 1.1 M1. There is an updated snapshot that is available here: http://www.restlet.org/downloads/archives/1.1/restlet-1.1-SNAPSHOT.zip Otherwise, we hope to release 1.1 M2 soon now (only two issues pending)... Best regards, Jerome

Re: setting the location header

2008-02-27 Thread Thierry Boileau
Hi Jim, The application must handle absolute URIs. You can update your code as follow : Reference reference = new Reference(/exchange); reference.setBaseRef(http://localhost;); Request request = new Request(Method.POST, reference); By doing so, the application still

Re: First Steps - problems

2008-02-27 Thread Thierry Boileau
Hi Leshek, the WAR file provided by the firstSteps page contains the archives of the API, NRE and servlet extension. These archives have been compiled 1 week ago, thus after the fix. Could you tell us if you are using this WAR file or another one? best regards, Thierry Boileau On Wed, Feb 27,

Re: Restlet and Velocity template location.

2008-02-27 Thread Vincent
Stuart, I'm trying to use the TemplateRepresentation for the Velocity extension as part of a webapp, but I am having problems configuring the template location. Have you tried this: org.restlet.ext.velocity.TemplateRepresentation r = new

Re: First Steps - problems

2008-02-27 Thread Leshek
It is working now, with files Jerome pointed me to (http://www.restlet.org/downloads/archives/1.1/restlet-1.1-SNAPSHOT.zip). Could you tell us if you are using this WAR file or another one? I am building my own, actually, building only on the fly and deploying into test instance of IBM WAS

Re: First Steps - problems

2008-02-27 Thread Leshek
Ignition !!! Thank you! Now... how to the hard part... translating my design into real service :-)

Re: First Steps - problems

2008-02-27 Thread Thierry Boileau
Great! Have a good time! :)) On Wed, Feb 27, 2008 at 10:24 PM, Leshek [EMAIL PROTECTED] wrote: Ignition !!! Thank you! Now... how to the hard part... translating my design into real service :-)

Re: How to use Transformer with XML namespaces?

2008-02-27 Thread Serene
Hi Jerome, It's solved and it is an XSLT issue. Sorry and thanks! Serene