tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Charlene Mitchell <charlene...@yahoo.co.uk>
Subject Re: getRealPath is null
Date Sun, 08 Dec 2002 21:18:55 GMT
Hi,

Thanks for the info - I will certainly look into your
suggestion (though I'm also using Cocoon which I think
fails for the same reason in some areas and I don't
want to hack around inside that beast!).

Regards

Charlene

 --- Jacob Kjome <hoju@visi.com> wrote: > 
> Yep, because JBoss serves the app directly from a
> .war file rather than 
> expanding the directory as is the default behavior
> of the Tomcat standalone.
> 
> Remember one thing about webapps.  You can *never*
> assume that you have 
> access to the filesystem except to the servlet spec
> defined tmp directory 
> which *must* be provided by the appserver.  Load
> files as streams using the 
> classloader or the ServletConfig instead of using
> File IO.  This will make 
> your app 100% more portable.
> 
> Jake
> 
> At 07:37 PM 12/7/2002 +0000, you wrote:
> >Hi,
> >
> >I'm deploying a servlet in a war (within an ear)
> into
> >TomCat4.1.12 or TomCat 4.0.6 (integrated in JBoss).
> >
> >But when I call the method getRealPath() I get a
> null
> >returned.
> >
> >If I do the same thing in Jetty (with JBoss) then
> it
> >works fine.
> >
> >Is this correct behaviour?
> >
> >Thanks
> >
> >Charlene
> >
> >__________________________________________________
> >Do You Yahoo!?
> >Everything you'll ever need on one web page
> >from News and Sport to Email and Music Charts
> >http://uk.my.yahoo.com
> >
> >--
> >To unsubscribe, e-mail:  
> <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> >For additional commands, e-mail:
> <mailto:tomcat-user-help@jakarta.apache.org>
>  

__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message