• 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: Weird JavaMonitor wotaskd behavior on Snow Leopard
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Weird JavaMonitor wotaskd behavior on Snow Leopard


  • Subject: Re: Weird JavaMonitor wotaskd behavior on Snow Leopard
  • From: Tusker <email@hidden>
  • Date: Wed, 28 Jul 2010 17:43:04 -0700

Looks fine to me. Here is the output from term before I hit the start application button:


sh-3.2# ps auxwww | grep 2001
root 2443 0.0 0.0 2435036 580 s000 R+ 5:31PM 0:00.00 grep 2001
sh-3.2# sudo lsof -i tcp:2001
sh-3.2#
sh-3.2#
sh-3.2# sudo lsof -i tcp:2001
sh-3.2# sudo lsof -i tcp:1085
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
java 75 _appserver 80u IPv6 0xffffff80350d24a0 0t0 TCP *:webobjects (LISTEN)
java 75 _appserver 82u IPv6 0xffffff80350d1860 0t0 TCP [:: 127.0.0.1]:webobjects->[::127.0.0.1]:49161 (ESTABLISHED)
java 76 _appserver 82u IPv6 0xffffff80350d1e80 0t0 TCP [:: 127.0.0.1]:49161->[::127.0.0.1]:webobjects (ESTABLISHED)
sh-3.2#




When I hit the start button in JavaMonitor for the application I see a process start but JavaMonitor reports it as not starting.


sh-3.2# sudo lsof -i tcp:2001
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
java 2532 _appserver 77u IPv6 0xffffff803751be80 0t0 TCP *:dc (LISTEN)
sh-3.2# sudo lsof -i tcp:1085
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
java 75 _appserver 80u IPv6 0xffffff80350d24a0 0t0 TCP *:webobjects (LISTEN)
java 75 _appserver 82u IPv6 0xffffff80350d1860 0t0 TCP [::127.0.0.1]:webobjects->[::127.0.0.1]:49161 (ESTABLISHED)
java 75 _appserver 83u IPv6 0xffffff80350ce450 0t0 TCP [::xx.xx.xx.71]:webobjects->[::xx.xxx.xxx.71]:49639 (ESTABLISHED)
java 76 _appserver 82u IPv6 0xffffff80350d1e80 0t0 TCP [::127.0.0.1]:49161->[::127.0.0.1]:webobjects (ESTABLISHED)
java 2532 _appserver 80u IPv6 0xffffff80350ce760 0t0 TCP [::xx.xxx.xxx.71]:49639->[::xx.xxx.xxx.71]:webobjects (ESTABLISHED)
sh-3.2#



These are new server without any OS X installed before. Brand new out of the box.




On Jul 28, 2010, at 5:20 PM, Chuck Hill wrote:


On Jul 28, 2010, at 5:10 PM, Tusker wrote:

I'm using the DNS domain which resolves to the IP of the machine. I just got the DNS setup today in reverse as well. I was using the .local address before.

This is a fun puzzle! See below.



On Jul 28, 2010, at 4:43 PM, Chuck Hill wrote:

What are you using for the host name? It needs to DNS resolve to primary IP of this machine. You can't use .local addresses.

On Jul 28, 2010, at 4:29 PM, Tusker wrote:

No luck yet.

I added WOHost in the additional args for the app in JavaMonitor and added it in launchd. I couldn't even get wotaskd to start with this argument. (see error below)

Instead, I left wotaskd as is and changed the application host in JavaMonitor.

The WOAdaptor is up and reporting the application running.
Javamonitor us up and running
Wotaskd is reporting all the configuration changes and I see the applications there as well.


I can get to the following url:

http://myappdomain:2001/test.woa/wa/

That goes directly to the application, cutting Apache, the woadaptor, and wotaskd out of the picture.



but I can't get to

http://mywebserverdomain/test.woa/wa

I restart the server and try starting the application. This time, I get an error in the SpawnofWotaskd.log which makes no sense. It actually starts a application but JavaMonitor does not see it.

That suggests that all the pieces are not using the same host name.


JavaMonitor reports a death.  But I can get to http://myappdomain:2001/test.woa/wa/


Here are the Logs when I start application using JavaMonitor after a server restart.


--------------------------------------------------------
Jul 28 16:21:55 contactme[N/A] (ERXNSLogLog4jBridge.java:43) WARN NSLog - Unable to establish a connection to port 2001 on this host. Perhaps this port is already in use by another WebObjects application instance.
Jul 28 16:21:55 contactme[N/A] (ERXNSLogLog4jBridge.java:43) WARN NSLog - <WOApplication>: Cannot be initialized.java.lang.reflect.InvocationTargetException
Jul 28 16:21:55 contactme[N/A] (ERXNSLogLog4jBridge.java:43) WARN NSLog - A fatal exception occurred: <WOApplication>: Cannot be initialized.
-------------------------------------------------------

So it is already running. Try sudo lsof -i tcp:2001 to see the running process id. You can also try ps auxwww | grep 2001


wotaskd error when adding WOHost:

[2010-7-28 13:39:31 PDT] <main> WebObjects version = 5.4.3
[2010-7-28 13:39:31 PDT] <main> Unable to establish a connection to port 1085 on this host. Perhaps this port is already in use by another WebObjects application instance.
[2010-7-28 13:39:31 PDT] <main> A fatal exception occurred: <WOApplication>: Cannot be initialized.
[2010-7-28 13:39:31 PDT] <main> com.webobjects.foundation.NSForwardException [java.lang.reflect.InvocationTargetException]
...
Caused by: java.net.BindException: Can't assign requested address


So either wotaskd is already running or some other process is using that port.


Try seeing what the pid is with this:
sudo lsof -i tcp:1085

Check in /Library/LaunchDaemons and /System/Library/LaunchDaemons to ensure that wotaskd is not getting started twice.

New and clean means that no previous OS X version was installed on these machines?

Chuck



On Jul 28, 2010, at 11:54 AM, Simon wrote:

i recently had the misfortune of having to set up a snow leopard deployment and ran into similar problems. remember there are 3 golden URL's to diagnosing deployment issues:

http://yourdomain/cgi-bin/WebObjects/WOAdaptorInfo
http://yourdomain:1085 // assuming you are running wotaskd on standard port
http://yourdomain:56789 // assuming you are running javamonitor on standard port


if we ever have deployment issues these are my first 3 ports of call. in particular, make sure the first two are both reporting your running instances. with our snow leopard issues we could see running instance in the wotaskd config, but the WOAdaptorInfo page was reporting nothing ... bingo.

simon

On 28 July 2010 19:05, Chuck Hill <email@hidden> wrote:
Use the hostname of the app server in JavaMonitor as the host and also set this in the Properties file with WOHost=.... for the app and wotaskd. Or set WOHost in the additional args for the app in Java Monitor and in the launchd config for wotaskd.


Did that help?


Chuck

On Jul 28, 2010, at 10:54 AM, Tusker wrote:

Hi,

I'm seeing some very bizarre things with javamonitor and wotaskd. I have new clean Snow Leopard servers. I have a 3 machine setup. 1 Websever, 1 Application server (Javamonitor, wotaskd) and 1 database server. I followed the following instructions (http://wiki.objectstyle.org/confluence/display/WO/Programming__WebObjects-Web+Applications-Deployment-Mac+OS+X+Server ).

I can initially start up wotaskd and javamonitor. I setup host and my test application using Javamonitor. I can start up my test application fine. Everything works fine, but as soon as I restart the server, I can't start the application that I just setup. Both the wotaskd and javamonitor process start up and I can see them in the Activity Monitor. I modified SpawnOfWotaskd.sh to capture the logs when I hit go. Initially, I see these logs. When I restart the server, these stop as well.

I tried adding -_DeploymentDebugging true to the plist but it will not output the debugging level logs.

Any clues?

Thanks,
M


--
Chuck Hill             Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects









_______________________________________________ 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



-- Chuck Hill Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects










-- Chuck Hill Senior Consultant / VP Development

Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
http://www.global-village.net/products/practical_webobjects









_______________________________________________ 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: Weird JavaMonitor wotaskd behavior on Snow Leopard
      • From: Mark Ritchie <email@hidden>
    • Re: Weird JavaMonitor wotaskd behavior on Snow Leopard
      • From: Pascal Robert <email@hidden>
References: 
 >Weird JavaMonitor wotaskd behavior on Snow Leopard (From: Tusker <email@hidden>)
 >Re: Weird JavaMonitor wotaskd behavior on Snow Leopard (From: Chuck Hill <email@hidden>)
 >Re: Weird JavaMonitor wotaskd behavior on Snow Leopard (From: Simon <email@hidden>)
 >Re: Weird JavaMonitor wotaskd behavior on Snow Leopard (From: Tusker <email@hidden>)
 >Re: Weird JavaMonitor wotaskd behavior on Snow Leopard (From: Chuck Hill <email@hidden>)
 >Re: Weird JavaMonitor wotaskd behavior on Snow Leopard (From: Tusker <email@hidden>)
 >Re: Weird JavaMonitor wotaskd behavior on Snow Leopard (From: Chuck Hill <email@hidden>)

  • Prev by Date: Re: Weird JavaMonitor wotaskd behavior on Snow Leopard
  • Next by Date: Re: Weird JavaMonitor wotaskd behavior on Snow Leopard
  • Previous by thread: Re: Weird JavaMonitor wotaskd behavior on Snow Leopard
  • Next by thread: Re: Weird JavaMonitor wotaskd behavior on Snow Leopard
  • Index(es):
    • Date
    • Thread