PATH  WebObjects 4.0 Documentation > Post-Install Guide

Table of Contents Previous Section

Problems With Compiled Applications

Running compiled applications exercises more features of the WebObjects framework and development environment. Before attempting to troubleshoot a problem with running a compiled application, make sure you can run a simple scripted application.

-------------------------------------------------------------------------------------------------------------

Problem

A simple compiled application won't run properly.

Checklist

  1. Make sure the executable has been built.
On the HP-UX platform, examples are not installed built. You must build them yourself before you can run them. To compile an example, cd to the example's project directory and type make . For example:
> cd /Apple/Developer.Examples/WebObjects/ObjectiveC/HelloWorldCompiled> make 
-------------------------------------------------------------------------------------------------------------

Problem

The Movies application won't run.

Checklist

  1. Make sure the application was correctly installed and compiled.
The Movies application must be compiled before you can run it. In addition, you must create the Movies database (scripts are provided) and install the database model file that is compatible with your database server as described in " Setting Up the Sample Databases ."
Check the Movies directory for an directory named Movies.woa . This is the WebObjects application wrapper. Check the wrapper for an executable file. If the wrapper or the executable doesn't exist, build the Movies application.
On Solaris and HP-UX, you need to build Movies with the correct client libraries and adaptor. Before you build, add the appropriate adaptor framework to the FRAMEWORKS makefile variable. Then uncomment the following line in the Makefile.preamble to link the appropriate client libraries:
include $(MAKEFILEDIR)/pdo-eoadaptor-linking.make
If Movies compiles and runs but can't access data about the various movies, it's probably because the application can't communicate with the database server.
-------------------------------------------------------------------------------------------------------------

Problem

A WebObjects application won't connect to the database server.

Checklist

  1. Check that your database server itself is operating correctly.
  2. Check that the client libraries for your database server are correctly installed on your machine. If so, you can, for example, use the tools supplied with the database server (isql for Sybase, sqlplus for Oracle, and dbaccess for Informix) to test that you can connect to the server and execute simple SQL commands.

  3. Make sure that the database model file is accessible to your application
The model file should be in the Resources directory under the application's .woa directory. Taking the Movies application for example, the directory structure would look like this:
	Movies.woa/
		Movies (the executable file)
		Resources/Movies.eomodeld   (the model file)

 

 

Table of Contents