It seems that not all the JDK was installed, mainly the awt toolkit. This is
different from not finding an X server.
Best Regards,
Paulo Soares
----- Original Message -----
From: "Nairo Granados Martinez" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 04, 2003 23:43
Subject: [iText-questions] Problem settin Colors...
> Hi All,
>
> I'm creating PDF from a web application. The
> application work OK under Apache Tomcat on Linux and
> Windows.
>
> But I have a Problem: when I'm trying to set Color to
> anything on Windows works, but on linux just trhown an
> error.
>
> I trying to do this: e.g.
>
> Chunk ck = new Chunk("This text has a yellow
> background color",
> FontFactory.getFont(FontFactory.HELVETICA, 12));
> ck.setBackground(new Color(0xFF, 0xFF, 0x00)); on
> linux crash
>
> Table table = new Table(3);
> table.setBorderColor(new Color(0, 0, 255)); on linux
> crash
>
> As I told before on APache Tomcat for Windows is OK,
> but when I put it on Linux and run it it throwns this
> error:
>
> Error: 500
> Location: /pruebas/PDF/pruebaPDF.jsp
> Internal Servlet Error:
>
> javax.servlet.ServletException:
> /opt/j2sdk1.4.1_01/jre/lib/i386/libawt.so: libXp.so.6:
> cannot open shared object file: No such file or
> directory
> at
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:508)
> at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
> at
> org.apache.tomcat.core.Handler.service(Handler.java:287)
> at
> org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
> at
> org.apache.tomcat.core.ContextManager.internalService(ContextManager.jav
> a:812)
> at
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
> at
> org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(H
> ttpConnectionHandler.java:213)
> at
> org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416
> )
> at
> org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:50
> 1)
> at java.lang.Thread.run(Thread.java:536)
>
> Root cause:
> java.lang.UnsatisfiedLinkError:
> /opt/j2sdk1.4.1_01/jre/lib/i386/libawt.so: libXp.so.6:
> cannot open shared object file: No such file or
> directory
> at java.lang.ClassLoader$NativeLibrary.load(Native
> Method)
> at
> java.lang.ClassLoader.loadLibrary0(ClassLoader.java:1473)
> at
> java.lang.ClassLoader.loadLibrary(ClassLoader.java:1389)
> at java.lang.Runtime.loadLibrary0(Runtime.java:788)
> at java.lang.System.loadLibrary(System.java:832)
> at
> sun.security.action.LoadLibraryAction.run(LoadLibraryAction.java:50)
> at java.security.AccessController.doPrivileged(Native
> Method)
> at java.awt.Toolkit.loadLibraries(Toolkit.java:1401)
> at java.awt.Toolkit.(Toolkit.java:1422)
> at java.awt.Color.(Color.java:250)
> at prueba.PruebaPDF.setCrearPDF(PruebaPDF.java:137)
> at
> pruebas.PDF._0002fpruebas_0002fPDF_0002fpruebaPDF_0002ejsppruebaPDF_jsp_
> 0._jspService(_0002fpruebas_0002fPDF_0002fpruebaPDF_0002ejsppruebaPDF_js
> p_0.java:98)
> at
> org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119)
> at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> org.apache.jasper.servlet.JspServlet$JspCountedServlet.service(JspServle
> t.java:130)
> at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServle
> t.java:282)
> at
> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:429)
> at
> org.apache.jasper.servlet.JspServlet.service(JspServlet.java:500)
> at
> javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
> at
> org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:405)
> at
> org.apache.tomcat.core.Handler.service(Handler.java:287)
> at
> org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
> at
> org.apache.tomcat.core.ContextManager.internalService(ContextManager.jav
> a:812)
> at
> org.apache.tomcat.core.ContextManager.service(ContextManager.java:758)
> at
> org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(H
> ttpConnectionHandler.java:213)
> at
> org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416
> )
> at
> org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:50
> 1)
> at java.lang.Thread.run(Thread.java:536)
>
> Somebody could help me???
>
> Thanks in advance,
>
> Nairo Granados
>
> __________________________________
> Do you Yahoo!?
> SBC Yahoo! DSL - Now only $29.95 per month!
> http://sbc.yahoo.com
>
>
> -------------------------------------------------------
> This SF.Net email sponsored by: Free pre-built ASP.NET sites including
> Data Reports, E-commerce, Portals, and Forums are available now.
> Download today and enter to win an XBOX or Visual Studio .NET.
> http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
> _______________________________________________
> iText-questions mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/itext-questions
>
-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100006ave/direct;at.asp_061203_01/01
_______________________________________________
iText-questions mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/itext-questions