0 Replies Latest reply on Feb 7, 2018 8:33 AM by lacr77

    getServletContext().getRealPath("/") returns path not ending with /

    lacr77

      I have been using this "getServletContext().getRealPath("/")" till  jboss-as-7.1.3.Final and i got the return string path ending with slash.

       

      For Example:

       

      <%=getServletContext().getRealPath("/")%>

      will return

      /opt/jboss-as-7.1.3.Final/cws/deployments/cws.war/

       

      But when I tried with wildfly-10.1.0.Final I got path without slash

       

      For Example:

       

      <%=getServletContext().getRealPath("/")%>

      will return

      /opt/wildfly-10.1.0.Final/cws/deployments/cws.war

       

      Is there any configuration I can make to get the result that I got in previous version?