debug https app in jboss?

I'm trying to debug a web app in IDEA 11.1 and JBoss 7.0.2-Final, Mac OS X Lion, Java 1.6. The app is designed for certificate authentication, so uses https. It's also set up to run as root, so the launch URL is https://localhost:8443/
I can launch the app and get in with my test certificate which has been loaded into FireFox. But IDEA fails to load my jquery.js file showing this message:

Cannot load 'https://localhost:8443/script/jquery.js": sun.security.validator.ValidatorException: PKIX path building failed sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target



The path to jquery.js is correct. It seems like IDEA is asking for the .js file but is blocked because IDEA does not have the certificate. Either I need to configure IDEA to use the certificate, or I need to configure IDEA to use another js file instead. I tried configuring JavaScript Debug for the jquery.js file but didn't get it to work.

Any help much appreciated,
Thanks!
Chris
4 comments
Comment actions Permalink

Where was the error message 'Cannod load...' shown? What action in IDEA caused this error?

--
Nikolay Chashnikov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

0
Comment actions Permalink

Hi Nikolay,

The app has a splash page with no javascript. It loads fine after firefox hands off my test certificate. It has a button to click which loads the Home page, which does have javascript. JQuery seems to be the first .js file it tries to load, before the page displays. The attached screenshot shows what IDEA looks like at that point.

"Try Again" gets the same result (not surprisingly)
I don't know if/how setting up a proxy server could help.

Thanks,
chris



Attachment(s):
cannot-load-https-jquery.png
0
Comment actions Permalink

Looks like IDEA indeed doesn't support debugging remote files which require certificates. To fix the problem you can configure mapping from remote
URLs to local files so IDEA won't try to download files and will open corresponding files from the disk instead. Open Run | Edit Configurations
dialog, select 'JBoss 7.0.2 Final JavaScript' configuration and specify 'https://localhost:8443/script' as 'Remote URL' for the directory in the
project sources containing 'jquery.js' file.


--
Nikolay Chashnikov
Software Developer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

0
Comment actions Permalink

Excellent! Setting the path for the directoy works!

I can now get into the app via the debugger.  

Thanks Nikolay!

0

Please sign in to leave a comment.