{"action":"created","issue":{"url":"https://api.github.com/repos/hstaudacher/osgi-jax-rs-connector/issues/106","labels_url":"https://api.github.com/repos/hstaudacher/osgi-jax-rs-connector/issues/106/labels{/name}","comments_url":"https://api.github.com/repos/hstaudacher/osgi-jax-rs-connector/issues/106/comments","events_url":"https://api.github.com/repos/hstaudacher/osgi-jax-rs-connector/issues/106/events","html_url":"https://github.com/hstaudacher/osgi-jax-rs-connector/issues/106","id":104268303,"number":106,"title":"jersey-min does work, jersey-all generates 503","user":{"login":"col-panic","id":1679857,"avatar_url":"https://avatars.githubusercontent.com/u/1679857?v=3","gravatar_id":"","url":"https://api.github.com/users/col-panic","html_url":"https://github.com/col-panic","followers_url":"https://api.github.com/users/col-panic/followers","following_url":"https://api.github.com/users/col-panic/following{/other_user}","gists_url":"https://api.github.com/users/col-panic/gists{/gist_id}","starred_url":"https://api.github.com/users/col-panic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/col-panic/subscriptions","organizations_url":"https://api.github.com/users/col-panic/orgs","repos_url":"https://api.github.com/users/col-panic/repos","events_url":"https://api.github.com/users/col-panic/events{/privacy}","received_events_url":"https://api.github.com/users/col-panic/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-09-01T13:36:59Z","updated_at":"2015-09-10T11:52:54Z","closed_at":null,"body":"If I try to re-implement the ds example in http://eclipsesource.com/blogs/2014/02/04/step-by-step-how-to-bring-jax-rs-and-osgi-together/ to a current target (Mars) then using jersey-min within my application does work as expected, using jersey-all does always result in\r\n\r\n```\r\nHTTP ERROR: 503\r\n\r\nProblem accessing /services/status. Reason:\r\n\r\n    Jersey is not ready yet!\r\n```"},"comment":{"url":"https://api.github.com/repos/hstaudacher/osgi-jax-rs-connector/issues/comments/139212600","html_url":"https://github.com/hstaudacher/osgi-jax-rs-connector/issues/106#issuecomment-139212600","issue_url":"https://api.github.com/repos/hstaudacher/osgi-jax-rs-connector/issues/106","id":139212600,"user":{"login":"maggu2810","id":204670,"avatar_url":"https://avatars.githubusercontent.com/u/204670?v=3","gravatar_id":"","url":"https://api.github.com/users/maggu2810","html_url":"https://github.com/maggu2810","followers_url":"https://api.github.com/users/maggu2810/followers","following_url":"https://api.github.com/users/maggu2810/following{/other_user}","gists_url":"https://api.github.com/users/maggu2810/gists{/gist_id}","starred_url":"https://api.github.com/users/maggu2810/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maggu2810/subscriptions","organizations_url":"https://api.github.com/users/maggu2810/orgs","repos_url":"https://api.github.com/users/maggu2810/repos","events_url":"https://api.github.com/users/maggu2810/events{/privacy}","received_events_url":"https://api.github.com/users/maggu2810/received_events","type":"User","site_admin":false},"created_at":"2015-09-10T11:52:54Z","updated_at":"2015-09-10T11:52:54Z","body":"My problem exists also using jersey-min.\r\n\r\nI debugged a little bit:\r\n\r\nServletContainerBridge: public void run()\r\nThe method \"getServletContainer().init( servletConfig );\" is called and after that the finally block is executed.\r\nSo I tried to investigate the line of code, that raises the (non ServletException) exception.\r\n\r\n<pre>\r\nServletContainer.java\r\n169: init(final WebConfig webconfig)\r\n170: ... new WebComponent(...\r\n\r\nWebComponent.java\r\n322: public WebComponent(...\r\n339: ... new ApplicationHandler(...\r\n\r\nApplicationHandler.java\r\n322: public ApplicationHandler(...\r\n344: ... ResourceConfig.createRuntimeCOnfig(application);\r\n\r\nResourceConfig.java\r\n...\r\n1167: private RuntimeConfig(...\r\n1174: registerComponentsOf(customRootApp);\r\n...\r\n1199: private void registerComponentsOf(final Application application)\r\nLook into the Runnable...\r\n1207: registerIntances(...\r\n541: public final ResourceConfig registerInstances(final Set<Object> instances)\r\n547: register(instance);\r\n448: public ResourceConfig register(final Object component)\r\n450: state.register(component);\r\n\r\nCommonConfig.java\r\n460: public CommonConfig register(final Object component)\r\n464: if (componentBag.register(component, getModelEnhancer(componentClass))) {\r\n\r\nComponentBag.java\r\n307: public boolean register(Object component, Inflector<ContractProvider.Builder, ContractProvider> modelEnhancer) {\r\n309: ... registerModel(...\r\n\r\nComponentBag.java\r\n393: private boolean registerModel(...\r\n406: ... modelFor(...\r\n444: private static ContractProvider modelFor(...\r\ncontractMap is null\r\n450: ... asMap(...\r\n483: if (annotation instanceof Priority) {\r\n\r\nNoClassDefFoundError.java\r\n58: public NoClassDefFoundError(String s)\r\ns = javax/annotation/Priority\r\n</pre>\r\n\r\nFor me it seems to be: NoClassDefFoundError \"javax/annotation/Priority\"\r\n\r\nWill check this.\r\n\r\nWould be nice if the NoClassDefFoundError would be not catched at all and reported to the OSGi framework."}}