Cedric Leruth is an IT Engineer passionate about the growing influence of IT. He graduated with Engineering and Management degrees in IT and Network.
He has worked on full stack leading technologies, SOA, SCM, CRM, transformation and innovation missions with several clients from different sectors including Telecommunication, Finance, Advertisement and IT Expertise.
There are multiple reasons to want your JDeveloper 11g/12c installation to connect to an HTTPS URL. You could, for example, need an application you’re developing to connect to a web service over SSL or configure a Maven install that connect to an HTTPS nexus URL.
I you try to do so with the default installation the following error will occur:
sun.security.validator.ValidatorException: PKIX path building failed:sun.security.provider.certpath.SunCertPathBuilderException: unable to find validcertification path to requested target
To fix this, you’ll first need to retreive the certificate .crt file from the SSL URL. You can either ask for it or try and retreive it from your browser URL.
Retrieve SSL certificate from URL
Navigate to your HTTPS URL in your favorite web browser
Click on the padlock next to the URL in your web browser
Click the certificate button
Navigate to the detail tab
Click on copy to file and extract a .crt file
Add SSL certificate to JDeveloper truststore
Once you have the certificate .crt file, you’ll need to add it to the JDeveloper truststore for JDeveloper to trust the HTTPS URL. Here is how to do it :
If you’ve read my others Oracle ADF how-to article, you know that I always highly recommend using the JSFUtils and ADFUtils open source class for ADF. Those are a must have for any ADF project and will save you hours of work.
JSFUtils and ADFUtils are two utility java class made by 3 ADF heroes Duncan Mills, Steve Muench and Ric Smith. You can easily find those using your favorite search engine.
The function I use the most from those is the resolveExpression that allow the ADF developer to get the value of an ADF binding directly from the view page without having to implement a complex java code to query the View Object again and iterate through rows.
Here is a simple example on how to use the JSFUtils resolveExpression to retrieve the value of an ADF binding directly from the view page El Expression:
“you’ll often have a requirement to customize it by adding a specific user instruction in a tooltip(shortDesc) or placeHolder(watermark) in the ADF table column filter header”
From my experience, the Oracle ADF Framework is mainly used by the companies owning Oracle ERP to display custom data table and forms.
This is why the most used component in the ADF JSF library is the RichTable. To filter the value displayed in those table, the developer can either used a view criteria query form or activate the column filters.
Activating the column filter will display an input component on top of the Rich table column allowing the user to filter the table on a specific column value.
While the filter input component is usable out of the box, you’ll often have a requirement to customize it by adding a specific user instruction in a tooltip(shortDesc) or placeHolder(watermark) in the ADF table column filter header. This is done by adding a “filter” facet to you column as in the following example :
One often has to use JDeveloper when working on Oracle Technology. So you’ll be surprised to discover that while your development computers may allow up to 8Gb or 16Gb Ram; JDeveloper by default will only use 512Mb! And the same applies to your integrated WebLogic environment.
JDeveloper before increase will only use 512Mb memory!
I’ll highly advise to do yourself a favor and enhance your JDeveloperperformance with a recent JDK and all the memor your computer can give. Your sanity and development productivity will skyrocket.
To do so, you’ll need to update those three files as follow :