I think it is because you are running headless but your app references
some client side Java stuff JavaEOApplication.framework?
On Mar 4, 2008, at 1:31 PM, Joshua Archer wrote:
I've run the instance at the command line with the following command:
/Library/WebObjects/Applications/Pachyderm2.woa/Pachyderm2 -WOPort
2001 -WOCachingEnabled NO -WODebuggingEnabled NO -WOOutputPath /
private/tmp/Pachyderm2-1 -WOAutoOpenInBrowser NO -
WOAutoOpenClientApplication NO -WOLifebeatInterval 30 -
WOLifebeatEnabled YES -WOLifebeatDestinationPort 1085 -WOAdaptor
WODefaultAdaptor -WOWorkerThreadCount 8 -WOListenQueueSize 128 -
WOWorkerThreadCountMin 16 -WOWorkerThreadCountMax 256 -
NSProjectSearchPath '()' -WOSessionTimeOut 3600 -WOApplicationName
Pachyderm2 -WOMonitorEnabled YES -WONoPause YES
WOAllowConcurrentRequestHandling YES -Xmx1440m -XX:NewSize=5m -
Xms360m -Djava.awt.headless=true
and I'm getting the following errors:
[2008-03-04 13:30:07 PST] <main> java.awt.HeadlessException
at
java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:
159)
at java.awt.Window.<init>(Window.java:318)
at java.awt.Frame.<init>(Frame.java:419)
at javax.swing.JFrame.<init>(JFrame.java:194)
at
com
.webobjects
.eoapplication
.EOUserInterfaceParameters
._populateValuesWithDefaults(EOUserInterfaceParameters.java:201)
at
com
.webobjects
.eoapplication
.EOUserInterfaceParameters.<clinit>(EOUserInterfaceParameters.java:
157)
at com.webobjects.eotool.EOToolFactory.<clinit>(EOToolFactory.java:
46)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at
com
.webobjects
.foundation._NSUtilities._classWithPartialName(_NSUtilities.java:307)
at
com
.webobjects.foundation._NSUtilities.classWithName(_NSUtilities.java:
291)
at
com.webobjects.foundation.NSBundle.initPrincipalClass(NSBundle.java:
2553)
at
com
.webobjects.foundation.NSBundle.InitPrincipalClasses(NSBundle.java:
710)
at com.webobjects.foundation.NSBundle.<clinit>(NSBundle.java:368)
at
com
.webobjects
.appserver
._private.WOProperties.initUserDefaultsKeys(WOProperties.java:187)
at
com.webobjects.appserver.WOApplication._initWOApp(WOApplication.java:
5081)
at com.webobjects.appserver.WOApplication.<init>(WOApplication.java:
551)
at org.pachyderm.authoring.Application.<init>(Application.java:127)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at
sun
.reflect
.NativeConstructorAccessorImpl
.newInstance(NativeConstructorAccessorImpl.java:39)
at
sun
.reflect
.DelegatingConstructorAccessorImpl
.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at com.webobjects.appserver.WOApplication.main(WOApplication.java:
323)
at org.pachyderm.authoring.Application.main(Application.java:112)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun
.reflect
.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun
.reflect
.DelegatingMethodAccessorImpl
.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.webobjects._bootstrap.WOBootstrap.main(WOBootstrap.java:87)
[2008-03-04 13:30:07 PST] <main> A fatal exception occurred: null
[2008-03-04 13:30:07 PST] <main> java.lang.ExceptionInInitializerError
at com.webobjects.eotool.EOToolFactory.<clinit>(EOToolFactory.java:
46)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:164)
at
com
.webobjects
.foundation._NSUtilities._classWithPartialName(_NSUtilities.java:307)
at
com
.webobjects.foundation._NSUtilities.classWithName(_NSUtilities.java:
291)
at
com.webobjects.foundation.NSBundle.initPrincipalClass(NSBundle.java:
2553)
at
com
.webobjects.foundation.NSBundle.InitPrincipalClasses(NSBundle.java:
710)
at com.webobjects.foundation.NSBundle.<clinit>(NSBundle.java:368)
at
com
.webobjects
.appserver
._private.WOProperties.initUserDefaultsKeys(WOProperties.java:187)
at
com.webobjects.appserver.WOApplication._initWOApp(WOApplication.java:
5081)
at com.webobjects.appserver.WOApplication.<init>(WOApplication.java:
551)
at org.pachyderm.authoring.Application.<init>(Application.java:127)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native
Method)
at
sun
.reflect
.NativeConstructorAccessorImpl
.newInstance(NativeConstructorAccessorImpl.java:39)
at
sun
.reflect
.DelegatingConstructorAccessorImpl
.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:494)
at java.lang.Class.newInstance0(Class.java:350)
at java.lang.Class.newInstance(Class.java:303)
at com.webobjects.appserver.WOApplication.main(WOApplication.java:
323)
at org.pachyderm.authoring.Application.main(Application.java:112)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun
.reflect
.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun
.reflect
.DelegatingMethodAccessorImpl
.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at com.webobjects._bootstrap.WOBootstrap.main(WOBootstrap.java:87)
Caused by: java.awt.HeadlessException
at
java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:
159)
at java.awt.Window.<init>(Window.java:318)
at java.awt.Frame.<init>(Frame.java:419)
at javax.swing.JFrame.<init>(JFrame.java:194)
at
com
.webobjects
.eoapplication
.EOUserInterfaceParameters
._populateValuesWithDefaults(EOUserInterfaceParameters.java:201)
at
com
.webobjects
.eoapplication
.EOUserInterfaceParameters.<clinit>(EOUserInterfaceParameters.java:
157)
... 25 more
I'm not sure why I'm getting the headless exception, but it appears
to be the culprit.
Begin forwarded message:
From: Miguel Arroz <[EMAIL PROTECTED]>
Date: March 4, 2008 11:07:16 AM PST
To: [EMAIL PROTECTED]
Subject: Re: Stupid question
Reply-To: [EMAIL PROTECTED]
Hi!
What I generally do is accessing the WOMonitor detail page,
copying the whole command line arguments string and testing with
that on the command line, to make sure I'm executing the very same
command.
If this doesn't help, check Chuck's response.
Yours
Miguel Arroz
On 2008/03/04, at 18:13, Joshua Archer wrote:
Hey all,
I've got a WO application (5.3, developed w/ Eclipse on Leopard
desktop, deployed on Tiger server) that starts up fine in from the
command line, but when I try to run it from the javamonitor, it
just dies before it starts and it outputs no log files. I can't
find any default log files from WO generated by the javamonitor,
and so I'm finding myself at a loss as to how to figure out why
the app doesn't like javamonitor or vice versa. Does anyone have
any advice about what to turn on / configure / etc. to get more
feedback as to why my app is dying (especially since it runs just
fine at the command line)?
Thanks (and if this is in the FAQ, feel free to just send me the
link and I'll leave you alone).
Joshua
Miguel Arroz
http://www.terminalapp.net
http://www.ipragma.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-deploy mailing list (Webobjects-
[EMAIL PROTECTED])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-deploy/chill%40global-village.net
This email sent to [EMAIL PROTECTED]
--
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
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-deploy mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-deploy/archive%40mail-archive.com
This email sent to [EMAIL PROTECTED]