on 01-08-2018 11:35 AM - last edited on 02-04-2024 12:42 AM by postmig_api_4
I am currently developing an IoT Gateway Interceptor using some external libraries such as libraries related to org.apache.http.client.*. When testing the interceptor on my local machine in eclipse without the gateway, everything works as planned, but when executed as an OSGi bundle within the Gateway, only the InterceptorActivator starts up but no message of the actual interceptor is found in the log. There are just dozens of error messages in the error log in folder "configuration" of the type "java.lang.NoClassDefFoundError: org/apache/http/client/ [...]".
I figure that somehow the included libraries went missing when building the OSGi bundle / when clicking "Build Iot Interceptor in Eclipse.
Thanks in advance for your help!
Hi Fabian,
we'll look into the behavior you obtain exporting the bundle through the "Build Iot Interceptor in Eclipse" button. In the meantime could you follow this alternative way to configure and export your bundle?
source.. = src/
bin.includes = META-INF/,\
.,\
OSGI-INF/,\
lib/
Right-click on the project -> export -> deployable plug-in and fragments -> next. Select the interceptor project, then click on “finish”.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
86 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.