Trouble while Upgrding to Karaf(4.4.1 with PAX 8.0.6) from 4.1.4 with PAX 6.0.9

4 views
Skip to first unread message

Kunal Kumar

unread,
Feb 23, 2023, 8:32:15 AM2/23/23
to OPS4J

Hello We are upgrading from karaf 4.1.4 to 4.4.1 and we are facing issue while upgrading.
We had custom ApplicationScanner Writtern which was dependent(via OSGI bind) on org.ops4j.pax.web.service.WebContainer implementation (on pax 6.0.9 this was working).

Now with 8.0.6 pax this bind method is not working as there in no implementation probably available with Karaf for WebContainer , which was earlier HttpServiceProxy.

I can see that HttpServiceProxy in pax runtime is now no more public in the source code.

Is HttpServiceProxy is not supposed to be osgi bounded externally now?
any alternative for below code to work on pax-8.0.6 work as well?
public void bind(WebContainer service)
{
LOG.info(BINDING, service.getClass().getName());
myHttpService = service;
}

public void unbind(WebContainer service)
{
LOG.info(UNBINDING, service.getClass().getName());
myHttpService = null;
}


Reply all
Reply to author
Forward
0 new messages