---
title: "weblogic816 部署WEBGIS后不能显示地图的解决办法 "
author: "ahut9923"
date: "2015-04-03T09:58:14Z"
tags: []
categories: ["企业架构"]
slug: "weblogic816-webgis"
draft: false
lastmod: "2015-04-03T09:58:14Z"
id: 2198601
url: "https://ahut9923.iteye.com/blog/2198601"
---

部署WEBGIS后，后台出现如下错误提示：

2010-12-03 19:00:41 \[com.mapinfo.mxj]-\[ERROR] Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.  
javax.servlet.ServletException: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.  
        at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:532)

出现该错误原因是mapxtreme在渲染时不能连接linux的X11 windows服务。

解决办法：

修改startWebLogic.sh文件的配置参数（一般在文件的最后一行），修改格式如下：

   在 -Dweblogic.Name=前面增加 

 **-Djava.awt.headless=true**