Multiple WOTask / Adaptors on one host
Multiple WOTask / Adaptors on one host
- Subject: Multiple WOTask / Adaptors on one host
- From: "Pierre Bernard" <email@hidden>
- Date: Mon, 12 Jan 2004 17:55:05 +0100
- Thread-topic: Multiple WOTask / Adaptors on one host
-----Original Message-----
From: Pierre Bernard
Sent: Monday, January 12, 2004 5:54 PM
To: 'webobjects-admin'
Subject:
Hi!
I am trying to set up a configuration with multiple WebObjects deployment environments on one machine. I am working on a Solaris 2.7 server with one single IP address. The environments should differ by the port number on which the web server is listening.
I have multiple NEXT_ROOTs. For each there is a user who will own the WOTask and application processes. Thus there are multiple instances of Apache running, each with a different setup to talk to a given WOTask instance. For each WOTask there is a JavaMonitor instance.
At first glance everything seems to be fine. Most applications seem to run fine. Some however fail. What fails are WOContext operations that attempt to create a complete URL from an incomming WORequest. The generated URL lacks the port number to the Apache server. Looking at the header of the incoming request I get to wonder how the WOContext is supposed to determine that port number. I expected to find a value for the x-webobjects-server-port. Yet that key is not provided.
What may I have missed?
Another oddity appeared when I tried to ensure that environments do not share the WOAdaptorState. I added the following instruction to the Apache/adaptor config file:
# Ensure that no two instance write to the same cache file
WebObjectsOptions stateFile=WOAdaptorState_Test
When running with the adaptor from WebObjects 5.1, this works fine. The file is created in the /tmp directory as expected. It does no solve my above problem though.
With the WebObjects 5.2 adaptor things are odd. The file is not created. Neither is the one with the default name. An existing file is however deleted. As per the log file the settings are in effect:
Debug: init_adaptor(): beginning initialization. Adaptor version 4.5.1.
Info: init_adaptor(): config options are: String table:
options = stateFile=WOAdaptorState_Test
config = http://localhost:1075
confinterval = 10
username = user
password = password
logPath = /tmp/WebObjectsTest.log
logLevel = Debug
stateFile = WOAdaptorState_Test
Info: Adaptor shared state file: /tmp/WOAdaptorState_Test
Anybody out there using a multiple WOTask setup with success?
Thanks in advance for your input,
Pierre.
**********************************************************************
This email and any files transmitted with it are intended solely for
the use of the individual or entity to whom they are addressed.
If you have received this email in error please notify the sender
of this message. (email@hidden)
This email message has been checked for the presence of computer
viruses; however this protection does not ensure this message is
virus free.
Banque centrale du Luxembourg; Tel ++352-4774-1; http://www.bcl.lu
**********************************************************************
_______________________________________________
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.