I have create a sample micro service using WSO2 MSF4J. But i can't access the sub resources (services). Following are my service classes.
Message Resource -
@Path("/messages")
@Consumes(MediaType.APPLICATION_JSON) 
@Produces(MediaType.APPLICATION_JSON) 
public class MessageResource {
    @Path("/{messageId}/comments")
    public CommentResource getCommentResource(){
        System.out.println("inside the getCommentResource method");
        return new CommentResource();
    }
}
Comment Resource -
@Path("/") 
public class CommentResource {
    @GET
    @Path("/{commentId}")
    public String test2(@PathParam("messageId") long messageId, @PathParam("commentId") long commentId){
        System.out.println("method to return comment Id : " + commentId + " for message : " + messageId);
        return "method to return comment Id : " + commentId + " for message : " + messageId;
    }
}
I have used following URI to access this service.
GET : http://localhost:8080/messages/1/comments/5
But i got following result to my REST client.
404 Not Found
Problem accessing: /messages/1/comments/5. Reason: Not Found
Please help to resolve this.