Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Resin - probably configuration problem

Reply
Thread Tools

Resin - probably configuration problem

 
 
Prasalek.Michal@gmail.com
Guest
Posts: n/a
 
      03-10-2008
Hello all.

I'm in need to save files (primitive cache) in my servlet. But when
i'm trying to create such file, it is being created outside webapp
working folder (in Resin startup folder), when i need it to create
files in webapp folder. I've tried to set app-dir to appropriate path,
but it changes nothing ... I want to work on relative path, because
application can work on server side, and as standalone.
Is there any configuration issue, that i missed? Or should i be
looking for webapp folder, and change folder context in some way?

For any help thanks in advance.
 
Reply With Quote
 
 
 
 
Arne Vajhøj
Guest
Posts: n/a
 
      03-11-2008
wrote:
> I'm in need to save files (primitive cache) in my servlet. But when
> i'm trying to create such file, it is being created outside webapp
> working folder (in Resin startup folder), when i need it to create
> files in webapp folder. I've tried to set app-dir to appropriate path,
> but it changes nothing ... I want to work on relative path, because
> application can work on server side, and as standalone.
> Is there any configuration issue, that i missed? Or should i be
> looking for webapp folder, and change folder context in some way?


getServletContext().getRealPath("/dir/file")

Arne
 
Reply With Quote
 
 
 
 
Prasalek.Michal@gmail.com
Guest
Posts: n/a
 
      03-13-2008
On Mar 11, 2:57 am, Arne Vajhøj <a...@vajhoej.dk> wrote:
> getServletContext().getRealPath("/dir/file")


Thanks, it works well now .
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Resin 2.0.5 vs Resin 2.1.X XSLT diff? asaguden Java 0 01-24-2005 03:06 PM
detecting tomcat and resin luca passani Java 0 09-15-2003 04:38 PM
Tomcat, Resin and cookies luca passani Java 0 09-13-2003 04:23 PM
HTTPS connection using JSSE & Resin - the code works, but not sure why Keith G Java 0 09-08-2003 06:25 PM
Resin/JNDI: object lifecycle dhek bhun kho Java 0 07-02-2003 06:54 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57