• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: problem launching a test
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: problem launching a test


  • Subject: Re: problem launching a test
  • From: Chuck Hill <email@hidden>
  • Date: Thu, 12 Jun 2003 10:29:13 -0700

Hi,


At 01:05 AM 12/06/2003 -0400, Richard L. Peskin wrote:
>I have the following line in a test web page:
><a href="http://ember:49999/cgi-bin/...
>
This indicates an application running in Direct Connect mode.  If you are
trying to mimic a deployment environment for your tests, you would be well
advised to disable Direct Connect.  This URL is not a deployment style URL.


>The web page was not developed using WO, but I simply wanted to
>reference a WOapp from this page.
>
Not a problem.


>The WOapp (TimeDisplay.woa from the tutorials) was built with the
>-WOPort 49999 launch parameter.
>
This is only in effect when launched from ProjectBuilder.  If launched from
JavaMonitor or the command line   you need to specify the port by a setting
in JavaMonitor or putting -WOPort 49999 on the command line when you launch
the application, e.g.
./TimeDisplay -WOPort 49999
I think that should work, I rarely use the command line for this.  You can
also set this in the Application constructor, though I don't recall doing
this either ;-)
setPort(new Integer(49999));


>The WOapp (TimeDisplay.woa) runs correctly, but when called from the
>test web page, I get a "connection refused" error.
>
>However, if I have a WOapp running (say I run the WOapp from
>ProjectBuilder, and do not stop the executable), then I can access the
>WOapp from the test web page.
>
I'd expect this is because it is running on a different port when not
launched from PB.


>I should note that this all on a development platform; i.e. there is no
>WO deployment in the sense of running WO on a server.
>
That does not matter.  The only major differences between development and
deployment is that the deployment does not install the dev tools and has a
higher transaction per minute license.


>Can anyone
>explain what is happening? Is my problem simply that (absent running
>the deployment) all I have running is direct connection?
>
Depending on your point of view, the problem is either that you are using
Direct Connect at all :-) or that you are not specifying the port number in
a consistent fashion.


>If I want to
>use the development platform to serve such test web sites, do I have to
>install and run the WO deployment?
>
No.


>Do I need to do some Apache config
>changes to deploy from my development platform? (WO 5.2.1; Mac OSX
>10.2.6)
>
This is what I would do.  In fact, it is probably already done.  What you
need to do is to disable Direct Connect so that it will be used.  You can
do this as a launch parameter of
-WODirectConnectEnabled false

or by adding this to the Application constructor:
setDirectConnectEnabled(false);

(and a couple other ways, but that should be enough).


Chuck


--

Chuck Hill                                 email@hidden
Global Village Consulting Inc.             http://www.global-village.net
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >problem launching a test (From: "Richard L. Peskin" <email@hidden>)

  • Prev by Date: RE: problem launching a test
  • Next by Date: Gathering data for multiple tables
  • Previous by thread: RE: problem launching a test
  • Next by thread: Re: Missing file or directory: (never mind)
  • Index(es):
    • Date
    • Thread