Installing PopChart Embedder on Chilisoft ASP.

These steps will help you set up the PopChart Embedder with Chilisoft ASP. These instructions assume you are using a Linux/UNIX compatible machine with Apache, but can easily be adapted for other situations.

  1. Install PopChart and Chilisoft ASP. If you need help installing PopChart or Chilisoft ASP, refer to the respective documentation. If you intend to run the PopChart Chilisoft Demos, be sure to install the examples as well.
  2. NOTE: You may need to recompile the Chilisoft Apache module if you are using a version more recent that 1.3.19. See http://www.chilisoft.com/kb/kb_display.asp?200110121 for instructions.

  3. Login to the Chilisoft Administrator. Usually you can get to this by going to http://localhost:5100
  4. Go to Server Management > ASP Server > Components
  5. Check Chilibeans. Make sure Java VM Security Manager is unchecked.
  6. Click Save to continue.
  7. Stop Chilisoft ASP by going to Server Management > ASP Server and clicking Stop.
  8. Open a console window and run the following commands. These commands temporarily put the PopChartEmbedder library in your classpath.
  9. CLASSPATH=/usr/local/Corda40/dev_tools/java_embedder/PopChartEmbedder.jar
    export CLASSPATH

    NOTE: Be sure to replace "/usr/local/Corda40/dev_tools/java_embedder/" with the location of your "PopChartEmbedder.jar" file.

  10. Change your directory to the location where you installed Chilisoft ASP. By default this is "/opt/casp".
  11. Run the following command to register PopChart Embedder as a COM object.
  12. chregclass -f PopChart.Embedder com.corda.pcis.PopChartEmbedder

    NOTE: Chilisoft ASP takes a Java class and emulates the Component Object Model. Because of this, certain PopChart Embedder methods, such as setDBQuery, will behave as if they were in Java, not in COM.

  13. Open "javasetup.sh" in a text editor and edit the CLASSPATH_ADDITIONS variable to include the location of the PopChart Embedder. For example, the resulting line might look like this:
  14. CLASSPATH_ADDITIONS="/opt/casp/bean/classes:/opt/casp/caspsamp/beansamp/classes:$JRE_PATH/lib:$JRE_PATH/lib/rt.jar:/usr/local/Corda40/dev_tools/java_embedder/PopChartEmbedder.jar"
  15. Save your changes to "javasetup.sh"
  16. Start Chilisoft ASP by returning to the Chilisoft Administrator and clicking the Start button.
  17. Go to Server Management > ASP Applications.
  18. Create a new ASP Application by clicking on Add a new application. For this demo, use popchart for the Application Name and set the Directory to the directory containing these instructions. Click Save when you are done.
  19. Restart the Chilisoft Administrator. This can be done by either restarting your machine or running "./admtool" from the console window.
  20. Restart Chilisoft ASP by going to Server Management in the Chilisoft Administrator and clicking Stop, then Start.