-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Osgi-Version #36
Comments
This is the first time I've heard of anyone trying to run it inside an OSGi container. Are you using the standalone JAR (via the standalone classifier in the dependency) or the standard one? |
I've tried both, but couldn't find a difference between the exceptions. |
My best suggestion would be to try and match the commons-logging version you're deploying with your container with the version used by Apache HTTP Client 4, which I believe is version 1.1.1. |
Jan, Tom, I'm currently running Wiremock in an OSGi environment but included as a lib on the bundles classpath and not as a bundle on its own. The error you're getting might be related to the isolated classloaders. How do you deploy wiremock within pax exam right now? Tom, I'd like to actually consume Wiremock as an OSGi bundle. Happy to provide a pull request to generate the necessary bits (MANIFEST.MF) as part of the gradle build. |
I'd be happy to receive a pull request for this. I barely used OSGi, so it be good to get a patch from someone with some experience with it. |
I tried different ways to bundle and deploy it to OSGi via PaxExam. Verison 1: public Option[] config() {
return options( systemProperty( "pax.exam.osgi.unresolved.fail" ).value( "true" ),
systemProperty( "org.ops4j.pax.logging.DefaultServiceLog.level" ).value( "DEBUG" ),
junitBundles(),
wrappedBundle( maven( "com.github.tomakehurst", "wiremock" ).version( "1.30" ))
// All other dependencies from wiremock...
);
} Version 2: I would also appreciate a pull-request! |
Hi, I have the same issue that @JanLoebel describes. @bmuskalla: Can you post your solution (the MANIFEST.MF) in this issue or provide the pull request? |
Closing due to inactivity. |
Add @oleg-nenashev to CODEOWNERS
Hey there,
i tried to use wiremock in my osgi-runtime wit pax-exam. But i was not able to get it running. At many tries i got this exception:
or
javax.servlet.UnavailableException: Servlet class com.github.tomakehurst.wiremock.servlet.HandlerDispatchingServlet is not a javax.servlet.Servlet
Has anyone tried to get WireMock running in an OSGi-Environment?
The text was updated successfully, but these errors were encountered: