I've tried the newest 7.3.6 now and I'm still getting this
NullPointerException:

org.apache.felix.log.LogException: org.ops4j.lang.NullArgumentException:
Context model is null.
at
org.ops4j.lang.NullArgumentException.validateNotNull(NullArgumentException.java:74)
at org.ops4j.pax.web.service.spi.model.Model.<init>(Model.java:27)
at
org.ops4j.pax.web.service.spi.model.WelcomeFileModel.<init>(WelcomeFileModel.java:32)
at
org.ops4j.pax.web.service.internal.HttpServiceStarted.registerWelcomeFiles(HttpServiceStarted.java:1005)
at
org.ops4j.pax.web.service.internal.HttpServiceProxy.registerWelcomeFiles(HttpServiceProxy.java:364)

The use case is where only static resources are being exposes, and
registerWelcomeFiles is called.
I hit the NPE trying to access the welcome page (index.html):

WebContainer webCont = ...

webCont.registerResources(urlPath, urlPath , httpContext);
webCont.registerWelcomeFiles(new String[] { "index.html" }, true,
httpContext);

Silvano

On Thu, Dec 12, 2019 at 6:14 PM Silvano Maffeis <[email protected]> wrote:

> This used to work with pax-web 4.2.7
>
>

-- 
Silvano Maffeis
Dr. oec. publ.

-- 
-- 
------------------
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/CAMuHPN2dYu1QE8kDp%2BZoj2OY4G0-KB6CGAyhmXQu4Oqn3idoAw%40mail.gmail.com.

Reply via email to