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.    
http://www.global-village.net/products/practical_webobjects







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 protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to