Hi List,
This is how I ended up fixing it.
Edit File, nano
/Library/WebObjects/Deployment/wotaskd.woa/wotask, added almost
at bottom, just
before “Launch the application”:
#
# Verify network services
are initialized before starting
#
echo Checking network
services and sleeping for 40 seconds ....
/usr/sbin/ipconfig
waitall
sleep 40
/usr/sbin/ipconfig
waitall
Edit File, nano
/Library/WebObjects/Deployment/JavaMonitor.woa/JavaMonitor,
added almost at bottom, just before “Launch the application”:
#
# Verify network services
are initialized before starting
#
echo Checking network
services and sleeping for 50 seconds ....
/usr/sbin/ipconfig
waitall
sleep 50
/usr/sbin/ipconfig
waitall
#
# Restart Apache - to
pick up on correctly working wotaksd
#
echo Restarting
Apache ....
/usr/sbin/apachectl restart
EndFragment
On 03/Mar/12 1:19 PM, Gaastra Dennis - WO Lists wrote:
Hi All, just tested this, but it did not help. Still JavaMonitor
was not externally reachable and the "requested application was
not found". Only re-starting the wotask, JavaMonitor, and apache
manually makes it work.
Question: Is this why it was taken out from the Wonder variants?
because it does not work anyhow?
Thanks,
Dennis.
On 02/Mar/12 9:28 AM, Chuck Hill wrote:
It runs quickly when everything is up, I don't see a reason to not include it in all the scripts.
Chuck
On 2012-03-02, at 2:23 AM, Pascal Robert wrote:
It's woproject that will need to be changed since it's woproject job to create the launch scripts. So we have to decide if any applications build by woproject should have the ipconfig call or it's only for wotaskd and Monitor. I think it should be for all applications, because if someone is launching a WO app without wotaskd at startup (for example, a product build and sold as a .woa), having the call would be useful.
I was just diffing the application launch scripts for a default wotaskd/javamonitor that I had lying around (not exactly sure which version - probably from 5.3.x) and the Wonder versions - i.e., wotaskd.woa/wotaskd and JavaMonitor.woa/JavaMonitor (not the launchd code).
In both cases the stock versions include the following code right before the application is launched - and which is not present in the Wonder versions of the apps (or in my own built apps):
# Verify network services are intialized before starting
#
echo Checking network services....
if [ "${PLATFORM_TYPE}" = "Darwin" ]
then
/usr/sbin/ipconfig waitall
fi
#
It seems that Apple recognized this problem, and took steps to customize each of these 'likely to be launched boot time' applications' boot scripts to deal with it.
Is there a way to build the Wonder versions to include modified launch scripts by default? Alternatively, I think you could go with my earlier idea of a dedicated launchd task to wait for the interfaces at that point, and then bring up wotaskd, Monitor and Apache once the network is ready.
Simon
On Mar 1, 2012, at 1:21 PM, <email@hidden>
<email@hidden> wrote:
I recall modifying the app.woa/app startup script at the end.
Basically, wotaskd should start first (it will start your app), then after it is running javamonitor should start. The tail end of my wotaskd.woa/wotaskd is like:
#
# Launch the application.
#
# gsb 6/9/2010
# wait untill things boot all the way up
/usr/sbin/ipconfig waitall
#extra time for db
/bin/sleep 100
#
# Launch the application.
#
echo gb fixed? Launching ${SCRIPT_NAME}.woa ...
echo Launching ${SCRIPT_NAME}.woa ...
echo ${JAVA_EXECUTABLE} ${JAVA_EXECUTABLE_ARGS} -classpath WOBootstrap.jar com.webobjects._bootstrap.WOBootstrap ${COMMAND_LINE_ARGS}
eval exec ${JAVA_EXECUTABLE} ${JAVA_EXECUTABLE_ARGS} -classpath WOBootstrap.jar com.webobjects._bootstrap.WOBootstrap ${COMMAND_LINE_ARGS}
And for my JavaMonitor.woa/JavaMonitor:
# gsb 6/9/2010
# wait untill things boot all the way up
/usr/sbin/ipconfig waitall
#extra time for db
/bin/sleep 240
#
# Launch the application.
#
echo gb fixed? Launching ${SCRIPT_NAME}.woa ...
#
# Launch the application.
#
echo Launching ${SCRIPT_NAME}.woa ...
echo ${JAVA_EXECUTABLE} ${JAVA_EXECUTABLE_ARGS} -classpath WOBootstrap.jar com.webobjects._bootstrap.WOBootstrap ${COMMAND_LINE_ARGS}
eval exec ${JAVA_EXECUTABLE} ${JAVA_EXECUTABLE_ARGS} -classpath WOBootstrap.jar com.webobjects._bootstrap.WOBootstrap ${COMMAND_LINE_ARGS}
So I had javamonitor trying to restart wotaskd which was waiting for things to happen. This did not allow proper startup. With the wait and extra time for javamonitor reboots work properly.
I think the apple wo 5.4.3 startups had some waiting; this is the Wonder versions I had to modify.
A wait maybe should be added to the Wonder wotaskd and JavaMonitor startup scripts.
I could be wrong, of course.
Greg Brown
email@hidden
--
email@hidden
_______________________________________________
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
--
Simon J. Oliver
MA (Cantab.)
CISSP-ISSAP, ISSMP, GWAPT, OSWP
Information, Architecture & Data Security Consultant
Applied Information Technology Center/SBBER
University of Memphis, TN
Phone: 901 313 4485
Skype: SJO0923
AIM/Yahoo: simonjoliver
_______________________________________________
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
_______________________________________________
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
_______________________________________________
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
--
With Kind Regards,
Dennis Gaastra,
WEBAPPZ® Systems, Inc.
(+1) 604.921.1333
www.webappz.com & www.scheduleDS.com & www.1tracker.com
This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. WEBAPPZ Systems, Inc., 726 - 1489 Marine Drive, West Vancouver, BC, CANADA V7T 1B8, www.webappz.com
_______________________________________________
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
--
With Kind Regards,
Dennis Gaastra,
WEBAPPZ® Systems, Inc.
(+1) 604.921.1333
www.webappz.com & www.scheduleDS.com & www.1tracker.com
This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses. The sender therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. If verification is required please request a hard-copy version. WEBAPPZ Systems, Inc., 726 - 1489 Marine Drive, West Vancouver, BC, CANADA V7T 1B8, www.webappz.com
|