Hello

Unfortunately, big changes are coming only to Pax Web 8 and I don't see a
chance to change this critical part of Pax Web 7 (so Pax Web's
HttpServiceContexts extends different class or implements this method you
need).

If you're trying to "apply security-constraints", you may try
https://ops4j1.jira.com/wiki/spaces/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

wt., 27 kwi 2021 o 18:17 Andrew Lienhard <[email protected]> napisaƂ(a):

> 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.
> <Configure class="org.eclipse.jetty.webapp.WebAppContext">
>
>   <Set name="overrideDescriptor"><SystemProperty name="jetty.home" 
> default="."/>./etc/override-web.xml</Set>
> </Configure>
>
> Outcome:
> Exception while configuring webApp!
> java.lang.NoSuchMethodException: class
> org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.setOverrideDescriptor(class
> java.lang.String)
>
> Is there a workaround?
>
> Context: we're trying to apply a security-constraint to override what the
> various deployed web apps may have set in our karaf container. I suspect
> our solution will be to use an Apache front-end.
>
> Thanks in advance!
>
> --
> --
> ------------------
> OPS4J - http://www.ops4j.org - [email protected]
>
> ---
> You received this message because you are subscribed to the Google Groups
> "OPS4J" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/ops4j/9013094a-e73a-49a9-9b69-1b82bce2c225n%40googlegroups.com
> <https://groups.google.com/d/msgid/ops4j/9013094a-e73a-49a9-9b69-1b82bce2c225n%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
-- 
------------------
OPS4J - http://www.ops4j.org - [email protected]

--- 
You received this message because you are subscribed to the Google Groups 
"OPS4J" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ops4j/CAAdXmhpXH3Y6Pwx0%3DP9JFNmGQnP_h96Xvq15JuVesjYgEHzzgQ%40mail.gmail.com.

Reply via email to