,同时采用的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。多数民众赞成在如何我可以检查它 –