You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@wink.apache.org by "Reto Bachmann-Gmür (JIRA)" <ji...@apache.org> on 2012/12/07 10:43:23 UTC

[jira] [Created] (WINK-375) wink-osgi reregistering previously unregistered service

Reto Bachmann-Gmür created WINK-375:
---------------------------------------

             Summary: wink-osgi reregistering previously unregistered service
                 Key: WINK-375
                 URL: https://issues.apache.org/jira/browse/WINK-375
             Project: Wink
          Issue Type: Bug
            Reporter: Reto Bachmann-Gmür


reregistering a service that was unregistered before may cause the following warning and fail:

2012-12-07 10:26:00,062 [FelixStartLevel]  WARN [FelixStartLevel] (ApplicationValidator.java\:85) - The class XX was already added to the JAX-RS runtime. The runtime is ignoring this value.  Check that this class was not returned in the javax.ws.rs.core.Application subclass getSingletons() and getClasses() methods.

The reason for this is that on unregistetration a new RequestProcessor is not created right away but only scheduled for the next request. Adding a new resource should trigger creation of a new RequestProcessor if the request processor is outdated

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira