[ARIES-1929] Special error handling in the first rewire

If we get a wiring error in the first (probably bulk) rewire we need to
discard one by one the possible services that are causing it. Since CXF
does not inform about which service is causing the error we need to try
incrementally. Once we have ruled out the failing services we mark them
as such in the runtime and in the extension registry, which might cause
some more extensions or services to be unregistered from the
application (even the very application).

During this process we disable the registrator so we don't get
re-entrant rewires and, when finalized, we try to wire the application
again. If the application still fails we mark it as failing.
2 files changed
tree: f46f746d9d873231673cd15f7f25039ed689f0a3
  1. integrations/
  2. jax-rs.features/
  3. jax-rs.itests/
  4. jax-rs.itests-fragment/
  5. jax-rs.whiteboard/
  6. org.apache.aries.jax.rs.cxf.repackage/
  7. .gitignore
  8. LICENSE
  9. pom.xml
  10. README.md
README.md

JAX-RS Whiteboard

Build Status Maven Central

Aries JAX-RS Whiteboard is the reference implementation of the OSGi JAX-RS Services Whiteboard 1.0.

Integrations

The integrations folder contains OSGi enabled integrations for a variety of useful libraries that you might want to use with JAX-RS. In many cases these are just adding OSGi lifecycle and configuration to existing JAX-RS enabled libraries.

Building

Execute the maven tasks mvn clean install.

Running the Example

The file jax-rs.example-run/example.jar should have been created.

Execute the following command:

java -jar jax-rs.example-run/example.jar

License

Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the “License”); you may not use this file except in compliance with the License. You may obtain a copy of the License at

  http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an “AS IS” BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.