commit | 0816520e651c2ba7172720463a118753859b9a00 | [log] [tgz] |
---|---|---|
author | Carlos Sierra <csierra@apache.org> | Fri Sep 06 17:13:28 2019 +0200 |
committer | Carlos Sierra <csierra@apache.org> | Wed Sep 11 15:00:53 2019 +0200 |
tree | f46f746d9d873231673cd15f7f25039ed689f0a3 | |
parent | a49649e9d88c1440f98b618ea9855de7da3ecddf [diff] |
[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.
Aries JAX-RS Whiteboard is the reference implementation of the OSGi JAX-RS Services Whiteboard 1.0.
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.
Execute the maven tasks mvn clean install
.
The file jax-rs.example-run/example.jar
should have been created.
Execute the following command:
java -jar jax-rs.example-run/example.jar
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.