• 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: Deployment rather than development mode
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Deployment rather than development mode


  • Subject: Re: Deployment rather than development mode
  • From: Chuck Hill <email@hidden>
  • Date: Sat, 1 Oct 2005 10:31:45 -0700

Well, looks like you are in for a bit of detective work.

1) Let's make sure that wotaskd really is running and see what user you have it running under
Paris:~/Projects/WOBook/Seminars/FourDay chuck$ sudo lsof -i tcp:1085
Password:
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
java 158 root 4u IPv6 0x013c0100 0t0 TCP *:webobjects (LISTEN)


2) Check the config file. This is not strictly needed for dev launches, but let's nip any troubles in the bud.
Paris:/Library/WebObjects/Configuration chuck$ ls -l /Library/ WebObjects/Configuration/
total 8
-rw-r--r-- 1 root admin 1689 Sep 29 11:11 SiteConfig.xml


For me, wotaskd is running as root and root owns the config file so there will be no permissions problems writing to it. Do you see any permissions conflict on your machine? If so, fix them. The wotaskd process need to write to this file.

3) Run your application. Get the No Instance Available message. Then go to http://localhost:1085. You _should_ get an HTML page detailing the setup and running apps on that machine. Look near the bottom for a part that looks like this:

Adaptor Config as sent to Local WOAdaptors - All Running Applications and Instances

<?xml version="1.0" encoding="ASCII"?>
<adaptor>
  <application name="TestApp">
    <instance id="-51536" port="51536" host="Paris.local"/>
  </application>
</adaptor>

That is your app running in dev mode.  Is it there?


4) Last thing to check. sudo touch /tmp/logWebObjects Hit the app a few times. Then cat /tmp/WebObjects.log

What does it say?

Chuck



On Oct 1, 2005, at 12:59 AM, LD wrote:

Hi,

On 01/10/2005, at 1:34 PM, Chuck Hill wrote:

On Sep 30, 2005, at 7:15 PM, LD wrote:

On 30/09/2005, at 12:37 PM, Chuck Hill wrote:


1) Get wotaskd running at boot if it is not
2) Enable Personal Web Sharing
3) Launch app with -WODirectConnectEnabled false
4) (optional ease of use thing) add -WOPort 3456 or whatever you will remember so the URL will be consistent
5) Build and run



I've also set "Installation Build Products Location" to "/".
When running the app it's being installed (as expected, I assume) in:
/Library/WebObjects/Applications/



No need to do that. Just run it from XCode.


But when I connect (having WOAutoOpenInBrowser=true)
http://localhost/cgi-bin/WebObjects/MyApp.woa/-55555

I get a page saying:
No instance available

What am I missing?


How are you launching it?


CMD+R in Xcode.


Seems to me like you are making it far too complicated. It's Apple. It just works.


But, but... it doesn't ;-)


Just build and run from within Xcode. As long as wotaskd is running and Apache is running nothing else is needed. It just works.


With WODirectConnectEnabled=true the app loads normally via: http://localhost:55555/cgi-bin/WebObjects/MyApp.woa

With WODirectConnectEnabled=false I get "No instance available" via:
http://localhost/cgi-bin/WebObjects/MyApp.woa/-55555

with regards,
--

LD




--
Coming in 2006 - an introduction to web applications using WebObjects and Xcode http://www.global-village.net/wointro


Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/practical_webobjects




_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
  • Follow-Ups:
    • Re: Deployment rather than development mode
      • From: LD <email@hidden>
References: 
 >Re: Deployment rather than development mode (From: LD <email@hidden>)

  • Prev by Date: Re: Deployment rather than development mode
  • Next by Date: WebObjects, EOModels, and EAI
  • Previous by thread: Re: Deployment rather than development mode
  • Next by thread: Re: Deployment rather than development mode
  • Index(es):
    • Date
    • Thread