Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Struts - A MVC web framework
Tomcat - JSP/Servlet container
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
JSP - A mailing list about Java Server Pages specification and reference
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Oracle Connection Pooling in 3 2 2
Servlet : Session invalidate
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Tomcat and webapplication specific java library path
Running a Simple JMS Example
Mapping in workers2 properties
org apache jasper JasperException
Cannot find message resources under key org apache struts action
   MESSAGE
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
url string for connecting jboss to oracle
Value attribute of <html:checkbox
javax servlet ServletException: BeanUtils populate
HTTP Status 404 The requested resource is not available
5 0 18: Windows XP Pro vs Windows 2000
 
Off-topic - Java and X11 Window Server

Off-topic - Java and X11 Window Server

2004-01-07       - By Lawrence, Gabriel

 Back
Reply:     1     2     3     4     5     6     7  

If you are running java 1.4 you might be better off setting it up to run in a
headless environment. I add this to my JAVA_OPTS when running startup.sh for
tomcat to do this:

JAVA_OPTS="-Djava.awt.headless=true"


Cheers,
-gabe

-- --Original Message-- --
From: Patrick Willart [mailto:patrick@(protected)]
Sent: Wednesday, January 07, 2004 11:26 AM
To: Jose Euclides da Silva Junior - DATAPREVRJ; 'Tomcat Users List'
Subject: RE: Off-topic - Java and X11 Window Server


Dear Jose,

This is the document that put me on the right track. Set the DISPLAY variable
as an environment variable for the user that start Tomcat. The variable has to
be set before Tomcat is started

<snippet of document>
To run Xvfb in a manner that pleases Java, try:

/usr/X11R6/bin/Xvfb :1 -screen 0 800x600x24

This will create a virtual display at :1.0 with a size of 800 by 600 pixels and
a color depth of 24 bits. To ensure that Java draws to this display, you must
set the DISPLAY environment variable to :1.0 before invoking Java.  If Java
throws any X11Environment exceptions, try changing the color  depth or screen
size. In my experience 16 or 24 bits has always worked. </snippet of document>

grts,

Patrick

-- --Original Message-- --
From: Jose Euclides da Silva Junior - DATAPREVRJ [mailto:Jose.Euclides
@(protected)]
Sent: Wednesday, January 07, 2004 11:51 AM
To: 'Tomcat Users List'; 'patrick@(protected)'
Subject: RES: Off-topic - Java and X11 Window Server


Dear Patrick,
Where (and HOW ) should i set it?
Thanks in advance,
Jos� Euclides Junior
Projeto DOP201
Infra-estrutura J2EE para as aplica��es corporativas da Previd�ncia Social


-- --Mensagem original-- --
De: Patrick Willart [mailto:patrick@(protected)]
Enviada em: quarta-feira, 7 de janeiro de 2004 16:51
Para: Tomcat Users List
Assunto: RE: Off-topic - Java and X11 Window Server


I am not an expert on any *nix system, but faced the same problem once.

I had to set to DISPLAY varirable to :1.0 (export DISPLAY=:1.0). It is
important that this is set for the same user that is running Tomcat.

grts,

Patrick

-- --Original Message-- --
From: Jose Euclides da Silva Junior - DATAPREVRJ [mailto:Jose.Euclides
@(protected)]
Sent: Wednesday, January 07, 2004 10:55 AM
To: 'tomcat-user@(protected)'
Subject: Off-topic - Java and X11 Window Server


Hi guys,
Have anybody ever seen this error before? The X11 seems to be alive at my
environment --> Conectiva Linux. The target Java app,GraficoBig, works with a
free package, called org.jfree.char and org.jfree.gui.

500 Internal Server Error
java.lang.InternalError Source code of java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the
value of the DISPLAY variable.
  at sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
  at
sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:54)
  at java.lang.Class Source code of java.lang.Class(Native Method)
  at java.lang.Class Source code of java.lang.Class(Class.java:115)
  at java.awt.GraphicsEnvironment Source code of java.awt.GraphicsEnvironment(GraphicsEnvironment
.java:53)
  at java.awt.Window Source code of java.awt.Window<init>(Window.java:183)
  at java.awt.Frame Source code of java.awt.Frame<init>(Frame.java:310)
  at java.awt.Frame Source code of java.awt.Frame<init>(Frame.java:289)
  at javax.swing.JFrame Source code of javax.swing.JFrame<init>(JFrame.java:167)
  at org.jfree.ui.ApplicationFrame Source code of org.jfree.ui.ApplicationFrame<init>(Unknown Source)
  at mypackage2.GraficoBig.<init>(GraficoBig.java:26)
  at _Jspbig._jspService(_Jspbig.java:128)
  [SRC:Jspbig.jsp:118]
regards,
Jos� Euclides Junior
Projeto DOP201
Infra-estrutura J2EE para as aplica��es corporativas da Previd�ncia Social



-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)


-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)



-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)


-- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ---- ------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)




©2008 junlu.com - Jax Systems, LLC, U.S.A.