title: Java desktop application: Error code:-2147467259 Error code name:failed
body: <p>When I try to show my .rpt report (Crystal Report XI file)in my Java desktop application I've the following errors.</p>
  
  <p>When I call this method:</p>
  
  <pre><code> try {
                 ....  //some code that works correctly
  
          reportClientDoc.getDatabaseController().logon(USERNAME, PASSWORD);
   }
   catch(ReportSDKException ex) {
          System.out.println(ex.getMessage());
          System.out.println(ex.getCause());
          System.out.println(ex);
   }
  </code></pre>
  
  <p>It throws this Warning and Exception:</p>
  
  <blockquote>
    <p>log4j:WARN No appenders could be found for logger
    (com.crystaldecisions.reports.reportdefinition.ReportDocument).</p>
    
    <p>log4j:WARN Please initialize the log4j system properly.</p>
    
    <p>Errore nella ricerca del nome JNDI
    (D:\Documenti\NetBeansProjects\italpolVigilanza\dbData\italpol.mdb)</p>
    
    <p>com.crystaldecisions.reports.common.JndiNotFoundException: Errore
    nella ricerca del nome JNDI
    (D:\Documenti\NetBeansProjects\italpolVigilanza\dbData\italpol.mdb)</p>
    
    <p>com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: Errore
    nella ricerca del nome JNDI
    (D:\Documenti\NetBeansProjects\italpolVigilanza\dbData\italpol.mdb)----
    Error code:-2147467259 Error code name:failed</p>
  </blockquote>
  
  <p>I've only imported log4j.jar in my application. Are there some specific preliminary steps that I must do?</p>