Before to start, here's my configuration :
Flex Builder 3
JBoss 4.2.2.GA for the server part (meaning TomCat running under)
I access the server trough http://localhost:8081
I'm facing quite a strange problem and couldn't find any thread on the flex subject.
I got an application written in Java and wrote some more code to have some Web Services. The client is written in AS3 with Flex Builder.
When I import the services and create the client classes (with the Flex Builder Wiazrd/ Import Web Service) over HTTP I got no problems. But when I try to carry one of the WS over SSL, Flex Builder tells me "Unable to load the WSDL. Specify another URI".
The thing that's is disturbing is that I set up the connector :
<Connector port="8443" protocol="HTTP/1.1" SSLEnabled="true"
maxThreads="150" scheme="https" secure="true"
keystorePass="changeit" sslProtocol="TLS" />
I told the server to secure the WS into the web.xml file
I set up a crossdomain.xml file into the ROOT.war folder of JBoss
<!DOCTYPE cross-domain-policy SYSTEM "http://www.adobe.com/xml/dtds/cross-domain-policy.dtd
<allow-access-from domain="*" to-ports="*" secure="false"/>
And I also set up the keystore for the server and even export/import the cert to the jdk that's currently running my FlexBuilder but I still have the same problem.
I checked the Flex Builder logs and found this error :
Caused by: javax.net.ssl.SSLHandshake
ption: PKIX path building failed: sun.security.provider.cert
on: unable to find valid certification path to requested target
.. which is quite a common error as I read many thread on it but always with different configurations. I can access the service with a browser and even succeed to import a secured WS of Amazon with no problems.
I don't know if some of you faced this problem already and how you you fixed it. Hope you'll give me tips rapidly.
-I'm not well aware about the crossdomain.xml file since I'm not really sure that the wizard for web services is asking for it .... but anyway
-I set up only "localhost" for the certificate as I got couple of problems by specifying another fancy name :)
-I'm lost ... need help !
Thanks for your help