09-04-2012 04:31 PM
Hi,
I'm trying to compile HelloWorld from http://docs.blackberry.com/tr-tr/developers/delive
I'm not using Eclipse and just need to add the classpath to the files when manually compiling. Does anyone know where I can find/download the jar files?
Thanks!
Solved! Go to Solution.
09-04-2012 05:37 PM
Welcome to the forums.
I think you are in the wrong forum, I think you need to be here:
http://supportforums.blackberry.com/t5/BlackBerry-
I will ask to see if this question can be moved.
09-05-2012 08:12 AM
09-05-2012 08:21 AM
You need to first create the proxy files which will include these definitions. However, I would strongly recommend not using BAA and instead using BWS:
09-05-2012 09:50 AM
That did indeed solve the compiling issue.
Now I'm trying to run TestMain (@author gbeukeboom, so double thanks!) and get the error
Starting to intiialize credentials...
Exception in thread "main" javax.xml.ws.WebServiceException: Failed to access the WSDL at:
https://mybas.dpw-ama.com/enterprise/admin/ws?wsdl. It failed with:
sun.security.validator.ValidatorException: PKIX path building failed: sun.security
.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to
requested target.
We have a self-signed certificate which I already added to the keystore per the Getting Started instructions.
Is there something else I should be doing?
Thanks for any suggestions you may have.
09-05-2012 09:53 AM
What IDE are you using? Did you set up Apacke CXF to use the keystore? Did you set the keystore and password in the Runtime settings for your app?
09-05-2012 10:21 AM
My IDE is Textpad
(We're obviously not a java shop)
I stored the key with
keytool -keystore BESks -import -file BEScert.cer
Though I don't see any "bes" entries listed when running >keytool -list -keystore cacerts
But when I try to re-store the key, it gives
keytool error: java.lang.Exception: Certificate not imported, alias <mykey> already exists
If I try to run the file with
java -Djavax.net.ssl.trustStore="C:\Program Files\Java\jre6\lib\security\BESks" TestMain
the error message becomes
Starting to intiialize credentials...
Exception in thread "main" com.sun.xml.internal.ws.client.ClientTransportExce
ransport error: javax.net.ssl.SSLHandshakeException: java.security.cert.CertificateExcepti
on: No name matching WPBAS1.DPW-AMA.COM found
Thank you for your patience and ideas.
09-05-2012 10:29 AM
I'd suggest trying to follow the guide with Eclipse to ensure the keystore is set appropriately. Apart from that it also seems that the URL being used is resolving to a different address than what is in the certificate. You may want to disable the CN check; here is an example I pulled from a Google search (this has not been validated):
http://efreedom.com/Question/1-7881122/CXF-RESTful
09-05-2012 10:35 AM
Thanks so much! I tried modifying the suggestion in http://www.mkyong.com/webservices/jax-ws/java-secu
Very much appreciate the quick replies too!