I think this is usually a permissions difference in the user that 
JavaMonitor/wotaskd is being run under vs what you a logged in as at the 
command line.

From: 
<webobjects-dev-bounces+chill=gevityinc....@lists.apple.com<mailto:webobjects-dev-bounces+chill=gevityinc....@lists.apple.com>>
 on behalf of Ricardo Parada <rpar...@mac.com<mailto:rpar...@mac.com>>
Date: Sunday, October 25, 2015 at 12:50 PM
To: WebObjects-Dev 
<webobjects-dev@lists.apple.com<mailto:webobjects-dev@lists.apple.com>>
Subject: Apps launch fine from the command line but not from JavaMonitor - 
CentOS 6.5


Is anybody familiary deploying on CentOS 6.5.  I just want to get the basic 
stuff working.  I have a simple WOnder app (TestApp.woa) with all frameworks 
embedded.  I have the apache, the WebObjects http adaptor, JavaMonitor and 
wotaskd running.

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_modulemodules/mod_WebObjects.so
WebObjectsDocumentRoot /var/www/html
WebObjectsAlias /apps/WebObjects

# Commented out this because I cannot get apps launched from
# JavaMonitor.
#WebObjectsConfig http://localhost:1085 10

# File configuration works fine
WebObjectsConfig file:///opt/Local/Library/WebObjects/Configuration/Apps.xml 10

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.



 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (Webobjects-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to