Hi,
 I'm using Restlet jse version 2.0.7.
I've a few routing rules defined as follows:
-----------------------------------
                router.attach("/system", SystemResource.class);
                router.attach("/system/scaling", SystemScalingResource.class);
                router.attach("system/instance/{server}", 
ServerInstanceResource.class);
                router.attach("/system/cluster/{group}", 
ServerGroupResource.class);
                router.attach("system/cluster/{group}/params", 
ServerGroupParamsResource.class);
                router.attach("system/cluster/{group}/load", 
ServerGroupLoadResource.class);
--------------------------------------

Each of the resource files has a Get method defined though annotation.
I'm able to perform get requests of all of the URIs except the one for - 
"server/instance/{server}".
I'm getting the following 404 response:

-----------------------------
Request URL: http://localhost:8080/ebento/voip/api/system/instance/something
Request Method: GET
Params: {}
Sent Headers
Accept: */*
Content-Type: application/xml; charset=UTF-8
Accept-Language: en


Received Headers
Status Code: 404
Date: Thu, 09 Jun 2011 11:04:36 GMT


Content-Length: 439


Server: Restlet-Framework/2.0.7


Content-Type: text/html; charset=UTF-8


Accept-Ranges: bytes


Response Body
<html>
<head>
   <title>Status page</title>
</head>
<body style="font-family: sans-serif;">
<p style="font-size: 1.2em;font-weight: bold;margin: 1em 0px;">Not Found</p>
<p>The server has not found anything matching the request URI</p>
<p>You can get technical details <a 
href="http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html#sec10.4.5";>here</a>.<br>
Please continue your visit at our <a href="/">home page</a>.
</p>
</body>
</html>
-----------------------------

This is very weird since all the other URI seems to be matching its resource 
file, this one simply doesn't resolve to the resource file through the URI 
pattern.
Am I missing something here?

Thanks,
Soumik

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=2760691

Reply via email to