You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by Apache Wiki <wi...@apache.org> on 2015/04/06 23:02:27 UTC

[Tomcat Wiki] Update of "RemoveUnpackWARs" by KonstantinKolinko

Dear Wiki user,

You have subscribed to a wiki page or wiki category on "Tomcat Wiki" for change notification.

The "RemoveUnpackWARs" page has been changed by KonstantinKolinko:
https://wiki.apache.org/tomcat/RemoveUnpackWARs?action=diff&rev1=4&rev2=5

Comment:
Add a testing use case (getRealPath() returning null) for unpackWARs="false".

  
  
  === Actually read-only filesystem ===
+ 
  If the filesystem is actually read-only (or effectively so, where the effective Tomcat user has no file-write rights whatsoever), then unpackWARs must be false in order to deploy. If all JSPs are pre-compiled and logs are not written to disk, Tomcat should be able to run on a read-only filesystem.
  
  Deploying an exploded WAR file with pre-compiled JSPs would also meet this requirement.
  
+ === Testing - configuration with getRealPath() returning null ===
+ 
+ When unpackWARs="false" the `SevletContext.getRealPath()` method always returns `null`. This configuration can be used to test that a web application is programmed correctly and can function without relying on `getRealPath()` method.
  
  === Other use cases ===
  

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org