Re: Router in servelet not routing to correct resource
!DOCTYPE html PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN html head meta content=text/html;charset=ISO-8859-1 http-equiv=Content-Type /head body bgcolor=#ff text=#00 Thanks.nbsp; That did it.nbsp; I think I'm losing it because I thought I tried that and it didn't work.nbsp; br Thanks again,br Mattbr br Matt Kennedy wrote: blockquote cite=mid:682073e5-25b8-47b9-970e-182d4990e...@gmail.com type=cite pre wrap=I'm not 100% sure based on that description, but try setting your second router line to: router.attach(/test1) On Oct 21, 2009, at 1:19 PM, Matt Stromske wrote: /pre blockquote type=cite pre wrap=Hello, I can't figure out why my router isn't routing to the correct resource. It always seems to route to the default route. I have 2 routes: router.attachDefault(DefaultResource.class); router.attach(/gpsh/test1,TestResource.class); My servlet container mapping: lt;url-patterngt;/gpsh/*lt;/url-patterngt; When I attempt to go to /gpsh/test1, I end up going to the default route. Any idea how I can get the routing corrected? Thanks, Matt -- a class=moz-txt-link-freetext href=http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2409873;http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447amp;dsMessageId=2409873/a /pre /blockquote pre wrap=! -- a class=moz-txt-link-freetext href=http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2409935;http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447amp;dsMessageId=2409935/a /pre /blockquote br pre class=moz-signature cols=72-- Matt Stromske Software Engineer Singlewire Software, LLC a class=moz-txt-link-abbreviated href=http://www.singlewire.com;www.singlewire.com/a -- 608.298.1020 a class=moz-txt-link-abbreviated href=mailto:matt.strom...@singlewire.com;matt.strom...@singlewire.com/a /pre /body /html -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2409949
Router in servelet not routing to correct resource
Hello, I can't figure out why my router isn't routing to the correct resource. It always seems to route to the default route. I have 2 routes: router.attachDefault(DefaultResource.class); router.attach(/gpsh/test1,TestResource.class); My servlet container mapping: url-pattern/gpsh/*/url-pattern When I attempt to go to /gpsh/test1, I end up going to the default route. Any idea how I can get the routing corrected? Thanks, Matt -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2409873
Client (HTTP) and query encoding of space characters
Hello, I'm using a Client with the HTTP protocol. I'm sending a GET with a query and I noticed that space characters are encoded to + (plus) signs. I would like them encoded to %20 instead. Is there a way to do this? Thanks, Matt -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2402675
Extracting XML from Representation from POST
Hello, How do you extract the XML from a POST request? I've tried using the input stream of the representation in conjunction with a SAXBuilder (JDOM) object, but that doesn't seem to work. Then, I tried 'Form' and got a little further. I noticed the Form was populated. How can you pull names/values from the Form? Thanks, Matt -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2397624
Setting POST parameters
Hello, How do you set POST parameters in the body of the message? Thanks, Matt -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2393357
Re: restlet server NoSuchMethodError
I just realized I am using an old version of Tomcat (4.1) and the servlet spec for that version of Tomcat does not have support the 'getLocalAddr' method. Darn it. Stephan Koops wrote: Hi Matt, looks like that the JARs are from different Restlet versions. best regards Stephan -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2359005 -- Matt Stromske Software Engineer Singlewire Software, LLC www.singlewire.com -- 608.298.1020 matt.strom...@singlewire.com -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2359083
Re: Tomcat not shutting down with Restlet
I found the problem: a pilot error on my part. Not sure what I was sniffing the day I implemented it, but I had put in a server component that started up upon Tomcat initialization. I think it "found" its way in when I was testing the Restlet standalone java app and ported it to a servlet. Anyway, the server wasn't getting shut down when Tomcat was shutting down. So I simply removed it. Thanks for all the advice. Matt Jerome Louvel wrote: Hi Matt, One way to check from where the issue comes is to trim your application to the strict minimum and check if you still observer this issue. In such case, please open a defect report and attach the same applications with steps to reproduce the issue and we'll look at it. 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 : Michael McCallum [mailto:gho...@xtra.co.nz] Envoyé : mardi 12 mai 2009 01:08 À : discuss@restlet.tigris.org Objet : Re: Tomcat not shutting down with Restlet On Tue, 12 May 2009 06:47:53 Matt Stromske wrote: Still no reply on this yet. Anyone out there with some advice? Thanks, Matt -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=21951 79 check to see you have not spawned non daemon threads... or thread pool executors not shut down... -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2234270 -- Matt Stromske Software Engineer Singlewire Software, LLC www.singlewire.com -- 608.298.1020 matt.strom...@singlewire.com