• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Apps launch fine from the command line but not from JavaMonitor - CentOS 6.5
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Apps launch fine from the command line but not from JavaMonitor - CentOS 6.5


  • Subject: Re: Apps launch fine from the command line but not from JavaMonitor - CentOS 6.5
  • From: Chuck Hill <email@hidden>
  • Date: Sun, 25 Oct 2015 21:52:59 +0000
  • Thread-topic: Apps launch fine from the command line but not from JavaMonitor - CentOS 6.5

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=email@hidden> on behalf of Ricardo Parada <email@hidden>
Date: Sunday, October 25, 2015 at 12:50 PM
To: WebObjects-Dev <email@hidden>
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      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Apps launch fine from the command line but not from JavaMonitor - CentOS 6.5 (From: Ricardo Parada <email@hidden>)

  • Prev by Date: Apps launch fine from the command line but not from JavaMonitor - CentOS 6.5
  • Next by Date: Re: El Capitan - setting java timezone
  • Previous by thread: Apps launch fine from the command line but not from JavaMonitor - CentOS 6.5
  • Next by thread: Re: Apps launch fine from the command line but not from JavaMonitor - CentOS 6.5
  • Index(es):
    • Date
    • Thread