I am trying to get a pax exam test for a bundle that expects to find an
OSGi service of the type
org.ops4j.pax.web.service.WebContainer
Does anyone know the easiest way to get such a service registered?
I have tried firing up "org.apache.felix":"org.apache.felix.http.jetty":"2.3.2"
but that didn't help?
Is there a different bundle that will do the job?
Thanks!
- Steinar
Here's the configuration from the pax exam test?
@Configuration
public Option[] config() {
return options(
systemProperty("logback.configurationFile").value("file:src/test/resources/logback.xml"),
systemProperty("org.osgi.service.http.port").value("8081"),
mavenBundle("org.ops4j.pax.web", "pax-web-api", "4.2.7"),
mavenBundle("org.ops4j.pax.web", "pax-web-jsp", "4.2.7"),
mavenBundle("org.ops4j.pax.web", "pax-web-spi", "4.2.7"),
mavenBundle("org.ops4j.pax.logging", "pax-logging-api",
"1.8.2"),
mavenBundle("javax.servlet", "javax.servlet-api", "3.1.0"),
mavenBundle("javax.servlet.jsp", "javax.servlet.jsp-api",
"2.3.1"),
mavenBundle("javax.el", "javax.el-api", "2.2.5"),
mavenBundle("org.apache.felix", "org.apache.felix.http.api",
"2.3.2"),
mavenBundle("org.apache.felix",
"org.apache.felix.http.jetty", "2.3.2"),
mavenBundle("no.priv.bang.ukelonn", "ukelonn.bundle",
getMavenProjectVersion()),
junitBundles());
}
--
--
------------------
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].
For more options, visit https://groups.google.com/d/optout.