Thank you for visiting the BlackBerry Support Community Forums.
BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)
BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.
"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."
- Kevin Michaluk, Founder, CrackBerry.com
Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.
09-04-2012 04:31 PM
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?
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:
I will ask to see if this question can be moved.
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
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):
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!