Ok, I get it!!!!

Finally I decided to install JAVA again:

Before I had JDK 1.5 with Tomcat 5.5.9, they were working well but I really
don´t know what happend when I had to restart the server phisically and the
graphics never comes up again.

I was trying a lot of things to fix the problem, I tryed
with -Djava.awt.headless=true property, with Xvfb but none of both works for
me, so one of the last things I was thinking to do was to install the JPA
Toolkit, I downloaded it and try to test it with a demo it has and again in
my Windows system works fine but in linux doesn´t; reading in JPA Forums I
understand it doesn´t work with JDK 1.5 so my next bet was to install jdk
1.4 and try to make JPA works, maybe with it my graphics goes up again, but
when I install jdk 1.4 I probe my app and I get the graphics again so I was
wonder becouse I don´t really install JPA Toolkit.

So I thing the JDK 1.5 was corrupted or something similar and that´s why
when I install jdk 1.4 it works again.

As I don´t have a very nice reason to mantain JDK 1.5 and jdk 1.4 is working
ok, then I have decided to keep jdk 1.4. alive with -Djava.awt.headless=true
property setted of course .

Thanks to all who dedicated a minute (or minutes :D )to read my posts

Mauricio Fernández A.
Ingeniero de Sistemas
U. Autónoma de Manizales

-----Mensaje original-----
De: Mauricio Fernandez A. [mailto:[EMAIL PROTECTED]
Enviado el: martes, 11 octubre, 2005 19:12
Para: Tomcat Users List
Asunto: RE: Problems with graphics on Tomcat 5.5.9 OK!!! BUT.....


I know the best way to set up this is by using -Djava.awt.headless=true but
I had been tryin almost everything. The problem is my server is a remote
rack server so it doesn´t have any display hw and as the -Djava... option
seems desn´t work for me i am trying to use the Xvfb.

By the way, could it be ok reboot the server in level 5?, does it have
sense?

Mauricio Fernández A.
Ingeniero de Sistemas
U. Autónoma de Manizales

-----Mensaje original-----
De: David Delbecq [mailto:[EMAIL PROTECTED]
Enviado el: martes, 11 octubre, 2005 16:50
Para: Tomcat Users List
Asunto: Re: Problems with graphics on Tomcat 5.5.9 OK!!! BUT.....


Hello, if, like i suppose from your various errors, jfreechart require
awt/swing api and do draw on it,
you need to run the tomcat server inside a X server, not only do you
need to have fonts
installed and corresponding X libraries (like your link suggest was
problem), you also need to
to have X server running and DISPLAY envirronement variable set accordingly.

I would first suggest you start tomcat with
CATALINA_OPT="-Djava.awt.headless=true"
If, like i suppose will be the case, you get HeadlessExceptions when
running like this, this mean
you definitly need to run tomcat server inside a X environment.

regards
David Delbecq
Mauricio Fernandez A. a écrit :

>Thanks for your help
>
>Now I have reinstalled the XFree86 completly including the Xvfb and I can
>start it (XVfb), to test if it is running I execute a xclock and I don´t
get
>any error, so I think it is running ok
>
>However, now, when I try to get the jsp wich must show a graphic I get
>another different error:
>
>
>java.lang.NoClassDefFoundError
>       org.jfree.chart.ChartFactory.createBarChart3D(ChartFactory.java:764)
>
com.Prueba.comandos.Graficador2.crearBarChart3DVertical(Graficador2.java:19
>6)
>
org.apache.jsp.jsp.grafica_jsp._jspService(org.apache.jsp.jsp.grafica_jsp:1
>67)
>       org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
>       javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>....
>
>
>And in another web app in the same server the error is:
>
>
>java.lang.NoClassDefFoundError
>       java.lang.Class.forName0(Native Method)
>       java.lang.Class.forName(Class.java:164)
>       java.awt.Toolkit$2.run(Toolkit.java:821)
>       java.security.AccessController.doPrivileged(Native Method)
>       java.awt.Toolkit.getDefaultToolkit(Toolkit.java:804)
>       com.actelion.control.Graficador.asignarBackground(Graficador.java:97)
>       
> com.actelion.control.Graficador.crearBarChartVertical(Graficador.java:524)
>
org.apache.jsp.jsp.graficaVisitasMedicasEspecialidadCategoria_jsp._jspServi
>ce(org.apache.jsp.jsp.graficaVisitasMedicasEspecialidadCategoria_jsp:198)
>       org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97)
>       javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
>....
>
>
>So having in mind that before Xvfb Installation the error was:
>
>http://www.jfree.org/phpBB2/viewtopic.php?t=14319
>
>I think I am just with another different problem.
>
>Can somebody understand this?
>
>Thanks
>
>Mauricio Fernandez
>
>
>
>
>
>>>
>>>
>>>
>
>Hi Mauricio,
>
>I had the same problem. The solution is as follows:
>
>1. Download and install a virtual frame buffer
>   Where to find and how to install:
>
http://testdrive.mapinfo.com/TECHSUPP/MIPROD.NSF/0/a832a07452b9a0e385256f
>8000760f68?OpenDocument
>
>2. Do not forget to create a script to start xvfb - you will find the
script
>under the link above
>
>3. Edit the startup.sh or catalina.sh as follows:
>
>#export DISPLAY
>export DISPLAY=<IP_of_your_machine_where_Tomcat_is_running>:0.0
>export CATALINA_OPTS="-Djava.awt.headless=false"
>
>4. Start xvfb
>
>5. Restart Tomcat
>
>
>************************************
>Mit freundlichem Gruß / kind regards
>
>Aliye Edao
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to