{"action":"opened","issue":{"url":"https://api.github.com/repos/jayway/jax-rs-hateoas/issues/3","labels_url":"https://api.github.com/repos/jayway/jax-rs-hateoas/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/jayway/jax-rs-hateoas/issues/3/comments","events_url":"https://api.github.com/repos/jayway/jax-rs-hateoas/issues/3/events","html_url":"https://github.com/jayway/jax-rs-hateoas/issues/3","id":56168471,"number":3,"title":"jax-rs-hateoas with Apache CXF","user":{"login":"pklotz","id":6533869,"avatar_url":"https://avatars.githubusercontent.com/u/6533869?v=3","gravatar_id":"","url":"https://api.github.com/users/pklotz","html_url":"https://github.com/pklotz","followers_url":"https://api.github.com/users/pklotz/followers","following_url":"https://api.github.com/users/pklotz/following{/other_user}","gists_url":"https://api.github.com/users/pklotz/gists{/gist_id}","starred_url":"https://api.github.com/users/pklotz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pklotz/subscriptions","organizations_url":"https://api.github.com/users/pklotz/orgs","repos_url":"https://api.github.com/users/pklotz/repos","events_url":"https://api.github.com/users/pklotz/events{/privacy}","received_events_url":"https://api.github.com/users/pklotz/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-01T16:24:21Z","updated_at":"2015-02-01T16:24:21Z","closed_at":null,"body":"Hi,\r\n\r\nthe approach of jax-rs-hateoas is great, just a thin hateoas wrapper on top of jax-rs. This means it should work with Apache CXF as well, what we're using. But at runtime no links are found, although my resource class extends HateoasApplication.\r\n\r\nThe .link() method always fails in this code:\r\n\r\n    return HateoasResponse.ok(data)\r\n      .link(LinkIds.DOIT, \"next\", \"\")\r\n      .build();\r\n \r\nThere is a link defined:\r\n\r\n  @POST\r\n  @Path(\"/doit\")\r\n  @Consumes(MediaType.APPLICATION_JSON)\r\n  @Linkable(value=LinkIds.DOIT)\r\n\r\nBut in this method in DefaultHateoasContext:\r\n\r\n    public LinkableInfo getLinkableInfo(String link) {\r\n        LinkableInfo linkableInfo = linkableMapping.get(link);\r\n        Validate.notNull(linkableInfo, \"Invalid link: \" + link);\r\n        return linkableInfo;\r\n    }\r\n\r\nthe linkableInfo is always null, which means that the @Linkable annotation is not being processed.\r\nWhat else does one have to do?\r\n\r\nOr would it be possible to get direct CXF-support as a package like jersey?\r\n\r\nBTW, when using the .link(linkid, rel) method without parameter (which does exist) falls back to the jax-rs method and fails miserably. Maybe one could override it?"}}