On Jul 25, 2008, at 2:58 PM, Lachlan Deck wrote:

On 26/07/2008, at 4:39 AM, Rams wrote:

I searched the list and found no reference to this error, so I'm guessing it's an unusual problem... I'm still having trouble with my HTTP adaptor on OS X client after two weeks of pounding my head against the wall, and I thought I would ask here before I accept defeat and go spend $500 on OS X Server.

I'm getting this kCFErrorDomainCFNetwork in Safari on page loads even though the server logs indicate that the operation went fine. So I tried in Firefox, and it renders a blank page. Viewing source on that blank page produces my page source, it just doesn't render in the browser??? I think I've ruled out my app as a source of the problem since a) it never happens in direct connect, and b) it happens with the WOAdaptorInfo page too. My only guess is the adaptor is somehow broken, or my edits in my httpd.conf file is somehow fouling up apache, if that's possible. Does any of this error sound familiar to anyone?

My suggestion: follow previous advice before spending the doe. i.e., go back to stock httpd.conf (reinstall if necessary) and don't worry about mod-rewrite *until* you get it working. It works fine on my, and many other's, non-server system.

with regards,
--

Lachlan Deck




Ok, I have three edits that diverge from my stock httpd.conf file. They are all necessary for basic operation and are as follows.

*****************httpd.conf edits

1)  To prevent 403 forbidden errors, I have

<Directory />
    Options FollowSymLinks
    AllowOverride None
#    Order deny,allow
#    Deny from all
</Directory>


2) To prevent urls with a host name of "Mini.local" instead of "my.domain.com" generated by

public String feedUrl() {
        return context().directActionURLForActionNamed("default", null);
}

In my ERXRSSPage component, I have:

ServerName my.domain.com:80


3) To redirect the visitor's browser to my app, inside of <IfModule alias_module> I have:

Redirect permanent /index.html http://my.domain.com/cgi-bin/WebObjects/myapp.woa

*****************Symptoms of the problem

Once I get it set up and it is working, it seems to work fine until I reboot the machine. Once the machine is rebooted, more often than not, the application fails... I get either a

"No Instance Available" pages
"The application could not be found of this server" pages
or the KCFErrorDomainCFNetwork error in the browser


*****************Workaround

It seems I've found one reliable way to restore functionality to the app... The process is to

Delete the app in monitor
Delete log files
Restore httpd.conf to it's original, pristine, untouched state with a backup I originally made before starting to edit it.
Reboot the mini
Make the three edits mentioned above to httpd.conf
Reboot the mini
touch /Library/WebObjects/Log/WebObjects.log
chmod ugo+w /Library/WebObjects/Log/WebObjects.log
sudo chown _appserver:_appserveradm /Library/WebObjects/Logs/ WebObjects.log
touch /tmp/logWebObjects
Add the app to monitor. Set the path to the app, set the WOStats password, view details, add three instances.

At this point, it will run just fine... until the next reboot. Sometimes I can reboot without issue. Most of the time, it fails, so I have to repeat this process. It's tedious, but so far, it works.

*****************Diagnosis?

Looking at the edits, I wonder if perhaps there is something wrong with my DNS setup. This sounds quite similar to a problem documented on this list four years ago by Jonathan Rochkind.

http://lists.apple.com/archives/webobjects-deploy/2004/Mar/msg00025.html

Currently, my DNS setup is as follows...

Since I'm using OS X client, I have my domain record being managed by my domain registrar. *.mydomain.com and mydomain.com go to my static ip address. At that IP address, I have a Airport Express forwarding port 80 traffic to my server at a fixed 10.0.1.x address. On my server, I set the DNS in Directory Services instead of using a hosts file since dscl is billed as a replacement for /etc/hosts among other things...

sudo dscl localhost -create /Local/Default/Hosts/www.mydomain.com IPAddress 127.0.0.1

I recall trying with my 10.0.1.x address assigned by my NAT (airport express), but setting the host wouldn't work in Monitor unless I used the loopback address... anyway, what are the odds that this DNS setup is the root of my issues? Do I need to set up a DNS server to use monitor and wotaskd?

rg

Attachment: smime.p7s
Description: S/MIME cryptographic signature

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

This email sent to [EMAIL PROTECTED]

Reply via email to