Hiyas,
 
I'm just getting started using Turbine on JBoss 3.0 with an eye toward deploying 
Jetspeed there.
 
The first problem I have run into is that Turbine always tries to open static files 
from the webapp directly from an exploded webapp directory.  This works okay under 
standalone Tomcat since it uses an instantiation of FileDirContext, but when embedded 
in JBoss, Tomcat uses a WARDirContext.  If I have my head screwed on straight, this 
means reliance on ServletContext.getRealPath() is incorrect except for portability 
with Servlet specs prior to 2.1.
 
Is there any reason that these calls shouldn't be updated to Servlet.getResource()?  I 
presume the calls to getRealPath are in there from the early days of Turbine.  I'll go 
ahead and generate the diffs if this is reasonable and someone wants to merge them 
when I am done.  If not, maybe someone could clue me in on another path around the 
problem of loading resources out of the WAR file...
 
Thanks,
 
Brian

_________________________________________________________ 
If you have some ice cream, I will give it to you. 
If you have no ice cream, I will take it away from you. 
         - Ice Cream Koan

 

Reply via email to