• 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: How to target a WO component in an html include
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to target a WO component in an html include


  • Subject: Re: How to target a WO component in an html include
  • From: Reid Bundonis <email@hidden>
  • Date: Thu, 20 Mar 2008 14:40:21 -0400

On Mar 20, 2008, at 1:16 PM, Chuck Hill wrote:

On Mar 20, 2008, at 4:40 AM, Reid Bundonis wrote:

Dear List,

Years ago I ran into a similar problem that I never resolved.  Was wondering if anyone had a suggestion or if this simply is not possible.  First, the environment:

Server is OS X Server 10.4.6 (I know time to upgrade but 431 days uptime is hard to abandon).  It is running the Apple stock Apache with WO.  I am one of the dinosaurs so I am still using Xcode, WOBuilder, EOModeler, etc under 10.4.11 to develop the applications.  Please don't chastise me :)

But, but I enjoy that!  :-)

Chuck, I know.  You've set me straight numerous times in the past :)  Thank you.


I have a component that I stripped the html, head, and body tags from and then deployed it.  I can hit it by doing http://server/Apps/WebObjects/Classes.  Everything works fine.

However, if I want to include that WO snippet into a standard .shtml page, I get one of the two results:

If I do:
<!--#include virtual="/Apps/WebObjects/Classes" -->

I get, "No Instance Available."  So at least I know that the WO engine was hit.  It is just not finding my deployed application.

Have you tried a more complete URL?
<!--#include virtual="/Apps/WebObjects/Classes.woa/wa/default" -->

I have done this years ago, and it works.

James Cicenia reminded me of this but that did not work either.  I still get the No Instance found or The requested application was not found errors.


If that does not work:

sudo touch /tmp/logWebObjects

Then load that page a couple of times and look in

/tmp/WebObjects.log

You will then see what the woadaptor is attempting to dispatch.  That may show the source of "No Instance Available."

Also great advice.  I created the file, stopped both Apache and WO and then started them all backup again.  On the first load, I got "No Instance Available" as seen here:

Info: <WebObjects Apache Module> new request: /Apps/WebObjects/Classes.woa/wa/default
Debug: App Name: Classes.woa/wa/default (7)
Info: V4 URL: /Apps/WebObjects/Classes.woa/wa/default
Info: Selected new app instance at index 9
Debug: Composed URL to '/Apps/WebObjects/Classes.woa/1/wa/default'
Info: New request is GET /Apps/WebObjects/Classes.woa/1/wa/default INCLUDED

Info: Sending request to instance number 1, port 2010
Info: Trying to contact Classes:1 on (2010)
Info: Caching hostent for 209.210.211.212
Info: attempting to connect to 209.210.211.212 on port 2010
Info: Classes:1 on (2010) connected [pooled: No]
Info: Request GET /Apps/WebObjects/Classes.woa/1/wa/default INCLUDED
 sent, awaiting response
Info: Reading configuration from http://localhost:1085/WebObjects/wotaskd.woa/wa/woconfig
Info: attempting to connect to localhost on port 1085
Info: Preparing to read config for host: localhost
Info: New response: HTTP/1.0 200 Apple WebObjects
Debug: nonBlockingRecv(): recv() returned 0 (connection closed)
Info: retrying request due to connection reset
Info: attempting to connect to 209.210.211.212 on port 2010
Info: Classes:1 on (2010) connected [pooled: No]
Info: Request GET /Apps/WebObjects/Classes.woa/1/wa/default INCLUDED
 sent, awaiting response
Debug: ac_readConfiguration(): skipped reading config
Debug: nonBlockingRecv(): recv() returned 0 (connection closed)
Info: Marking instance 1 dead
Warn: Marking 209.210.211.212:1 unresponsive
Debug: connectionAttempts = 1, retries = 10
Debug: ac_readConfiguration(): skipped reading config
Info: tr_selectInstance(): scheduler failed to select instance.
Info: No new instance located for failover
Error: Request handling error: No instance available

Then with Option key down and forcing a reload, I got the "The requested application was not found on the server" error as seen here.

Info: <WebObjects Apache Module> new request: /Apps/WebObjects/Classes.woa/wa/default
Debug: App Name: Classes.woa/wa/default (7)
Info: V4 URL: /Apps/WebObjects/Classes.woa/wa/default
Info: Selected new app instance at index 9
Debug: Composed URL to '/Apps/WebObjects/Classes.woa/1/wa/default'
Info: New request is GET /Apps/WebObjects/Classes.woa/1/wa/default INCLUDED

