Hi

I'm using pax-web 7.3.5. In the activate() method of my OSGi bundle I'm
doing the following:

final ServiceReference<WebContainer> ref =
ctx.getServiceReference(WebContainer.class);
final WebContainer webCont = ctx.getService(ref);

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

and I'm getting the following error. I also tried with a non-null
HttpContext, but I'm hitting the same exception:

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)

I'm on Apache Felix, not on Karaf.

Silvano

-- 
-- 
------------------
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/CAMuHPN0hZtUpb065B8yD62JS%3De1qKb-4aDVXmAMfCf8mpzpQag%40mail.gmail.com.

Reply via email to