Skip to content
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

Cannot find required jar files #45

Open
zouqiwu09 opened this issue Oct 10, 2018 · 5 comments
Open

Cannot find required jar files #45

zouqiwu09 opened this issue Oct 10, 2018 · 5 comments

Comments

@zouqiwu09
Copy link

Hello,

When I run the command “mvn install” in path “coniks-java/coniks_server” it throws such error.

pastedgraphic-5

The same error will throw if I try to build a .jar by running “mvn package”. Therefore, I guess it may be because the target jar files are not in https://repo.maven.apache.org/maven2. May I know if there is any way that I can fix it, please?

@masomel
Copy link
Member

masomel commented Oct 10, 2018

Hi @zouqiwu09, thanks for bringing this issue to our attention! I'll go take a look later today or tomorrow to see what's going on.

@masomel
Copy link
Member

masomel commented Oct 12, 2018

@zouqiwu09, I was able to reproduce this error when I didn't have the dependencies in my local Maven repository. To fix the issue, I ran mvn install in coniks_common, crypto etc. Please let me know if this doesn't resolve your issue. I will update the README to indicate that the coniks_server dependencies should be installed locally before running mvn install for the server or test client.

@zouqiwu09
Copy link
Author

Hello, @masomel, thank you so much for testing and replying! It does fix my problem!!!

By the way, in shell scripts the variable for CLASS_DEST is:
image
However, it should be "coniks_server-0.4.0.jar", right? Since after I ran "mvn install", what in the "target" is this file. After I changed it to "coniks_server-0.4.0.jar", it would run successfully.

Also, I have another question.

image

image

I run both server and client in test mode and register 5 users, but I cannot lookup them after that. Here is the logs:

image

May I know if it's because I am doing somewhere wrong in the procedures again, please?

Thank you!!!

@masomel
Copy link
Member

masomel commented Oct 17, 2018

Hi @zouqiwu09, I'm glad that resolved your issues! And thank you for pointing out the version number problem in the shell scripts, I'll edit that as well.

Regarding your problems with the lookups, remember that the server will have a short delay between registration and the insertion into the Merkle tree due to the epoch duration. So check your server config file to see what your epoch duration is, and once that time frame has passed, try to do the lookup again. If it still doesn't work, do let us know! And please open a new issue for each unrelated question next time -- we like to keep things as modular as possible :)

@masomel
Copy link
Member

masomel commented Oct 17, 2018

TODOs:

  • README should include note about installing each coniks-java package locally with Maven
  • update coniks-java version in shell scripts for server and test client

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants