Re: Can't launch from JavaMonitor
Re: Can't launch from JavaMonitor
- Subject: Re: Can't launch from JavaMonitor
- From: Chuck Hill <email@hidden>
- Date: Tue, 15 Mar 2011 13:33:04 -0700
On Mar 15, 2011, at 12:42 AM, John Baldwin wrote: I set up my application on a server, but when I try to launch it via JavaMonitor, I get:
/Local/Library/WebObjects/Applications/FAIdealDashboard.woa/FAIdealDashboard
java.io.IOException: error=12, Cannot allocate memory
This happens immediately, before any logging can occur. The application runs fine in development.
Initially, I was getting the same error when I tried to run the application from the command line on the server. So I changed the launch parameters in the UNIXClassPath.txt to set memory parameters, and then I could launch the application from the command line.
But still the application won't launch through JavaMonitor. Are there other steps I need to take to adjust the memory within WebObjects? (I've tried removing the application and adding the application and an instance, but to no avail.)
Add the memory setting to the Additional Arguments section in JavaMonitor. Is it possible that you are trying to allocate more memory than is supported under CentOS?
This is running on a CentOS system. The application is fully embedded.
When I run from the command line, I can connect to the application, but it throws an exception:
Error: | java.lang.IllegalArgumentException: Class 'Main' exists but is not a subclass of WOComponent. |
Main is a subclass of ERXComponent. I doubt this is related, but just in case.
That should indicate that ERXExtensions is not getting loaded first. It should be if Application extends ERXApplication and the main() function follows the Wonder pattern. Or it could mean your version of Wonder is old. :-)
Chuck
-- Chuck Hill Senior Consultant / VP Development
Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems.
|
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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