@rjrohr: "I am using cewolf which uses JFreeChart to display graphs via JSP. All works
fine in the WebSphere Test Environment but when I try to run it on an actual
iSeries WebSphere Server 5.1.C I get
SRVE0026E: [Servlet Error]-[AWT class or API used without specifying
property os400.awt.native=true or java.awt.headless=true]:
java.awt.AWTError: AWT class or API used without specifying property
os400.awt.native=true or java.awt.headless=true at
java/lang/Throwable.<init>(Throwable.java:195) at
java/lang/Error.<init>(Error.java:49) at
java/awt/AWTError.<init>(AWTError.java:30) at
com/ibm/as400/system/NoGraphicsEnvironment.<init>(NoGraphicsEnvironment.java
:48) at
sun/reflect/NativeConstructorAccessorImpl.newInstance(NativeConstructorAcces
sorImpl.java:39) at
sun/reflect/DelegatingConstructorAccessorImpl.newInstance(DelegatingConstruc
torAccessorImpl.java:27) at
java/lang/reflect/Constructor.newInstance(Constructor.java:274) at
java/lang/Class.newInstance0(Class.java:308) at
java/lang/Class.newInstance(Class.java:261) at
java/awt/GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment
.java:62) at java/awt/Font.initializeFont(Font.java:308) at
java/awt/Font.<init>(Font.java:344) at
org/jfree/chart/axis/AxisConstants.<clinit>(Unknown Source) at
org/jfree/chart/axis/Axis.<init>(Unknown Sou  <truncated>
Anyone had a similar problem or can help. Thanks"
    @francess: "If you are merely using an AWT class or API without really requiring AWT 
support (for displaying ot iSeries), you need to set the "headless" 
property as indicated in the error text: java.awt.headless=true
If you are actually trying to use AWT support to display, you need to 
enable AWT support. This is documented in the iSeries Information 
Center, Java section. See 
<url>
<quote>"
    @rjrohr: "Thanks, I am using the websphere Server which generates graphics for display
in the web browser so I was wondering if you could clarify which of the two
options below would be approriate....
Also I was wondering if you could set this headless=true property somewhere
in the WebSphere Application Server Administrative Console?
Thanks for your help.
news:c5m523$6ha0$<email_address>
<quote>
works
actual
com/ibm/as400/system/NoGraphicsEnvironment.<init>(NoGraphicsEnvironment.java
sun/reflect/NativeConstructorAccessorImpl.newInstance(NativeConstructorAcces
sun/reflect/DelegatingConstructorAccessorImpl.newInstance(DelegatingConstruc
java/awt/GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment"
    @francess: "I am afraid I don't know which one is appropriate. I would try the 
easiest one first, which is the headless property.
To set a JVM System Property (which this is) for an application server 
do the following from the admin console:
Expand Servers and select Application servers
Click the link for your application server
Click the link for Process Definition
Click the link for Java Virtual Machine
Click the link for Custom Properties
Specify the property to set in the Name field andthe value in the value 
field. The Required field is not necessary and relatively meaningless. 
Description is optional.
Click Ok and save your changes.
Restart the application server to pick up the property.
<quote>"
    @rjrohr: "THANKS!
   setting java.awt.headless=true in webpshere did the trick!
Now I have the same problem with my Tomcat server (in-process).
(You wouldn't happen to know how to set that one?)
Thanks for your help!
news:c78b7f$6kki$<email_address>
<quote>
display
two
somewhere
com/ibm/as400/system/NoGraphicsEnvironment.<init>(NoGraphicsEnvironment.java
sun/reflect/NativeConstructorAccessorImpl.newInstance(NativeConstructorAcces
sun/reflect/DelegatingConstructorAccessorImpl.newInstance(DelegatingConstruc
java/awt/GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment"
{'source': 'USENET', 'other_information': '{"reply_count": 4, "forum_name": "ibm.software.websphere.application-server.as400.20140428.mbox"}', 'file': 'data/output/usenet-ibm.software.parquet'}