title: getting error while running the web service client and proxy, SEVERE: java.io.FileNotFoundException: ./config/jps-config.xml in JDeveloper 12c
body: <p>i am developing the java application in JDeveloper.which is use to connect with oracle sales cloud web services so for this i  have did the following steps.</p>
  
  <p>step 1: created the custom Application</p>
  
  <p>step 2: Then i have generated the client from wsdl using  web service client and proxy. </p>
  
  <p>its generated the successfully and i have added the credential to main class . this is my main class.</p>
  
  <pre><code>public class PersonServiceSoapHttpPortClient {
  
  
  private static final AddressingVersion WS_ADDR_VER = AddressingVersion.W3C;
  
  
  public static void main(String[] args) throws Exception{
      PersonService_Service personService_Service = new PersonService_Service();
      PersonService personService = personService_Service.getPersonServiceSoapHttpPort();
  
      // Configure credential providers
      Map&lt;String, Object&gt; requestContext = ((BindingProvider) personService).getRequestContext();
  
  
      try {
          setPortCredentialProviderList(requestContext);
      } catch (Exception ex) {
          ex.printStackTrace();
      }
  
      // Add your code to call the desired methods.
      FindCriteria findCriteria=new FindCriteria();
  
      findCriteria.setFetchSize(1);
      findCriteria.setFetchSize(10);
  
      FindControl findControl=new FindControl();
      findControl.setRetrieveAllTranslations(true);     
  
  
      System.out.println("before invoking  method");
      PersonResult personResult=personService.findPerson(findCriteria, findControl);
      List&lt;Person&gt; persons=personResult.getValue();
  
      System.out.println("The Response size is ::"+persons.size());
  
  }
  
  
  @Generated("Oracle JDeveloper")
  public static void setPortCredentialProviderList(Map&lt;String, Object&gt; requestContext) throws Exception {
      // TODO - Provide the required credential values
  
      String username = "abc";
      String password = "acdd";
      String clientKeyStore = "";
      String clientKeyStorePassword = "";
      String clientKeyAlias = "";
      String clientKeyPassword = "";
      String serverKeyStore = "";
      String serverKeyStorePassword = "";
      String serverKeyAlias = "";
      List&lt;CredentialProvider&gt; credList = new ArrayList&lt;CredentialProvider&gt;();
  
       credList.add(getUNTCredentialProvider(username, password));
       credList.add(getBSTCredentialProvider(clientKeyStore, clientKeyStorePassword, clientKeyAlias, clientKeyPassword, serverKeyStore, serverKeyStorePassword, serverKeyAlias, requestContext));
  
      credList.add(getSAMLTrustCredentialProvider());
      requestContext.put(WSSecurityContext.CREDENTIAL_PROVIDER_LIST, credList);
  }
  
  
  @Generated("Oracle JDeveloper")
  public static CredentialProvider getSAMLTrustCredentialProvider() {
      return new SAMLTrustCredentialProvider();
  }
  
  
  @Generated("Oracle JDeveloper")
  public static CredentialProvider getUNTCredentialProvider(String username, String password) {
      return new ClientUNTCredentialProvider(username.getBytes(), password.getBytes());
  }
  
  
  @Generated("Oracle JDeveloper")
  public static CredentialProvider getBSTCredentialProvider(String clientKeyStore, String clientKeyStorePwd,
                                                            String clientKeyAlias, String clientKeyPwd,
                                                            String serverKeyStore, String serverKeyStorePwd,
                                                            String serverKeyAlias,
                                                            Map&lt;String, Object&gt; requestContext) throws Exception {
      List serverCertList = CertUtils.getCertificate(serverKeyStore, serverKeyStorePwd, serverKeyAlias, "JKS");
      List clientCertList = CertUtils.getCertificate(clientKeyStore, clientKeyStorePwd, clientKeyAlias, "JKS");
      final X509Certificate serverCert =
          (serverCertList != null &amp;&amp; serverCertList.size() &gt; 0) ? (X509Certificate) serverCertList.get(0) : null;
      final X509Certificate clientCert =
          (clientCertList != null &amp;&amp; clientCertList.size() &gt; 0) ? (X509Certificate) clientCertList.get(0) : null;
  
      requestContext.put(WSSecurityContext.TRUST_MANAGER, new TrustManager() {
          public boolean certificateCallback(X509Certificate[] chain, int validateErr) {
              boolean result =
                  (chain != null &amp;&amp; chain.length &gt; 0) &amp;&amp; (chain[0].equals(serverCert) || chain[0].equals(clientCert));
              return result;
          }
      });
      return new ClientBSTCredentialProvider(clientKeyStore, clientKeyStorePwd, clientKeyAlias, clientKeyPwd, "JKS",
                                             serverCert);
   }
  }
  </code></pre>
  
  <p>while running this client stub i am getting following exception.</p>
  
  <pre><code> SEVERE: java.io.FileNotFoundException: ./config/jps-config.xml 
   (No such file or directory) INFO: Policy subject is not registered.
   SEVERE: java.io.FileNotFoundException: ./config/jps-config.xml 
   (No such file or directory)
   SEVERE: java.io.FileNotFoundException: ./config/jps-config.xml 
   (No such file or directory)
   SEVERE: java.io.FileNotFoundException: ./config/jps-config.xml 
  (No such file or directory)
   SEVERE: java.io.FileNotFoundException: ./config/jps-config.xml 
  (No such file or directory)
   INFO: EffectivePolicySetFeature not on the binding, 
   will look up    policy set for; ResourcePattern 
       [absolutePortableExpression=///UNKNOWN|#MODULE|
   WS-Client({http://xmlns.oracle.com/apps/cdm/foundation
   /parties/personService/applicationModule/}
   PersonService#PersonServiceSoapHttpPort,wls)]
   SEVERE: java.io.FileNotFoundException: ./config/jps-config.xml
   (No such file or directory)
    INFO: EffectivePolicySetFeature=oracle.j2ee.ws.common.wsm
   .EffectivePolicySetFeature@76f6c7e1
   INFO: WSM Security is not enabled for Policy Subject: 
   ResourcePattern [absolutePortableExpression=
    ///UNKNOWN|#MODULE|WS-
    Client({http://xmlns.oracle.com/apps/cdm/foundation
   /parties/personService/applicationModule/}PersonService
   #PersonServiceSoapHttpPort,wls)]
   java.lang.SecurityException: keyStoreFilename is either null 
   or empty    string
   at    weblogic.wsee.security.util.CertUtils.getCertificate
  (CertUtils.java:89)
  at   com.oracle.xmlns.apps.cdm.foundation.parties.personservice
  .applicationmodule.PersonServiceSoapHttpPortClient
  .getBSTCredentialProvider(PersonServiceSoapHttpPortClient.java:129)
  at com.oracle.xmlns.apps.cdm.foundation.parties.personservice
  .applicationmodule.PersonServiceSoapHttpPortClient
  .setPortCredentialProviderList
  (PersonServiceSoapHttpPortClient.java:106)
  at com.oracle.xmlns.apps.cdm.foundation.parties.personservice
  .applicationmodule.PersonServiceSoapHttpPortClient.main
  (PersonServiceSoapHttpPortClient.java:52)
  </code></pre>