• 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
Adaptor Http deployment issue: The Lights On, But Nobody's Home
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Adaptor Http deployment issue: The Lights On, But Nobody's Home


  • Subject: Adaptor Http deployment issue: The Lights On, But Nobody's Home
  • From: "Jonathan Fleming" <email@hidden>
  • Date: Sat, 21 Jun 2003 00:10:51 +0100

I have read as much as I can take of the Deploying Applications documentation because parts of it are perhaps confusing me more than I have understood from any of the WebObjects books on the market, all of which I have.
The Server Administrator knows nothing about WebObjects but has was kind enough at the time to install it for me, only I can not help him in return as I know little about Web Servers and I have never seen nor deployed a web application live to the web to speak of any experience.
So I set up one of my computers with a deployment installation on a PC running Window2000 Advanced Server using it's default setup and installed WebObjects deployment linking the cgi-bin to; C:\Inetpub\scripts and the document root to; C:\Inetpub\wwwroot.
The live host server I am trying to deploy to, however, is setup rather differently and so I have attempted to set mine up the same...
where I have the directory InetPub they have web1 but inside that they have a directory for each website (virtual domain) that they host eg. site001, site 002 site003 etc. and each of those carries its own scripts directory, so where I have C:\Inetpub\scripts for my cgi-bin they have the path; C:\web1\site001\scripts, C:\web1\site002\scripts, etc.
Likewise where my document root is; C:\Inetpub\wwwroot their's is; C:\web1\site003\web.
Now I have mimiced their directory structure, I need to deploy two apps for two sites on this server so I'm thinking that either their setup can not work for me or I have to put both apps in the same C:\web1\site003\web directory... here my logical thinking to this end.


Having done a split install I put the apps logic .woa directories in the Apple Directory which I have access to, in fact they are placed here; C:\Apple\Local\Library\WebObjects\Applications but here's where i'm hitting my first problem. the apps document root are in two different places eg. C:\web1\site001\web and C:\web1\site002\web, this seems a problem since the installation only allows the document root to be in one place. And I don't know if the WebServerConfig.plist can substantiate two DocumentRoot paths, it feels unlikely. Is it then OK to put each .woa's WebServerResources in the one directory say; C:\web1\site001\web\WebObjects\<both .woa directories with the contents of their WebServerResources placed here> then later in Monitor when setting the Site URL's point each apps instance at the desired http://www.website.com?

I'm having to ask this because I can not get any of the apps showing content by the Site URL's or as a test deployment by clicking the app name under Application tab in Monitor that uses an address such as http://the-server/scripts/WebObjects.exe/JandM.woa/-2001. But if I look at the log I can see that the app has started and that it is waiting for requests. Something is not setup correctly or i am missing some http adaptor configuration that needs to be done on the live server.
Here's what I have done with one of the sites so far
1) Deployed an app called JandM, used Monitor to setup a host and it's availability is set to YES
2) Added an application named JandM (the actual project name is JandMGeneralMaintenance, but this does not matter the docs have stated).
3) Added an instance and turned it ON. To this point everything's cool.
4) I Click the app's name link (JandM) and a window appears with this url:
http://the-server/scripts/WebObjects.exe/JandM.woa/1, but it give me a 404 error - nothing's happening. However, the site that I actually want to deploy is http://www.jandmbuildingservices.co.uk and if i change the url by going to the Site tab and adding this url to the "HTTP Adaptor URL", after updating it, stopping and starting the instance again I still get the same 404 error.


What I don't understand is how I have to set up the adaptor. I was under the impression that the WebObjects Deployment installation took care of this in the default deployment setup abeit using a CGI Adaptor which the docs try to steer you clear of, but it seems from the docs that there is a lot more to do.
I have worked out that I should be creating a number of Environment Variables for the computers system such as; WO_CONFIG_URL to list my virtual domain names in such as http//:jandmbuildingservices.co.uk, WO_ADAPTOR_INFO_USERNAME the user accessing this file, WO_ADAPTOR_INFO_PASSWORD password, CGI_DOCUMENT_ROOT should the path be something like; C:\web1\site001\web?, WEBOBJECTS_OPTIONS should this be pointing to the logs and redirect html file if any?


I have created a WOConfig file simply so that I don't have to keep calling the administrator everytime I want to add or delete an app as I would with a host list configuration, but it seems there are two parts to the configuration file, WOConfig.xml and woadaptor.dtd.
Are these supposed to be two seperate files or embedded as one? If together where is the code supposed to be placed within the one file.


---------------------------------------------------------------
This would be my WOConfig.xml file

<?xml version="1.0" encoding="ASCII"?>
<adaptor>
<application name="JandM" urlVersion="4">
<instance id="1" port="2001" host="jandmbuildingservices.co.uk"/>
</application>
</adaptor>

----------------------------------------------------------------
This would be my woadaptor.dtd file

<?xml version="1.0" encoding="ASCII"?>
<!DOCTYPE WebObjectsAdaptorConfiguration SYSTEM "woadaptor.dtd">
<adaptor>
<application name=STRING
retries=NUMBER
scheduler=["RANDOM"|"ROUNDROBIN"|"LOADAVERAGE"]
dormant=NUMBER
protocol="http"
redir=URL
poolSize=NUMBER
urlVersion=["3"|"4"]
additionalArgs="unspecified"


<instance id=NUMBER port=NUMBER host=STRING sendTimeout=NUMBER recvTimeout=NUMBER cnctTimeout=NUMBER sendBufSize=NUMBER recvBufSize=NUMBER additionalArgs="unspecified"


</instance> </application> </adaptor>

----------------------------------------------------------------

Having Created the WOConfig.xml file, the E-Var with a value of; file://Apple/Library/WebObjects/Configuration/WOConfig.xml and then restarting the computer I still get the same old problem - 404 error message/page but the app is built and running somewhere in the background.

As you can see I'm moving way out of my depth. Someone please help I need to get this http adaptor working fast or it's game over for me. Two years on one WebObjects project developing it and now this deployment issue is enough to drive me insane.
Has anyone built an adaptor, especially an ISAPI one that the docs quite clearly want you to use, that i can adapt to my setp?


Please, Please help
Respect
Jonathan :^S

_________________________________________________________________
Find a cheaper internet access deal - choose one to suit you. http://www.msn.co.uk/internetaccess
_______________________________________________
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.

  • Prev by Date: Re: WOAdaptorURL
  • Next by Date: Swing on Mac & Windows [NEWBIE]
  • Previous by thread: Re: WOAdaptorURL
  • Next by thread: Swing on Mac & Windows [NEWBIE]
  • Index(es):
    • Date
    • Thread