<div dir="ltr">Dear Ceki<div><br></div><div>> Which OSGi platform/application are you using?</div><div>I use Eclipse Equinox (<i>org.eclipse.osgi_3.18.300.v20230220-1352.jar</i>) as container for my OSGi application.</div><div><br></div><div>Best,<br>Benno</div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, 18 Jun 2023 at 18:35, Ceki Gülcü via logback-user <<a href="mailto:logback-user@qos.ch">logback-user@qos.ch</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
Hello Benno,<br>
<br>
jakarta.servlet.ServletContainerInitializer is a service declaration<br>
found under logback-classic/META-INF/services/. It contains a reference<br>
to the<br>
ch.qos.logback.classic.servlet.LogbackServletContainerInitializer class.<br>
This class ships with logback-classic.<br>
<br>
There is also an instruction in logback-classic/pom.xml for the<br>
maven-bundle-plugin declaring<br>
jakarta.servlet.ServletContainerInitializer as a a service provided by<br>
LogbackServletContainerInitializer.<br>
<br>
This is a recapitulation of the intended state and things should work<br>
reasonably well in a OSGi environment.<br>
<br>
Which OSGi platform/application are you using?<br>
<br>
-- <br>
Ceki Gülcü<br>
<br>
Sponsoring SLF4J/logback/reload4j at <a href="https://github.com/sponsors/qos-ch" rel="noreferrer" target="_blank">https://github.com/sponsors/qos-ch</a><br>
<br>
On 6/18/2023 5:35 PM, Benno Luthiger via logback-user wrote:<br>
> Hello everybody,<br>
> <br>
> In my OSGi application, I use /ch.qos.logback.classic/ (1.4.8) for logging.<br>
> <br>
> For this reason I have included, among others, the bundle ch.qos.logback.classic_1.4.8. However, this leads to the following error message:<br>
> <br>
> /java.lang.ClassNotFoundException:<br>
> jakarta.servlet.ServletContainerInitializer cannot be found by<br>
> ch.qos.logback.classic_1.4.8/<br>
> <br>
> I get this error even when I have started the bundle jakarta.servlet-api_6.0.0 (containing jakarta.servlet.ServletContainerInitializer).<br>
> <br>
> How should I proceed to solve this problem?<br>
> <br>
> Best,<br>
> Benno<br>
> <br>
> <br>
_______________________________________________<br>
logback-user mailing list<br>
<a href="mailto:logback-user@qos.ch" target="_blank">logback-user@qos.ch</a><br>
<a href="https://mailman.qos.ch/cgi-bin/mailman/listinfo/logback-user" rel="noreferrer" target="_blank">https://mailman.qos.ch/cgi-bin/mailman/listinfo/logback-user</a></blockquote></div>