Comments (8)
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?
from wiremock.
I've tried both, but couldn't find a difference between the exceptions.
from wiremock.
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.
from wiremock.
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.
from wiremock.
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.
from wiremock.
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:
In Version 2 i used the bundle-plugin from maven to inline all dependencies and export the needed packages. But it also failed with the same error.
I would also appreciate a pull-request!
from wiremock.
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?
from wiremock.
Closing due to inactivity.
from wiremock.
Related Issues (20)
- Support for programmatic extension configuration HOT 1
- WireMockHandlerDispatchingServlet.applyResponse needs fix when running Wiremock proxy on Servlet API 6 HOT 1
- Shading SLF4J breaks the notifier HOT 2
- Support jsonBody on serveEventListeners of type webhook callback
- Extensions always supplies a null TemplateEngine to ExtensionFactory
- Detect overlapping mock json in wiremock HOT 2
- Extension configuration validation HOT 1
- gradle-wrapper.jar is inconsistent with current gradle version. HOT 2
- Make it possible to configure level for SubEvents, or to make it possible to disable them
- Composable startup configuration with extra bindings HOT 1
- Support custom startup parameters for extensions HOT 5
- Cannot send 'large' SOAP requests with http2 HOT 2
- Remove/disable stub when it was called one time HOT 1
- Fail to process request with sub boundaries HOT 1
- Is it feasible to set the level of SubEvents or to make them inactive? HOT 1
- JSON decoding error HOT 2
- Decimals matching issue in wiremock 3.4.0 HOT 1
- Wiremock standalone 3: NoSuchMethodError HOT 1
- Wiremock not detecting POST body request by Spring 6 RestClient HOT 1
- WireMockExtension.stopServerIfRunning() produces NPE when Unit Test aborts unexpectedly
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wiremock.