Thanks Randy,

I modified catalina.sh file inserting
if [ -z "$CATALINA_OPTS" ] ;
then  CATALINA_OPTS="-Djava.awt.headless=true" #### headless support

fi ..

restarted the server and I get the following exception:

java.awt.HeadlessException
           at
java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:121)
           at java.awt.Window.(Window.java:251)
           at java.awt.Frame.(Frame.java:398)
           at java.awt.Frame.(Frame.java:363)
           at HelloGraphics.doGet(HelloGraphics.java:19)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
           at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
           at
org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:446)

           at
org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:180)

Any idea of what I'm doing whrong here! many thanks in advance. vasile



                                                                                       
         
                    Randy Layman                                                       
         
                    <randy.layman@aswe        To:     'Tomcat Users List'              
         
                    think.com>                <[EMAIL PROTECTED]>         
         
                                              cc:                                      
         
                    02/08/02 11:07 AM         Subject:     RE: Tomcat and j2se1.4 with 
headless 
                    Please respond to         support                                  
         
                    "Tomcat Users                                                      
         
                    List"                                                              
         
                                                                                       
         
                                                                                       
         





           I haven't tried it, but this should work.  The -D option is just
like the -X options that people use for setting the heap memory.  Add it to
CATALINA_OPTS (or TOMCAT_OPTS for those running TC3), restart and you
should
be running just fine.

           Randy


> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 08, 2002 11:47 AM
> To: Tomcat Users List
> Subject: Tomcat and j2se1.4 with headless support
>
>
> I have Tomcat 4.0.1 with j2se 1.4 running on Solaris 7, and
> some of the
> servlets
> running will generate images.
>
> Is there special setting in Tomcat to take advantage of the new
> environment with a headless implementation in j2se 1.4.
>
> AWT documentation says:
> To run our environment with a headless implementation, the
> follow property
> may be specified at
>           the java command line:
>
>             -Djava.awt.headless=true
>
> This command should be added at CATALINA_OPTS?
> Any idea will be appreciated. vasile
>
>
>
> --
> To unsubscribe:   <mailto:[EMAIL PROTECTED]>
> For additional commands: <mailto:[EMAIL PROTECTED]>
> Troubles with the list: <mailto:[EMAIL PROTECTED]>
>

--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>






--
To unsubscribe:   <mailto:[EMAIL PROTECTED]>
For additional commands: <mailto:[EMAIL PROTECTED]>
Troubles with the list: <mailto:[EMAIL PROTECTED]>

Reply via email to