In a nutshell, the app runs just fine from the command line but it won’t start from JavaMonitor. The TestApp keeps dying. It does not even get to log anything under /opt/Local/Library/WebObjects/Logs. It is as if JavaMonitor did not even try to run it.
On the other hand, if I run the application from the command line I can direct connect to it. I’ve spent many hours and I cannot figure it out.
If I go to a static file configuration by changing my /etc/httpd/conf.d/webobjects.conf file as follows:
LoadModule WebObjects_module modules/mod_WebObjects.so
WebObjectsDocumentRoot /var/www/html
WebObjectsAlias /apps/WebObjects
# Commented out this because I cannot get apps launched from
# JavaMonitor.
# File configuration works fine
WebObjectsLog /tmp/WebObjects.log Debug
My /opt/Local/Library/WebObjects/Configuration/Apps.xml file is as follows:
<?xml version="1.0" encoding="ASCII"?>
<adaptor>
<application name=“TestApp" urlVersion="4">
<instance id="1" port="2001" host="localhost"/>
</application>
</adaptor>
I then restart apache and run my TestApp from the command line:
# cd /opt/Local/Library/WebObjects/Applications/TestApp.woa/
# ./TestApp -WOPort 2001
After this I can connect through the web server, i.e. http://host/apps/WebObjects/TestApp or using direct connect, i.e. http://host:2001.
Please let me know if you have any suggestions on what to try to help debug the problem.