Re: Tiger Server Problems
Re: Tiger Server Problems
- Subject: Re: Tiger Server Problems
- From: Karl <email@hidden>
- Date: Tue, 3 May 2005 06:12:53 -0400
Just add this to your Properties file in your project or directly in
the Resources directory of your .woa.
java.awt.headless = true
JFreeChart definitely needs this to run headless unless you want to
'fake' a framebuffer with Remote Desktop or X11!
Karl
On 2-May-05, at 11:25 PM, James Cicenia wrote:
Yes...
I vaguely remember that now as I am using jFreeChart....
Where do I find that property again?
thanks,
- james cicenia
On May 2, 2005, at 10:13 PM, Mike Schrag wrote:
Definitely awt is firing up ... com.tos.Application (line 26) is
class-loading java.awt.Color, which, like many other awt classes
(like Dimension, which you would never expect) try to fire up the
Toolkit, which need to be "headful". Make sure you set the system
property java.awt.headless=true and it shouldn't have this
problem, though I ran into a case where Dimension seemed to ignore
me in a particular situation I had. In general, though, that
system prop should work.
On May 2, 2005, at 11:05 PM, Karl wrote:
WO doesn't...but many other frameworks do. Jasper for reporting
tends to. Many others unless they are running -headless
Its worth checking out in case something 'changed'.
Karl
On 2-May-05, at 10:52 PM, James Cicenia wrote:
I don't think so. My apps are all currently running on XServes
with no monitor. I am testing out a mac-mini implementation.
Also, not sure
what in WebOBjects would invoke AWT?
- james cicenia
On May 2, 2005, at 9:30 PM, Karl wrote:
It looks horribly like you have something requiring framebuffer
access. Are you sure that there is nothing requiring AWT
access in there?
Karl
On 2-May-05, at 10:22 PM, James Cicenia wrote:
OK -
After changing some owners to appserver and following
Jonathan's lead I actually got much
farther along. I got death vs infinite purgatory.
So now I get this permission issue, however, what is a windows
server?!
Loading /Library/WebObjects/Applications/TOSDevelopment.woa/
Contents/MacOS/MacOSClassPath.txt
Generated classpath:
/Library/WebObjects/Applications/TOSDevelopment.woa/Contents/
Resources/Java/
/Library/WebObjects/Applications/TOSDevelopment.woa/Contents/
Resources/Java/tosdevelopment.jar
/System/Library/Frameworks/JavaDTWGeneration.framework/
Resources/Java/javadtwgeneration.jar
/System/Library/Frameworks/JavaDirectToWeb.framework/
Resources/Java/javadirecttoweb.jar
/System/Library/Frameworks/JavaEOAccess.framework/Resources/
Java/javaeoaccess.jar
/System/Library/Frameworks/JavaEOControl.framework/Resources/
Java/javaeocontrol.jar
/System/Library/Frameworks/JavaEOProject.framework/Resources/
Java/javaeoproject.jar
/System/Library/Frameworks/JavaFoundation.framework/
Resources/Java/javafoundation.jar
/System/Library/Frameworks/JavaJDBCAdaptor.framework/
Resources/Java/javajdbcadaptor.jar
/System/Library/Frameworks/JavaWOExtensions.framework/
Resources/Java/JavaWOExtensions.jar
/System/Library/Frameworks/JavaWOJSPServlet.framework/
Resources/Java/javawojspservlet.jar
/System/Library/Frameworks/JavaWebObjects.framework/
Resources/Java/javawebobjects.jar
/System/Library/Frameworks/JavaXML.framework/Resources/Java/
javaxml.jar
/System/Library/Frameworks/MyEOPrototypes.framework/
Resources/Java/myeoprototypes.jar
/Library/WebObjects/Extensions/axis-ant.jar
/Library/WebObjects/Extensions/axis.jar
/Library/WebObjects/Extensions/commons-discovery.jar
/Library/WebObjects/Extensions/commons-logging.jar
/Library/WebObjects/Extensions/jaxrpc.jar
/Library/WebObjects/Extensions/log4j-1.2.4.jar
/Library/WebObjects/Extensions/saaj.jar
/Library/WebObjects/Extensions/wsdl4j.jar
/Library/WebObjects/Extensions/
java.lang.InternalError: Can't connect to window server - not
enough permissions.
at java.lang.ClassLoader$NativeLibrary.load(Native
Method)
at java.lang.ClassLoader.loadLibrary0(ClassLoader.java:
1586)
at java.lang.ClassLoader.loadLibrary(ClassLoader.java:
1503)
at java.lang.Runtime.loadLibrary0(Runtime.java:788)
at java.lang.System.loadLibrary(System.java:834)
at sun.security.action.LoadLibraryAction.run
(LoadLibraryAction.java:50)
at java.security.AccessController.doPrivileged(Native
Method)
at java.awt.Toolkit.loadLibraries(Toolkit.java:1437)
at java.awt.Toolkit.<clinit>(Toolkit.java:1458)
at java.awt.Color.<clinit>(Color.java:250)
at com.tos.Application.<clinit>(Application.java:26)
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:324)
at com.webobjects._bootstrap.WOBootstrap.main
- j -
On May 2, 2005, at 6:05 PM, Chuck Hill wrote:
On May 2, 2005, at 1:43 PM, James Cicenia wrote:
OK -
I have installed Tiger Server on my new Mac Mini and placed
it at the colo.
The first problem I had was with mySQL. It is 4.1 now and
phpMyAdmin 2.6.2
couldn't talk to it. Turns out you have to set the passwords
to be the Old version
in mysql with the command old_password('password').
OK - got beyond that. Clicked my services to startup
WebObjects and boom it
started and I can access my java monitor just fine.
Now my existing applications... I have the same config as my
existing setup,
however, when I click start in monitor.. it just goes into a
loop, up and down and
up and down. I can't stop it. I get no "death" and it
doesn't even output anything
to my /tmp/launch.txt startup log!??
Anybody have any ideas for me. I am a bit tired at this
point and don't know where
to look or can even remember to look.
That might be a permissions problem on the app itself or on
the output path. How are you sending output to /tmp/
launch.txt?
Chuck
--
Practical WebObjects - a book for intermediate WebObjects
developers who want to increase their overall knowledge of
WebObjects, or those who are trying to solve specific
application development problems.
http://www.global-village.net/products/practical_webobjects
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40mac.com
This email sent to email@hidden
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40mdimension.com
This email sent to email@hidden
_______________________________________________
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