Hi, Randall,

I think the delay is being caused by your computer getting confused by being addressed with a hostname that doesn't match a reverse DNS lookup.

If your browser page appears with a URL in the address text box of the form:

  http://<YourComputerName>.local/cgi-bin/WebObjects/<YourAppName>.woa

and then sits there for about a minute, instead of waiting, try replacing that URL immediately with one that looks like this:

   http://localhost/cgi-bin/WebObjects/<YourAppName>.woa

and hit the send key again. If the response is nearly immediate, then that's the cause of your delay.

There's more information on this in a thread here:

http://lists.apple.com/archives/Macos-x-server/2002/Jul/ msg02211.html

Regards,
Jerry

On Feb 4, 2006, at 9:43 PM, Randall Perry wrote:

I'm doing my 1st 5.3 app and am experiencing over a 1 minute delay after the application class loads and before other classes load (discovered this using
the debugger). Here's the line it's hanging on:

#0    0x00000014 in com.webobjects.appserver.WOApplication.main() at
WOApplication.java:324

I'm running Tiger client 10.4.4 with WO 5.3.1. Using EOModeler generated
classes with latest Wonder PostgreSQL plugin.

It's a very simple app at the moment, just a main component with a table
wrapped in WORepetition, and a fetch coming from Session.java.

Anyone know what would cause it to hang for a minute?




Session.java ------------------------------------------

public class Session extends WOSession {

    protected NSArray fetchResults;

    public Session() {
        super();

        EOEditingContext ec = defaultEditingContext();
        EOFetchSpecification fs = new
EOFetchSpecification("SeymRegistration", null, null);
        fetchResults = ec.objectsWithFetchSpecification(fs);

    }

}

Main.java ------------------------------------------

public class Main extends WOComponent {

    public SeymRegistration rec = new SeymRegistration();

    public Main(WOContext context) {
        super(context);
    }

}



--
Randall Perry
sysTame

Xserve Web Hosting/Co-location/Leasing
QuickTime Streaming
Mac Consulting/Sales

http://www.systame.com/



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/jerrywwalker% 40gmail.com

This email sent to [EMAIL PROTECTED]


--
__ Jerry W. Walker,
WebObjects Developer/Instructor for High Performance Industrial Strength Internet Enabled Systems

    [EMAIL PROTECTED]
    203 278-4085        office



_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to