Re: Dynamically registering a WAB

2023-02-13 Thread Andrew Lienhard
g = context.registerService(Object.class, > new Object(), properties); > > Then you'll be able to get resources from bundle's "/resources" directory > using URI's like "/sample/static/*" > > But sure - your WAR approach should work too. > > regards >

Re: Dynamically registering a WAB

2023-02-12 Thread Andrew Lienhard
t-sample=/sample " >From <https://karaf.apache.org/manual/latest/webcontainer> https://docs.osgi.org/specification/osgi.cmpn/7.0.0/service.war.html#i3100445 On Sun, Feb 12, 2023 at 4:29 PM Andrew Lienhard wrote: > I have a WAB in a karaf container that I need to deploy usi

Dynamically registering a WAB

2023-02-12 Thread Andrew Lienhard
I have a WAB in a karaf container that I need to deploy using a context path based on environment variables (k8s helm). Currently its web-ContextPath is hardcoded in a pom.xml, so it's compile-time only which won't work for our deployments. I'm wondering if it's possible to register this WAB

dynamically register a WAB in a OSGi environment

2023-02-12 Thread Andrew Lienhard
I have a static web directory being served inside a unomi container as a WAB and I need to be able to deploy it with a context path based on environment variables instead of a hardcoded path. We currently set the web-ContextPath for this WAB in a pom.xml, so it's compile-time only which won't

Re: [PAX WEB] overrideDescriptor missing from HttpServiceContext

2021-04-29 Thread Andrew Lienhard
dash ("-") in a PID > makes it a factory PID and that's what the context processing needs. > > regards > Grzegorz Grzybek > > śr., 28 kwi 2021 o 18:44 Andrew Lienhard napisał(a): > >> I should add: I'm using pax web 7.2.19 via karaf 4.2.10 >> >> On Wednes

Re: [PAX WEB] overrideDescriptor missing from HttpServiceContext

2021-04-28 Thread Andrew Lienhard
I should add: I'm using pax web 7.2.19 via karaf 4.2.10 On Wednesday, April 28, 2021 at 11:37:10 AM UTC-5 Andrew Lienhard wrote: > Thanks for the response Grzegorz! I ran across that keycloak OSGI adapter > yesterday and was starting down a similar path to unregister/rere

Re: [PAX WEB] overrideDescriptor missing from HttpServiceContext

2021-04-28 Thread Andrew Lienhard
s/paxweb/pages/354025473/HTTP+Context+processing > > - I implemented it some time ago to be able to override a "context" created > by CXF, but it should apply to "contexts" created within the scope of WABs > as well. > > regards > Grzegorz Grzybek >

[PAX WEB] overrideDescriptor missing from HttpServiceContext

2021-04-27 Thread Andrew Lienhard
Hi. I added a jetty-web.xml to a WEB-INF, which is being read, but as noted in other posts here the HttpServiceContext doesn't implement all of the methods in WebAppContext. The one I'd like to use is overrideDescriptor. ./etc/override-web.xml Outcome: Exception while configuring webApp!