,同時採用的getServletContext()。getRealPath( 「」)在WebSphere Application Server返回null自由
的getServletContext()。getRealPath( 「」)
檢索路徑,服務器返回
.... metadata.plugins \ org.eclipse.wst.server.core \ TMP1 \ wtpwebapps \ Web應用程序\
然而,隨着客戶端運行WebSphere Application Server的自由,我安裝我的機器上是相同的,但在Tomcat中返回的路徑相同的代碼,返回
空
在WebSphere環境。你能幫我理解爲什麼發生這種情況,我將如何在Websphere環境中獲得路徑。我也檢查了以下鏈接https://www.ibm.com/developerworks/community/forums/html/topic?id=eb04c8ae-02d4-421b-af2c-2ef626a3db1b&ps=50&tags=&query=&filter=&sortBy=&order=asc,但無法找到解決方案。
代碼如何部署到兩者? – nitind
它沒有部署在我已經停止Tomcat暫時運行Websphere。多數民衆贊成在如何我可以檢查它 –