-
Notifications
You must be signed in to change notification settings - Fork 5
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
Could not find appropriate jargon2Backend. Use either a service provider or define its class with -Dcom.kosprov.jargon2.spi.backend #8
Comments
Hi, Have you added the dependency to a backend? Like that:
|
Yes, here is my pom.xml : http://pastebin.fr/82704 |
I would, first, remove the If that didn't work, I would try to define the jvm argument If that didn't work, I would statically define the class in the code:
|
Sorry for my late reply but I tried the first and last solution but it didn't work. For the second I do not understand too much or I have to pass these arguments on Maven at the time of build? |
Open your final jar and check if it has this content inside it: https://github.com/kosprov/jargon2-backends/tree/master/jargon2-native-ri-binaries-generic/src/main/resources |
Yes, this is it https://www.noelshack.com/2021-05-4-1612464580-capture.jpg |
Where do you run it? Which JVM type/version? |
JVM version = 1.8.0_201 |
I get the same error from Coldfusion. I load the first backend jars, then jargon2-api-1.1.1.jar. This is OK by itself but then when I call the hasher function Then when I set this: What am I missing? |
Please, clone the
This is the minimal example and I've just tested with openjdk 8 and 11 on Linux. Try with this and let me know if it doesn't work. |
Thank you for the quick response. I did what you suggested (compiled the jargon2-examples-1.1.1.jar) and got the following info on the command line:
So far so good, but I am not sure how exactly this could help me. On the other hand I have made some changes in my coldfusion project pom.xml - I explicitly included this dependency:
and the "Could not find appropriate jargon2Backend" error disappeared. So I am able now able to create the hasher object in ColdFusion. However when I call this function: Typ | java.lang.UnsatisfiedLinkError So I am not sure where is ist dll supposed to be? I have found the dll here: |
Since the example code works as-is in your machine, you have a baseline to compare your project with.
That said, I think there's something wrong with how you package or run your code. I cannot support you further because I don't see your project. |
is packaged inside |
Yes, you are right, the dll is there. I have unzipped the jar to make sure it is contained.
So maybe I somehow have to explicitly load the dll as well, otherwise it cannot be found. If you have any ideas I'll appreciate it! |
I see |
OK, I just tried both versions, but it seems like the jna version does not matter. |
I would seek assistance from the Coldfusion support/community, at this point. |
Do you have a new solution for my problem? :/ |
Please, do this: #8 (comment) If it works, then there's something wrong in your project poms or runtime. |
It works well. I'll try to find out what's wrong then. |
I tried clone and package both projects jargon2-api and jargon2-native-ri-backend only I didn't succeed to package jargon2-native-ri-backend would it be possible to have the .jar? |
Go to the
all jars will be copied to |
I did manage to download the dependencies. Then I recompiled my plugin without using maven or gradlle and I have the same problem :c |
Hi,
I am using your library in one of my minecraft plugins and I have this error:
https://pastebin.com/WppHxW6w
Thanks for your help.
The text was updated successfully, but these errors were encountered: