Re: unresponsive wotaskd

David Holt <[email protected]> Thu, 20 Nov 2008 09:56:45 -0800
Newsgroups gmane.comp.web.webobjects.devel
Message-ID <[email protected]>
Hi Robert,

I have just gone through this exact process last night. Your wotaskd  
isn't running properly.

In addition to what you did, make sure you follow the instructions here:

http://wiki.objectstyle.org/confluence/display/WO/WO+5.4+Getting 
+Started#WO5.4GettingStarted-javamonitor

You don't need to set your host in JavaMonitor. I thought you did  
too, but it wasn't the case. You should be able to just run your  
application from Eclipse and it will "magically" use Apache when it  
is starting up.

The steps I took as outlined in the wiki:

Modify apache commenting out the two lines in /directory
<Directory />
     Options FollowSymLinks
     AllowOverride None
     #Order deny,allow
     #Deny from all
</Directory>

Then add
ServerName localhost

Add a line that points to the WebObjects apache config file
Include /System/Library/WebObjects/Adaptors/Apache2.2/apache.conf

My apache.conf file contained the line to load the WebObject module
Confirm that apache.conf includes:
WebObjectsConfig http://localhost:1085 10

Add the WOHost localhost to the properties file in wotaskd

Change permissions of the two lauchdaemons to *exactly* what is  
written in the wiki
644 system/wheel/everyone

Set your launch parameters in your application:

-WODirectConnectEnabled false
-WOHost localhost
-WOAdaptorURL http://localhost/cgi-bin/WebObjects
-WOPort 5555

Load the LaunchDaemons. If they are already loaded and you've made no  
changes, you should be able to start your application directly. If  
you've made changes and the LaunchDaemons are already loaded, you'll  
have to restart your machine to kick off launchd.

If that doesn't work, go back and double check every one of the  
settings. You'll probably find one of them has a typo or something. I  
am sure I did it three or four times last night before I finally got  
it all to work.

I think the key to your problem is likely the permissions on the  
wotaskd launchdaemon.

Good luck!

David

P.S. Just as I was about to send this I noticed that your  
launchdaemons are named "com.apple.womonitor.plist". The wiki calls  
for the loading of a module named  
"com.apple.webobjects.womonitor.plist" (notice the extra  
*webobjects*). You may not have loaded the modules if you used the  
wiki instructions and didn't notice the naming difference of the files.


On 20-Nov-08, at 7:37 AM, Robert Tupelo-Schneck wrote:

> 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
>
> _______________________________________________
> WebObjects-dev mailing list
> [email protected]
> http://www.omnigroup.com/mailman/listinfo/webobjects-dev

_______________________________________________
WebObjects-dev mailing list
[email protected]
http://www.omnigroup.com/mailman/listinfo/webobjects-dev