2013-07-30 43 views
0

有沒有人在使用Xvfb的solaris上成功測試Oracle Outside?錯誤信息是一些珍貴的東西,我不確定什麼配置是問題。使用Xvfb在Solaris上測試Oracle OutsideIn ImageExport

過程

  • 編輯的/ usr/openwin /服務器的/ etc/OWconfig

class="XDISPLAY" name="99" coreKeyboard="IKBD" corePointer="ps22b" listOfScreens="stvga"; et...

  • 開始的Xvfb:的Xvfb:99 -ac
  • 開始窗口管理器: metacity --display:99 -sm-disable --replace
  • 設置字體路徑到所有的字體目錄
  • 運行測試
  • 得到錯誤:SCCERR_DISPLAYOPENFAILED 0x087/*無法打開顯示器(XOpenDisplay失敗)*/
+0

運行測試時您是否將DISPLAY環境變量設置爲「:99」,以便XOpenDisplay知道要打開哪個變量? – alanc

回答

0

我發現我不得不通過DISPLAY下來萬無一失。我認爲它會從上層外殼拾取它,但我錯了。由surefire產生的新shell會處理標準的shell初始化腳本,並且缺少構建機器上的變量。

<plugin> 
     <groupId>org.apache.maven.plugins</groupId> 
     <artifactId>maven-surefire-plugin</artifactId> 
    <configuration> 
     <environmentVariables> 
      <GDFONTPATH>${localFontDir}</GDFONTPATH>    
      <DISPLAY>${env.DISPLAY}</DISPLAY>    
     </environmentVariables> 
    </configuration> 

    </plugin>` 
相關問題