title: ODA Profile Store Path for Birt Connection Profile
body: <p>I'm trying to use the Birt ReportEngine within my Spring project. I've successfully generated a report.rptdesign which works within Eclipse.
  Now I want to use this 'report.rptdesign' within my application and generate some kind of output (PDF/HTML, does not matter).
  I've added </p>
  
  <pre><code>&lt;dependency&gt;
    &lt;groupId&gt;org.eclipse.birt.runtime&lt;/groupId&gt;
    &lt;artifactId&gt;org.eclipse.birt.runtime&lt;/artifactId&gt;
    &lt;version&gt;4.2.2&lt;/version&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>into my pom.xml. Futhermore I've added (and manually created) both paths for</p>
  
  <pre><code>-Dorg.eclipse.datatools_workspacepath=C:\apache-tomcat-7.0.30\temp\workspace_dtp
  -Dorg.eclipse.datatools.connectivity_workspacepath=C:\apache-tomcat-7.0.30\temp\workspace_dtp\org.eclipse.datatools.connectivity
  </code></pre>
  
  <p>but I keep getting the error multiple times.</p>
  
  <pre><code>org.eclipse.datatools.connectivity.internal.ConnectivityPlugin log
  SEVERE: Error loading connection profile data.
  org.eclipse.datatools.connectivity.internal.ConnectivityPlugin log
  SEVERE: Error saving connection profile data.
  </code></pre>
  
  <p>My report.rptdesign uses a 'db' file in order to connect to my database which is correctly referenced within the report.rptdesign</p>
  
  <pre><code>&lt;data-sources&gt;
      &lt;oda-data-source extensionID="org.eclipse.birt.report.data.oda.jdbc.dbprofile" name="DB MySql" id="18"&gt;
      ....
      &lt;property name="OdaConnProfileStorePath"&gt;C:\workspace-sts\myproject\test\db&lt;/property&gt;
      &lt;/oda-data-source&gt;
  &lt;/data-sources&gt;
  </code></pre>
  
  <p><strong>Update:</strong>
  The code I used:</p>
  
  <pre><code>DesignConfig config = new DesignConfig();
  Platform.startup(config);
  IDesignEngineFactory factory = (IDesignEngineFactory) Platform.createFactoryObject(IDesignEngineFactory.EXTENSION_DESIGN_ENGINE_FACTORY);
  IDesignEngine designEngine = factory.createDesignEngine(config);
  
  SessionHandle session = designEngine.newSessionHandle(ULocale.ENGLISH);
  ReportDesignHandle designHandle = session.openDesign("myReport.rtpdesign");
  ElementFactory designFactory = designHandle.getElementFactory();
  designHandle.close();
  
  
  EngineConfig engineConfig = new EngineConfig();
  Platform.startup(engineConfig);
  IReportEngineFactory factory = (IReportEngineFactory) Platform.createFactoryObject(IReportEngineFactory.EXTENSION_REPORT_ENGINE_FACTORY);
  IReportEngine reportEngine = factory.createReportEngine(engineConfig);
  
  IReportRunnable design = reportEngine.openReportDesign(designHandle);
  IRunAndRenderTask task = reportEngine.createRunAndRenderTask(design);
  </code></pre>
  
  <p>Do I need to put the 'db' file somewhere else? I've tried several locations within classpath etc.</p>
  
  <p>Regards,
  Manuel</p>