{"action":"created","issue":{"url":"https://api.github.com/repos/stagemonitor/stagemonitor-mailinglist/issues/22","labels_url":"https://api.github.com/repos/stagemonitor/stagemonitor-mailinglist/issues/22/labels{/name}","comments_url":"https://api.github.com/repos/stagemonitor/stagemonitor-mailinglist/issues/22/comments","events_url":"https://api.github.com/repos/stagemonitor/stagemonitor-mailinglist/issues/22/events","html_url":"https://github.com/stagemonitor/stagemonitor-mailinglist/issues/22","id":128040760,"number":22,"title":"How to use stagemonitor in an OSGi based application","user":{"login":"busychild","id":1844265,"avatar_url":"https://avatars.githubusercontent.com/u/1844265?v=3","gravatar_id":"","url":"https://api.github.com/users/busychild","html_url":"https://github.com/busychild","followers_url":"https://api.github.com/users/busychild/followers","following_url":"https://api.github.com/users/busychild/following{/other_user}","gists_url":"https://api.github.com/users/busychild/gists{/gist_id}","starred_url":"https://api.github.com/users/busychild/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/busychild/subscriptions","organizations_url":"https://api.github.com/users/busychild/orgs","repos_url":"https://api.github.com/users/busychild/repos","events_url":"https://api.github.com/users/busychild/events{/privacy}","received_events_url":"https://api.github.com/users/busychild/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-21T22:54:23Z","updated_at":"2016-01-22T07:30:45Z","closed_at":null,"body":"Hi guys, \r\n\r\nwe would like to use stagemonitor in our application which contains several servlets (for three applications) as well as some other servlets for resources, etc. The application is OSGi based and we're using Vaadin as our client/server framework.\r\n\r\nHow can we implement stagemonitor in this environment? What i've tried so far:\r\n\r\n1. Just added the maven depdencies and a new custom OSGi feature for stagemonitor\r\n-> Didn't worked\r\n\r\n2. Added the javaagent to the jvm args for running stagemonitor outside the environment\r\n-> Didn't worked\r\n\r\n3. Readded the maven dependencies and the feature and additionally called \"StageMonitor.init()\" and \"new WebPlugin().onStartup(null, getServletContext());\" in the \"servletInitialized\" method of one of our servlets\r\n-> Throws a nullpointer exception as \"ConfigurationOptionProvider> T getConfig(Class<T> configClass)\" in Configuration.java can't find the options provider (there's just a CorePlugin inside the optionProvidersByClass but a WebPlugin is expected) and so the registration of the HttpRequestMonitorFilter won't work\r\n\r\nAs i'm not aware of how stagemonitor is attaching / embedding itself to the regarding application i'm stuck at the moment. Has anybody some ideas?\r\n\r\nThanks in advance and best regards\r\n\r\nFlorian\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/stagemonitor/stagemonitor-mailinglist/issues/comments/173833767","html_url":"https://github.com/stagemonitor/stagemonitor-mailinglist/issues/22#issuecomment-173833767","issue_url":"https://api.github.com/repos/stagemonitor/stagemonitor-mailinglist/issues/22","id":173833767,"user":{"login":"felixbarny","id":2163464,"avatar_url":"https://avatars.githubusercontent.com/u/2163464?v=3","gravatar_id":"","url":"https://api.github.com/users/felixbarny","html_url":"https://github.com/felixbarny","followers_url":"https://api.github.com/users/felixbarny/followers","following_url":"https://api.github.com/users/felixbarny/following{/other_user}","gists_url":"https://api.github.com/users/felixbarny/gists{/gist_id}","starred_url":"https://api.github.com/users/felixbarny/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/felixbarny/subscriptions","organizations_url":"https://api.github.com/users/felixbarny/orgs","repos_url":"https://api.github.com/users/felixbarny/repos","events_url":"https://api.github.com/users/felixbarny/events{/privacy}","received_events_url":"https://api.github.com/users/felixbarny/received_events","type":"User","site_admin":false},"created_at":"2016-01-22T07:30:45Z","updated_at":"2016-01-22T07:30:45Z","body":"I didn't try out stagemonitor in an OSGI environment yet. Do you have an example application at hand that I could use to try out the integration?"}}