Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Resolution of JerseyBroadcaster OSGI Bundle #27

Closed
jocax opened this issue Dec 4, 2012 · 3 comments
Closed

Resolution of JerseyBroadcaster OSGI Bundle #27

jocax opened this issue Dec 4, 2012 · 3 comments

Comments

@jocax
Copy link

jocax commented Dec 4, 2012

I am working on a project and I want to start the Nettosphere from a OSGI blueprint bundle. I always get an exception in the DefaultBroadcasterFactory at

    private Broadcaster createBroadcaster(Class<? extends Broadcaster> c, Object id) throws BroadcasterCreationException {
        try {
            Broadcaster b = c.getConstructor(String.class, AtmosphereConfig.class).newInstance(id.toString(), config);
            InjectorProvider.getInjector().inject(b);

like

Caused by: java.lang.NoSuchMethodException: org.atmosphere.jersey.JerseyBroadcaster.(java.lang.String, org.atmosphere.cpr.AtmosphereConfig)

but the class has such a constructor. Is nettosphere -> atmosphere working in a OSGI environment. Could not find any working example.

@jfarcand
Copy link
Member

@jocax: Have you ever find the solution? If you can share your test case. Sorry for the delay, now fully back on the project.

@jocax
Copy link
Author

jocax commented Mar 2, 2013

No, I could not find a solution to start nettosphere from a OSGi blueprint bundle.

@jfarcand
Copy link
Member

jfarcand commented Nov 6, 2013

Fixed in 2.1.0-beta1

@jfarcand jfarcand closed this as completed Nov 6, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants