The following error message says the importing bundle (order) does not have
access to the *class* "org.jasypt.encryption.StringEncryptor".
Unable to start blueprint container for bundle order/22.14.0.98-SNAPSHOT
due to unresolved dependencies
[(objectClass=org.jasypt.encryption.StringEncryptor)]
Hi Karsten,
My encryptor service provider 'bundle' is just a blueprint file installed in
the deploy folder whose singular purpose is to export the service/interface as
per the various examples online.
The consumer bundle manifest does Import-Package "org.jasypt.encryption" and
Import-Service
Hello Geoffrey,
Yes, I mean there are some examples in the WWW on how to use the encryption.
In my "consumer" bundle I have the service reference and the property
placeholder in different blueprint files, but this should work, at least it
works for everything else.
Does your base bundle export
Hi Karsten,
You base bundle looks ok.
My importing blueprint bundle does the following:
1) References this namespace
xmlns:enc="http://karaf.apache.org/xmlns/jasypt/v1.0.0;
2) Configures the string encryptor service reference
3) To decrypt values like this
Hello Jean-Baptiste, Geoffrey
Here are some more details:
runtime err msg
Unable to start blueprint container for bundle order/22.14.0.98-SNAPSHOT due to
unresolved dependencies [(objectClass=org.jasypt.encryption.StringEncryptor)]
java.util.concurrent.TimeoutException: null
...
this standard
Hi Karsten,
Have you tried exporting interface org.jasypt.encryption.StringEncryptor?
I export this interface using a dedicated blueprint bundle and pass it the
decryption password from the environment. This service is then used by
pax-jdbc, and also referenced by other blueprint bundles
Hi,
What do you mean by "not finding the service" ?
You mean at runtime (looking for service reference) or at deployment
time (the maven-bundle-plugin is generated req/cap for service, so it
might be your issue) ?
If you can share the message you have, it would be helpful.
Regards
JB
On Mon,
Hello everybody,
i come up with a issue, which might be easily answered in the OSGI world,
though I have not yet found a solution in the WWW.
Running
Karaf 3.0.7, Java8, Blueprint
Objective
Any bundle (own or e.g. pax-jdbc-config) should be able to use the same
configured StringEncryptor.
How