Skip to content

RAP 3.23 is not able to get real path of tomcat using SerlvetContext. It returns null always #295

@Jeevan2000

Description

@Jeevan2000

Let's make sure issue is not already fixed in latest builds first.

Steps to reproduce

From a fresh installation and clean workspace:

I tried

  • We have deployed the .war file of our application in tomcat application server. And we have to get the real path of Tomcat using SerlvetContext.getRealPath("/")
  • But the above thing is giving null always. It works fine in RAP 3.12. I need to know what has changed in SerlvetContext from 3.12 to 3.23 version of RAP
  • I am expecting the Real Path as " C:\Program Files\Apache Software Foundation\Tomcat 9.0_Tomcat9.86\webapps\WebSphere131
  • We need these because we have an license file present inside WEB_INF/eclipse folder, once we get the above path then we append the /WEB_INF/eclipse to get full path and find for license file"

I expected: < To get Real path of tomcat using SerlvetContext >

But got: < Real Path is getting null using SerlvetContext >

Tested under this environment:

  • OS & version: Windows 10
  • Eclipse IDE/Platform version (as shown in Help > About): Eclipse 2022-12
  • RAP version is 3.23
  • Java version is 11
  • Tomcat version is 9.0.86

Community

  • I understand reporting an issue to this OSS project does not mandate anyone to fix it. Other contributors may consider the issue, or not, at their own convenience. The most efficient way to get it fixed is that I fix it myself and contribute it back as a good quality patch to the project.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions