unresponsive wotaskd

Robert Tupelo-Schneck <[email protected]> Thu, 20 Nov 2008 10:37:56 -0500
Newsgroups gmane.comp.web.webobjects.devel
Message-ID <[email protected]>
Hello!  I recently started with WebObjects and have had quite some  
good results developing a small application (thanks especially to the  
screencasts of David Leber).  I'm at the point where I want to think  
about deployment and thought I'd start by getting the development  
working through Apache rather than Direct Connect.

I'm doing this on Leopard.

I followed the instructions at http://wiki.objectstyle.org/confluence/display/WO/Development+Tools-Running+Through+Apache 
  and when I try to run my application from Eclipse my browser goes to
http://localhost/cgi-bin/WebObjects/woPrefixAdmin.woa/-5100
and I see
The requested application was not found on this server.

Next I find out that if I go to
http://localhost:1085
or
http://localhost:1085/cgi-bin/WebObjects/wotaskd.woa/wa/woconfig
I get a connection, but a completely blank page.
If I go to the Monitor at http://localhost:56789, the Hosts tab is  
empty, and if I try to add localhost I get "Failed to contact  
localhost-1085".

Can anyone advise me about this?

One oddity is that my system already had files /Library/LaunchDaemons/ 
com.apple.wotaskd.plist and /Library/LaunchDaemons/ 
com.apple.womonitor.plist.  I don't know when they got created.  The  
instructions at wiki.objectstyle.org seem to expect me to have to  
create them.  They had "dubious permissions" but I did a chmod 755 and  
they run fine:

$ ps auxww | grep java
_appserver   250  34.0  1.1   400896  46028   ??  Ss   10:14AM    
0:01.04 /usr/bin/java -XX:NewSize=2m -Xmx64m -Xms32m - 
DWORootDirectory=/System -DWOLocalRootDirectory= -DWOUserDirectory=/ - 
DWOEnvClassPath= -DWOApplicationClass=Application -DWOPlatform=MacOS - 
Dcom.webobjects.pid=250 -Dcom.sun.management.jmxremote=false - 
classpath WOBootstrap.jar com.webobjects._bootstrap.WOBootstrap  
wotaskd -WOHost localhost -WOPort 1085
_appserver    43   0.0  1.0   398896  42936   ??  Ss    9:31AM    
0:01.68 /usr/bin/java -XX:NewSize=2m -Xmx64m -Xms32m - 
DWORootDirectory=/System -DWOLocalRootDirectory= -DWOUserDirectory=/ - 
DWOEnvClassPath= -DWOApplicationClass=Application -DWOPlatform=MacOS - 
Dcom.webobjects.pid=43 -Dcom.sun.management.jmxremote=false -classpath  
WOBootstrap.jar com.webobjects._bootstrap.WOBootstrap JavaMonitor - 
WOPort 56789
schneck    281   0.0  0.0   599780    464 s000  R+   10:14AM   0:00.00  
grep java

$ sudo lsof -i tcp:1085
COMMAND PID       USER   FD   TYPE    DEVICE SIZE/OFF NODE NAME
java     43 _appserver   28u  IPv6 0x6b26b2c      0t0  TCP [:: 
127.0.0.1]:49441->[::127.0.0.1]:webobjects (CLOSE_WAIT)
java    250 _appserver    8u  IPv6 0x6b26d90      0t0  TCP [:: 
127.0.0.1]:webobjects (LISTEN)

The contents of /Library/LaunchDaemons/com.apple.wotaskd.plist:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd 
">
<plist version="1.0">
<dict>
         <key>Label</key>
         <string>com.webobjects.wotaskd</string>
         <key>OnDemand</key>
         <false/>
         <key>ProgramArguments</key>
         <array>
                 <string>/System/Library/WebObjects/JavaApplications/ 
wotaskd.woa/wotaskd</string>
                 <string>wotaskd</string>
                 <string>-WOHost</string>
                 <string>localhost</string>
                 <string>-WOPort</string>
                 <string>1085</string>
         </array>
         <key>ServiceIPC</key>
         <false/>
         <key>StandardOutPath</key>
         <string>/var/log/WebObjects/webobjects.log</string>
         <key>StandardErrorPath</key>
         <string>/var/log/WebObjects/webobjects.log</string>
         <key>UserName</key>
         <string>appserver</string>
         <key>GroupName</key>
         <string>appserverusr</string>
</dict>
</plist>

If I try running wotaskd from the command line (after a launchctl  
unload), using the same command I see in "ps auxww | grep java", I get  
this output:
$ cd /System/Library/WebObjects/JavaApplications/wotaskd.woa/
$ sudo /usr/bin/java -XX:NewSize=2m -Xmx64m -Xms32m -DWORootDirectory=/ 
System -DWOLocalRootDirectory= -DWOUserDirectory=/ -DWOEnvClassPath= - 
DWOApplicationClass=Application -DWOPlatform=MacOS - 
Dcom.webobjects.pid=42 -Dcom.sun.management.jmxremote=false -classpath  
WOBootstrap.jar com.webobjects._bootstrap.WOBootstrap wotaskd -WOHost  
localhost -WOPort 1085
Loading /System/Library/WebObjects/JavaApplications/wotaskd.woa/ 
Contents/MacOS/MacOSClassPath.txt
Generated classpath:
   /System/Library/WebObjects/JavaApplications/wotaskd.woa/Contents/ 
Resources/Java/wotaskd.jar
   /System/Library/WebObjects/JavaApplications/wotaskd.woa/Contents/ 
Resources/Java/
   /System/Library/WebObjects/JavaApplications/wotaskd.woa/Contents/ 
Extensions/JavaWebObjects.jar
   /System/Library/WebObjects/JavaApplications/wotaskd.woa/Contents/ 
Extensions/JavaFoundation.jar
   /System/Library/WebObjects/JavaApplications/wotaskd.woa/Contents/ 
Extensions/JavaEOControl.jar
   /System/Library/WebObjects/JavaApplications/wotaskd.woa/Contents/ 
Extensions/JavaEOAccess.jar
   /System/Library/WebObjects/JavaApplications/wotaskd.woa/Contents/ 
Extensions/JavaJDBCAdaptor.jar
   /System/Library/WebObjects/JavaApplications/wotaskd.woa/Contents/ 
Extensions/JavaXML.jar
   /Users/schneck/Library/Java
   /Library/Java/
   /System/Library/Java/
   /Network/Library/Java
   /System/Library/Frameworks/JavaVM.framework/Classes/classes.jar
   /System/Library/Frameworks/JavaVM.framework/Classes/ui.jar
   /System/Library/WebObjects/JavaApplications/wotaskd.woa/Contents/ 
Extensions/avalon-framework-4.1.2.jar
   /System/Library/WebObjects/JavaApplications/wotaskd.woa/Contents/ 
Extensions/axis-ant.jar
   /System/Library/WebObjects/JavaApplications/wotaskd.woa/Contents/ 
Extensions/axis.jar
   /System/Library/WebObjects/JavaApplications/wotaskd.woa/Contents/ 
Extensions/commons-discovery-0.2.jar
   /System/Library/WebObjects/JavaApplications/wotaskd.woa/Contents/ 
Extensions/commons-logging-1.0.4.jar
   /System/Library/WebObjects/JavaApplications/wotaskd.woa/Contents/ 
Extensions/derby.jar
   /System/Library/WebObjects/JavaApplications/wotaskd.woa/Contents/ 
Extensions/derbyclient.jar
   /System/Library/WebObjects/JavaApplications/wotaskd.woa/Contents/ 
Extensions/ejb-1.0.jar
   /System/Library/WebObjects/JavaApplications/wotaskd.woa/Contents/ 
Extensions/JavaEOAccess.jar
   /System/Library/WebObjects/JavaApplications/wotaskd.woa/Contents/ 
Extensions/JavaEOControl.jar
   /System/Library/WebObjects/JavaApplications/wotaskd.woa/Contents/ 
Extensions/JavaFoundation.jar
   /System/Library/WebObjects/JavaApplications/wotaskd.woa/Contents/ 
Extensions/JavaMonitorSupport.jar
   /System/Library/WebObjects/JavaApplications/wotaskd.woa/Contents/ 
Extensions/JavaWebObjects.jar
   /System/Library/WebObjects/JavaApplications/wotaskd.woa/Contents/ 
Extensions/JavaWOExtensions.jar
   /System/Library/WebObjects/JavaApplications/wotaskd.woa/Contents/ 
Extensions/JavaXML.jar
   /System/Library/WebObjects/JavaApplications/wotaskd.woa/Contents/ 
Extensions/jaxrpc.jar
   /System/Library/WebObjects/JavaApplications/wotaskd.woa/Contents/ 
Extensions/log4j-1.2.14.jar
   /System/Library/WebObjects/JavaApplications/wotaskd.woa/Contents/ 
Extensions/logkit.jar
   /System/Library/WebObjects/JavaApplications/wotaskd.woa/Contents/ 
Extensions/saaj.jar
   /System/Library/WebObjects/JavaApplications/wotaskd.woa/Contents/ 
Extensions/serializer.jar
   /System/Library/WebObjects/JavaApplications/wotaskd.woa/Contents/ 
Extensions/servlet.jar
   /System/Library/WebObjects/JavaApplications/wotaskd.woa/Contents/ 
Extensions/wsdl4j-1.5.1.jar
   /System/Library/WebObjects/JavaApplications/wotaskd.woa/Contents/ 
Extensions/xalan.jar
   /System/Library/WebObjects/JavaApplications/wotaskd.woa/Contents/ 
Extensions/xercesImpl.jar
   /System/Library/WebObjects/JavaApplications/wotaskd.woa/Contents/ 
Extensions/xml-apis.jar
   /System/Library/WebObjects/JavaApplications/wotaskd.woa/Contents/ 
Extensions/
   /Library/WebObjects/Extensions/axis-ant.jar
   /Library/WebObjects/Extensions/axis.jar
   /Library/WebObjects/Extensions/commons-discovery-0.2.jar
   /Library/WebObjects/Extensions/commons-logging-1.0.4.jar
   /Library/WebObjects/Extensions/derby.jar
   /Library/WebObjects/Extensions/derbyclient.jar
   /Library/WebObjects/Extensions/jaxrpc.jar
   /Library/WebObjects/Extensions/log4j-1.2.14.jar
   /Library/WebObjects/Extensions/saaj.jar
   /Library/WebObjects/Extensions/serializer.jar
   /Library/WebObjects/Extensions/servlet.jar
   /Library/WebObjects/Extensions/wsdl4j-1.5.1.jar
   /Library/WebObjects/Extensions/xalan.jar
   /Library/WebObjects/Extensions/xercesImpl.jar
   /Library/WebObjects/Extensions/xml-apis.jar
   /Library/WebObjects/Extensions/
[2008-11-20 10:1:43 EST] <main> WebObjects version = 5.4.2
[2008-11-20 10:1:43 EST] <main> Multicast Response Disabled
[2008-11-20 10:1:43 EST] <Thread-2> Created UDP socket; listening for  
requests...
[2008-11-20 10:1:43 EST] <main> The URL for webserver connect is:
http://localhost/cgi-bin/WebObjects/wotaskd.woa/-1085
[2008-11-20 10:1:44 EST] <main> null
[2008-11-20 10:1:43 EST] <main> Waiting for requests...

Incidentally if I go to http://localhost/cgi-bin/WebObjects/wotaskd.woa/-1085 
  I also get "The requested application was not found on this server."

I'm stuck, and I'd appreciate any help anyone is able to give.

Robert