Info: Sending request to instance number 1, port 2010
Info: Trying to contact Classes:1 on (2010)
Info: Caching hostent for 209.210.211.212
Info: attempting to connect to 209.210.211.212 on port 2010
Info: Classes:1 on (2010) connected [pooled: No]
Info: Request GET /Apps/WebObjects/Classes.woa/1/wa/default INCLUDED
 sent, awaiting response
Info: Reading configuration from http://localhost:1085/WebObjects/wotaskd.woa/wa/woconfig
Info: attempting to connect to localhost on port 1085
Info: Preparing to read config for host: localhost
Info: New response: HTTP/1.0 200 Apple WebObjects
Debug: nonBlockingRecv(): recv() returned 0 (connection closed)
Info: retrying request due to connection reset
Info: attempting to connect to 209.210.211.212 on port 2010
Info: Classes:1 on (2010) connected [pooled: No]
Info: Request GET /Apps/WebObjects/Classes.woa/1/wa/default INCLUDED
 sent, awaiting response
Debug: ac_readConfiguration(): skipped reading config
Debug: nonBlockingRecv(): recv() returned 0 (connection closed)
Info: Marking instance 1 dead
Warn: Marking 209.210.211.212:1 unresponsive
Debug: connectionAttempts = 1, retries = 10
Debug: ac_readConfiguration(): skipped reading config
Info: tr_selectInstance(): scheduler failed to select instance.
Info: No new instance located for failover
Error: Request handling error: No instance available
Info: <WebObjects Apache Module> new request: /Apps/WebObjects/Classes.woa/wa/default
Debug: App Name: Classes.woa/wa/default (7)
Info: V4 URL: /Apps/WebObjects/Classes.woa/wa/default
Info: tr_selectInstance(): scheduler failed to select instance.
Error: Request handling error: The requested application was not found on this server.

As mentioned, I can hit this application with both the fqdn/Apps/WebObjects/Classes and with fqdn/Apps/WebObjects/Classes.woa/wa/default.  Also, I have only one instance of the app currently running and there are no deaths.  From WOMonitor this is the start argument for the app.  I am not doing anything special other than defining the path to the app and then letting it rip.

-WOPort 2010 -WOCachingEnabled YES -WODebuggingEnabled NO -WOOutputPath /dev/null -WOAutoOpenInBrowser NO -WOAutoOpenClientApplication NO -WOLifebeatInterval 30 -WOLifebeatEnabled YES -WOLifebeatDestinationPort 1085 -WOAdaptor WODefaultAdaptor -WOWorkerThreadCount 8 -WOListenQueueSize 128 -WOWorkerThreadCountMin 16 -WOWorkerThreadCountMax 256 -NSProjectSearchPath () -WOSessionTimeOut 3600 -WOApplicationName Classes -WOMonitorEnabled YES -WONoPause YES

When hosting under 10.3 I recall doing the includes.  Then a few years ago I upgraded the hosting environment to 10.4 and then never resolved it but also no longer needed it.  This server is hosting 3 other WO apps that are full projects and never need any attention.  

The includes module is loaded in Apache as I am a heavy user of includes.  CGI execution and SSI are on for the virtual host and the evil web performance cache is turned off.  

Does the log show anything that I am missing?  In both cases it is marking the instance dead and the server unresponsive.  But meanwhile all other apps are running fine.

Thanks again for helping.  Chuck, are you going to do a "Dealing with Separation Anxiety - Moving Stubborn WO Developers Away from XCode" session at WWDC this year?





 _______________________________________________
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: How to target a WO component in an html include
      • From: Chuck Hill <email@hidden>
References: 
 >How to target a WO component in an html include (From: Reid Bundonis <email@hidden>)
 >Re: How to target a WO component in an html include (From: Chuck Hill <email@hidden>)

  • Prev by Date: Re: Better start with Wonder than WO
  • Next by Date: Re: Better start with Wonder than WO
  • Previous by thread: Re: How to target a WO component in an html include
  • Next by thread: Re: How to target a WO component in an html include
  • Index(es):
    • Date
    • Thread