Self-testing

The CL-CEC web-application includes web-pages and those pages include test functions. To get at the web pages, go with your web browser to a URL made up of the address of your server computer and the context path of the web-application. E.g.

http://your.server.address:8080/CL-CEC-1/
				

Testing Axis

The CL-CEC contains the Apache Axis technology for web services. If Axis is not working, then the CEC does not work. You should test Axis as soon as you have the CL-CEC installed.

Run the Axis tests using the "axis check" command from the left-hand side-bar.

The test checks for the presence of JARs of code. You need all the core libraries to be present; the optional libraries are not required.

Screen-shot of successful Axis test.

If Axis is not happy, there are three possibilities.

  • The WAR for the web-application may be faulty. Please report a bug to AstroGrid.
  • You may have Axis-related parts installed in your copy of Tomcat. Check the common directories of Tomcat for any JARs with similar names to those in the CL-CEC web-application.
  • Your copy of Java may be broken or may be inapproriate for the CL-CEC. Please make sure that you are using Java 1.4.x and not Java 1.5.x. Check for any JAR files added to the Java installation that may be subverting the web-application.

Test-run applications

When you have the CL-CEC configured with a list of applications, you can test run those applications from the web pages built into the CL-CEC. This tests the configuration.

Run the application tests using the "test-run" command from the left-hand side-bar.

On the next page, you will select an application and an interface for that application.

Screen-shot of test-run page.

Press the select button to move on. On the next page you will enter the parameters for the application.

Screenshot of test-run page

Press the execute button to go on. This takes you to a status page in which the headline status should progress from "pending" through "initializing" to "running", and then to "completed" or "error".

The error page is very uninformative.

Screen-shot of test-run error-page

To find out what went wrong, you will need to loook at the logs directory of Tomcat and read the file cea-commandline.log.

If the test suceeds, the values of the output parameters will be written at the bottom of the status page. This happens even if the output parameters are, say, FITS files, so might take some time. As soon as the parameters start to appear you know that the CL-CEC considers the application to have run successfully.

If the test run fails, there are two likely causes:

  1. The application-description configuration-file is wrong.
  2. The values of the environment entries cea.job.records and cea.job.temp.files are wrong.

This local test does not use the resource registry, so the environment entries to do with the registry are not relevant here.