You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2002/08/27 10:31:21 UTC

DO NOT REPLY [Bug 12067] New: - Tomcat 4.0.4 returns [null] for getServletContext getRealPath for unpacked wars

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12067>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12067

Tomcat 4.0.4 returns [null] for getServletContext getRealPath for unpacked wars

           Summary: Tomcat 4.0.4 returns [null] for getServletContext
                    getRealPath for unpacked wars
           Product: Tomcat 4
           Version: 4.0.4 Final
          Platform: PC
        OS/Version: Other
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Unknown
        AssignedTo: tomcat-dev@jakarta.apache.org
        ReportedBy: lothar.egger@spamcop.net
                CC: lothar.egger@spamcop.net


Tomcat 4.0.4 returns [null] for 
getServletContext getRealPath for unpacked wars.

Tomcat 4.0.4 in > Jboss 3.0.1
getServletContext().getRealPath("/") 
result:
[null].

> >Comment By: Scott M Stark (starksm)
> Date: 2002-08-26 15:45
> 
> tomcat only returns non-null getRealPath() values for 
> unpacked wars. This behavior is allowed per the servlet 
> spec. Submit a bug to tomcat to get the behavior changed.


regards
lothar egger


> Jboss 3.0.1
> getServletContext().getRealPath("/") 
> result:
> [null].
> 
> bug ?
> 
> regards
> 
> 
> 16:29:17,843 INFO  [Server] JBoss Release: JBoss-
> 3.0.1 CVSTag=JBoss_3_0_1
> 16:29:17,858 INFO  [Server] Home Dir: C:\Java\jboss-
> 3.0.1_tomcat-4.0.4
> 16:29:17,858 INFO  [Server] Home URL: 
> file:/C:/Java/jboss-3.0.1_tomcat-4.0.4/
> 16:29:17,858 INFO  [Server] Library URL: 
> file:/C:/Java/jboss-3.0.1_tomcat-4.0.4/lib/
> 16:29:17,858 INFO  [Server] Patch URL: null
> 16:29:17,858 INFO  [Server] Server Name: all
> 16:29:17,858 INFO  [Server] Server Home Dir: 
> C:\Java\jboss-3.0.1_tomcat-4.0.4\server\all
> 16:29:17,858 INFO  [Server] Server Home URL: 
> file:/C:/Java/jboss-3.0.1_tomcat-4.0.4/server/all/
> 16:29:17,858 INFO  [Server] Server Data Dir: 
> C:\Java\jboss-3.0.1_tomcat-4.0.4\server\all\db
> 16:29:17,858 INFO  [Server] Server Temp Dir: 
> C:\Java\jboss-3.0.1_tomcat-4.0.4\server\all\tmp
> 16:29:17,874 INFO  [Server] Server Config URL: 
> file:/C:/Java/jboss-3.0.1_tomcat-4.0.4/server/all/conf/
> 16:29:17,874 INFO  [Server] Server Library URL: 
> file:/C:/Java/jboss-3.0.1_tomcat-4.0.4/server/all/lib/
> 16:29:17,874 INFO  [Server] Root Deployemnt 
> Filename: jboss-service.xml
> 16:29:17,874 INFO  [Server] Starting General Purpose 
> Architecture (GPA)...
> 16:29:18,108 INFO  [ServerInfo] Java version: 
> 1.4.0_01,Sun Microsystems Inc.
> 16:29:18,108 INFO  [ServerInfo] Java VM: Java HotSpot
> (TM) Client VM 1.4.0_01-b03,Sun Microsystems Inc.
> 16:29:18,108 INFO  [ServerInfo] OS-System: Windows 
> XP 5.1,x86
> 
> ----------------------------------------------------------------------
>

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>