Finally found a fix for this. By changing the port number Monitor uses, I rebooted and Monitor successfully started my app. So in summary, here's what happened, in case anyone else comes across something similar:

Using Webobjects 5.3 deployment (and development) on Mac OS/X 10.4
My app was initially working fine, and Monitor would start it up after every reboot automatically. I had two power outages, and both times after the outage Monitor wouldn't start my app anymore. No errors, it just hung when starting up. After the first outage, I didn't have time to mess with it so I just re-installed the OS and everything else from scratch. After the second outage, I played around and found that after each reboot, if I deleted the host entry from Monitor and added it back in, Monitor could then start my app. It still wouldn't start it on a reboot of my machine though. And no, my IP wasn't changing between reboots. I then changed the default port that Monitor started with, and then it started working 100% again, even on machine reboot.

Don't ask me why the error occurred in the first place, or why changing the port number fixed things. If anyone thinks they know, please post it.

Thanks for all your help,
Jeff
http://www.netbrackets.com


On Dec 29, 2005, at 2:58 PM, Chuck Hill wrote:

On Dec 29, 2005, at 9:58 AM, Jeffrey Schmitz wrote:

Thanks Chuck,
One other thing I've found is if I delete the Host entry and then add it back in using Monitor, I can then start the app with Monitor. Note I don't have to delete the Application, just the Host.

This still isn't an optimal work-around though since the app still won't come up automatically on a re-boot of the machine. I have to delete and re-add the host back in everytime I reboot, even on a graceful reboot, but I thought perhaps it would give you or someone else another clue.

Hi Jeff,

It sounds like the host name / IP is changing.  What is in your
/Library/WebObjects/Configuration/SiteConfig.xml
in the <hostArray> tag? Are you using an IP address or a domain name? Is the IP address on this machine static or set by DHCP?


Chuck

Thanks,
Jeff

On Dec 29, 2005, at 11:25 AM, Chuck Hill wrote:

The only thing that I can think of is that wotaskd is running under a different user (appserver instead of root) and that the appserver user lacks permissions on something (log directories, app directories). Permissions problems will prevent the app from launching.

On that version of WO/OS X, wotaskd should be running as appserver. Perhaps you had killed it and started it manually as root before the power outage? The reboot would have taken it back to appserver.

My best guess at this time of morning.

Chuck

On Dec 28, 2005, at 8:04 PM, Jeffrey Schmitz wrote:

Hello,
Using Webobjects 5.3 (develop and deploy on the same machine) I've recently had two power failures and both times afterward, Javamonitor could no longer start my app that it was starting fine before the power failures. I can still run my app fine from the command line, giving all the arguments that JavaMonitor says it's going to use (I did have to put single quotes around the () specified after the -NSProjectSearchPath option), but when starting from Javamonitor, it says the app dies (and it does). I wrote a script I found when searching the archives to start the app so that a log file would be written during startup, but no errors show up in the log file. When launching from JavaMonitor, the logs stop after printing the Generated classpat, i.e. it never prints the line about creating a LifeBeatThread. My script looks as follows:

 #!/bin/sh
/Library/WebObjects/Applications/MyApp.woa/MyApp $* > /tmp/ appLaunch.log 2>&1 &

Here again I can run this script from the command line with the JavaMonitor noted arguments with no problems and the app runs fine. The last time I had to reinstall my OS from scratch to fix things, but I am hoping there is some easier way to fix things. I have also tried deleting and reinstalling my app from scratch but even that doesn't work. Yes, I know I should have a UPS (it's on order), but I'm wondering what about a power down would cause this problem?

btw, this problem sounds a lot like a problem Randall Perry had in a thread that he started back in May 2004 and I'm wondering if he ever got a resolution on that one.

Any help on this would be GREATLY appreciated as I've basically hit a wall.

Jeff

When running from JavaMonitor, log file looks as follows:

Reading MacOSClassPath.txt ...
Launching netBrackets.woa ...
java -XX:NewSize=2m -Xmx64m -Xms32m -DWORootDirectory="/System" - DWOLocalRootDirectory="" -DWOUserDirectory="/System/Library/ WebObjects/JavaApplications/wotaskd.woa" -DWOEnvClassPath="" - DWOApplicationClass=Application -DWOPlatform=MacOS - Dcom.webobjects.pid=421 -classpath WOBootstrap.jar com.webobjects._bootstrap.WOBootstrap -WOPort 2002 - WOCachingEnabled YES -WODebuggingEnabled NO -WOOutputPath /dev/ null -WOAutoOpenInBrowser YES -WOAutoOpenClientApplication YES - WOLifebeatInterval 30 -WOLifebeatEnabled YES - WOLifebeatDestinationPort 1085 -WOAdaptor WODefaultAdaptor - WOWorkerThreadCount 8 -WOListenQueueSize 128 - WOWorkerThreadCountMin 16 -WOWorkerThreadCountMax 256 - NSProjectSearchPath "()" -WOSessionTimeOut 3600 - WOApplicationName runit -WOMonitorEnabled YES -WONoPause YES appRoot is /Library/WebObjects/Applications/netBrackets.woa/ Contents Loading /Library/WebObjects/Applications/netBrackets.woa/ Contents/MacOS/MacOSClassPath.txt
Generated classpath:
/Library/WebObjects/Applications/netBrackets.woa/Contents/ Resources/Java/netBrackets.jar /System/Library/Frameworks/JavaFoundation.framework/Resources/ Java/javafoundation.jar /System/Library/Frameworks/JavaEOControl.framework/Resources/ Java/javaeocontrol.jar /System/Library/Frameworks/JavaEOAccess.framework/Resources/ Java/javaeoaccess.jar /System/Library/Frameworks/JavaWebObjects.framework/Resources/ Java/javawebobjects.jar /System/Library/Frameworks/JavaJDBCAdaptor.framework/Resources/ Java/javajdbcadaptor.jar /System/Library/Frameworks/JavaWOExtensions.framework/ Resources/Java/JavaWOExtensions.jar /System/Library/Frameworks/JavaXML.framework/Resources/Java/ javaxml.jar
  /var/empty/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
  /Library/WebObjects/Extensions/axis-ant.jar
  /Library/WebObjects/Extensions/axis.jar
  /Library/WebObjects/Extensions/commons-discovery.jar
  /Library/WebObjects/Extensions/commons-logging.jar
  /Library/WebObjects/Extensions/jaxrpc.jar
  /Library/WebObjects/Extensions/log4j-1.2.4.jar
  /Library/WebObjects/Extensions/log4j-1.2.8.jar
  /Library/WebObjects/Extensions/saaj.jar
  /Library/WebObjects/Extensions/wsdl4j.jar
  /Library/WebObjects/Extensions/


When running from command line, end of log file looks as follows:

Reading MacOSClassPath.txt ...
Launching netBrackets.woa ...
java -XX:NewSize=2m -Xmx64m -Xms32m -DWORootDirectory="/System" - DWOLocalRootDirectory="" -DWOUserDirectory="/Library/WebObjects/ Applications/netBrackets.woa" -DWOEnvClassPath="" - DWOApplicationClass=Application -DWOPlatform=MacOS - Dcom.webobjects.pid=8019 -classpath WOBootstrap.jar com.webobjects._bootstrap.WOBootstrap -WOPort 2010 - WOCachingEnabled YES -WODebuggingEnabled NO -WOOutputPath /dev/ null -WOAutoOpenInBrowser YES -WOAutoOpenClientApplication NO - WOLifebeatInterval 30 -WOLifebeatEnabled YES - WOLifebeatDestinationPort 1085 -WOAdaptor WODefaultAdaptor - WOWorkerThreadCount 8 -WOListenQueueSize 128 - WOWorkerThreadCountMin 16 -WOWorkerThreadCountMax 256 - NSProjectSearchPath "()" -WOSessionTimeOut 3600 - WOApplicationName runit -WOMonitorEnabled YES -WONoPause YES appRoot is /Library/WebObjects/Applications/netBrackets.woa/ Contents Loading /Library/WebObjects/Applications/netBrackets.woa/ Contents/MacOS/MacOSClassPath.txt
Generated classpath:
/Library/WebObjects/Applications/netBrackets.woa/Contents/ Resources/Java/netBrackets.jar /System/Library/Frameworks/JavaFoundation.framework/Resources/ Java/javafoundation.jar /System/Library/Frameworks/JavaEOControl.framework/Resources/ Java/javaeocontrol.jar /System/Library/Frameworks/JavaEOAccess.framework/Resources/ Java/javaeoaccess.jar /System/Library/Frameworks/JavaWebObjects.framework/Resources/ Java/javawebobjects.jar /System/Library/Frameworks/JavaJDBCAdaptor.framework/Resources/ Java/javajdbcadaptor.jar /System/Library/Frameworks/JavaWOExtensions.framework/ Resources/Java/JavaWOExtensions.jar /System/Library/Frameworks/JavaXML.framework/Resources/Java/ javaxml.jar
  /private/var/root/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
  /Library/WebObjects/Extensions/axis-ant.jar
  /Library/WebObjects/Extensions/axis.jar
  /Library/WebObjects/Extensions/commons-discovery.jar
  /Library/WebObjects/Extensions/commons-logging.jar
  /Library/WebObjects/Extensions/jaxrpc.jar
  /Library/WebObjects/Extensions/log4j-1.2.4.jar
  /Library/WebObjects/Extensions/log4j-1.2.8.jar
  /Library/WebObjects/Extensions/saaj.jar
  /Library/WebObjects/Extensions/wsdl4j.jar
  /Library/WebObjects/Extensions/
[2005-12-28 21:49:45 CST] <main> Creating LifebeatThread now with: runit 2010 netBrackets-Quad.local/192.168.15.104 1085 30000 [2005-12-28 21:49:45 CST] <main> Opening application's URL in browser:
http://192.168.15.104:2010/cgi-bin/WebObjects/runit.woa
[2005-12-28 21:49:45 CST] <main> null
[2005-12-28 21:49:45 CST] <main> Waiting for requests...
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-deploy mailing list (Webobjects- [EMAIL PROTECTED])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-deploy/chill% 40global-village.net

This email sent to [EMAIL PROTECTED]

--
Coming in 2006 - an introduction to web applications using WebObjects and Xcode http://www.global-village.net/wointro

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






--
Coming in 2006 - an introduction to web applications using WebObjects and Xcode http://www.global-village.net/wointro

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-deploy mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-deploy/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to