Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

jsp image resize linix server

843836May 24 2005 — edited May 24 2005
hi , i'm trying to edit/resize an image using jakarta image tags library..

it works on my localhost windows but not on the webserver linux, linuxhas a problem as it doesn't have display classes (awt etc) anybody know how i should get this working?


here's my error
..........
exception 

javax.servlet.ServletException: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.
	org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:825)
	org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:758)
	org.apache.jsp.index_jsp._jspService(index_jsp.java:207)
	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)


root cause 

java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.
	sun.awt.X11GraphicsEnvironment.initDisplay(Native Method)
	sun.awt.X11GraphicsEnvironment.<clinit>(X11GraphicsEnvironment.java:134)
	java.lang.Class.forName0(Native Method)
	java.lang.Class.forName(Class.java:141)
	java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:62)
	java.awt.Font.initializeFont(Font.java:308)
	java.awt.Font.<init>(Font.java:344)
	org.apache.taglibs.image.TextTag.doEndTag(TextTag.java:72)
	org.apache.jsp.index_jsp._jspx_meth_img_text_0(index_jsp.java:269)
	org.apache.jsp.index_jsp._jspx_meth_img_image_0(index_jsp.java:236)
	org.apache.jsp.index_jsp._jspService(index_jsp.java:107)
	org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
	org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:324)
	org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
	org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
	javax.servlet.http.HttpServlet.service(HttpServlet.java:802)

.................
:)
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 21 2005
Added on May 24 2005
11 comments
177 views