--- a/java/org/apache/el/ExpressionFactoryImpl.java +++ b/java/org/apache/el/ExpressionFactoryImpl.java @@ -31,7 +31,8 @@ /** * @see jakarta.el.ExpressionFactory */ -@aQute.bnd.annotation.spi.ServiceProvider(value = ExpressionFactory.class) +// aQute.bnd.annotation.spi is not available in the distribution bnd version +// @aQute.bnd.annotation.spi.ServiceProvider(value = ExpressionFactory.class) public class ExpressionFactoryImpl extends ExpressionFactory { static { --- a/java/org/apache/juli/logging/LogFactory.java +++ b/java/org/apache/juli/logging/LogFactory.java @@ -21,7 +21,8 @@ import java.util.ServiceLoader; import java.util.logging.LogManager; -import aQute.bnd.annotation.spi.ServiceConsumer; +// aQute.bnd.annotation.spi is not available in the distribution bnd version +// import aQute.bnd.annotation.spi.ServiceConsumer; /** * This is a modified LogFactory that uses a simple {@link ServiceLoader} based discovery mechanism with a default of @@ -50,7 +51,7 @@ * IMPLEMENTATION NOTE - This implementation is heavily based on the SAXParserFactory and * DocumentBuilderFactory implementations (corresponding to the JAXP pluggability APIs) found in Apache Xerces. */ -@ServiceConsumer(value = Log.class) +// @ServiceConsumer(value = Log.class) public class LogFactory { private static final LogFactory singleton = new LogFactory(); --- a/java/org/apache/tomcat/websocket/WsContainerProvider.java +++ b/java/org/apache/tomcat/websocket/WsContainerProvider.java @@ -19,7 +19,8 @@ import jakarta.websocket.ContainerProvider; import jakarta.websocket.WebSocketContainer; -@aQute.bnd.annotation.spi.ServiceProvider(value = ContainerProvider.class) +// aQute.bnd.annotation.spi is not available in the distribution bnd version +// @aQute.bnd.annotation.spi.ServiceProvider(value = ContainerProvider.class) public class WsContainerProvider extends ContainerProvider { @Override --- a/java/org/apache/tomcat/websocket/server/DefaultServerEndpointConfigurator.java +++ b/java/org/apache/tomcat/websocket/server/DefaultServerEndpointConfigurator.java @@ -26,7 +26,8 @@ import jakarta.websocket.server.HandshakeRequest; import jakarta.websocket.server.ServerEndpointConfig; -@aQute.bnd.annotation.spi.ServiceProvider(value = ServerEndpointConfig.Configurator.class) +// aQute.bnd.annotation.spi is not available in the distribution bnd version +// @aQute.bnd.annotation.spi.ServiceProvider(value = ServerEndpointConfig.Configurator.class) public class DefaultServerEndpointConfigurator extends ServerEndpointConfig.Configurator { @Override