You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
i have a problem during use you code to access chef server api #1
你好 ,我确实根据pom.xml文件找到了对应的Jar包,但是 我发现org.bouncycastle.jce.provider.BouncyCastleProvider
org.bouncycastle.util.encoders.Base64这两个依赖的类不在bcprov-jdk15on-1.47.jar文件中。如果使用别的jar的话依然会存在{"error":["Invalid signature for user or client 'chefclient01.domain.com'"]}的问题。希望您能帮下。谢谢
Activity
charleyw commentedon Oct 30, 2015
If you using maven, you can install all the dependency via mvn install.
Or you can refer to this file: https://github.com/charleyw/chef-api-java/blob/master/pom.xml, please see the dependency block for each jars details.
feixiong2015 commentedon Oct 30, 2015
你好 ,我确实根据pom.xml文件找到了对应的Jar包,但是 我发现org.bouncycastle.jce.provider.BouncyCastleProvider
org.bouncycastle.util.encoders.Base64这两个依赖的类不在bcprov-jdk15on-1.47.jar文件中。如果使用别的jar的话依然会存在{"error":["Invalid signature for user or client 'chefclient01.domain.com'"]}的问题。希望您能帮下。谢谢
charleyw commentedon Nov 2, 2015
我这个是好几年前写的了,不确定还能不能用。
有可能是有一个依赖没有自动加进去:
我更新了一下代码,但是我本地没有测试环境,你可以更新一下代码试试看
feixiong2015 commentedon Nov 6, 2015
谢谢啊,太好了,问题我已经解决了。代码没有什么问题,问题出在JDK上,chef目前支持oracle的jdk,我用的是ibm所以无论怎么解决都验证不过。