Re: Deployment rather than development mode
Re: Deployment rather than development mode
- Subject: Re: Deployment rather than development mode
- From: LD <email@hidden>
- Date: Sun, 2 Oct 2005 12:47:39 +1000
Hi Chuck,
On 02/10/2005, at 3:31 AM, Chuck Hill wrote:
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)
LDs-Mac:~ ldeck$ sudo lsof -i tcp:1085
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
java 1604 root 5u IPv6 0x01f83650 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
LDs-Mac:~ ldeck$ sudo ls -l /Library/WebObjects/Configuration/
total 8
-rw-r--r-- 1 root admin 351 Oct 2 12:29 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.
No conflict.
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?
<?xml version="1.0" encoding="ASCII"?>
<adaptor>
<application name="MyApp">
<instance id="-55456" port="55456" host="LDs-Mac.local"/>
</application>
</adaptor>
4) Last thing to check.
sudo touch /tmp/logWebObjects
Hit the app a few times. Then
cat /tmp/WebObjects.log
What does it say?
LDs-Mac:~ ldeck$ sudo cat /tmp/WebObjects.log
LDs-Mac:~ ldeck$ sudo cat /tmp/logWebObjects
LDs-Mac:~ ldeck$
And the following doesn't log anything particularly interesting either.
LDs-Mac:~ ldeck$ sudo cat /var/log/webobjects.log
------------------------------------------------------------------------
-
javawoservice.sh: `wotaskd' is starting up ...
[2005-10-02 12:29:06 EST] <main> Multicast Response Disabled
[2005-10-02 12:29:06 EST] <Thread-0> Created UDP socket; listening
for requests...
[2005-10-02 12:29:06 EST] <main> The URL for webserver connect is:
http://LDs-Mac.local/cgi-bin/WebObjects/wotaskd.woa/-1085
The URL for direct connect is:
http://LDs-Mac.local:1085/cgi-bin/WebObjects/wotaskd.woa
[2005-10-02 12:29:06 EST] <main> null
[2005-10-02 12:29:06 EST] <main> Waiting for requests...
with regards,
--
LD
_______________________________________________
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