Hi,

I am new to Tomcat and JEE, but a new job means to learn new things.

So right to my problem, wich I am sure is not too unusual, but I
couldn't really find a solution (via google) so far.

my directory structure looks as follows

/opt/document-repository  <- mounted nfs-disk of an archiving system

/opt/Tomcat/webapps/myApp.war <- my project deployment file

my webapp for now is just a bunch of servlets which, using
java.io.File..., have no trouble to read the archiving systems directory
structure listing to list all available archived pdf-files. With
servlets and some CSS I managed to build a little directory tree in the
browser output and linked the pdf-files to get opened (via adobe reader
plugin) in an iframe 

this basically works if the pdf-files I want to open are located in the
deployment directory.

but what I want to do is to access the pdf-files of the archiving disk.
it seems tho while the servlet java code {java.io...} CAN, tomcat CANNOT
access the pdf-files, which are stored there. And my projects deployment
directory and the archiving systems mount have to be separated, so I can
not mount the nfs into the deployment directory nor can I put my
application around the nfs-mount-directory

I stumbled over a hint about adding a 

  <Context  docBase="/opt/documents" path="/documents"/>

directive to the web.xml file, but I haven't had any luck with my
experiments so far, but then I realized that this would mean that I also
have to move my project directory which I can't.

So if there is any possibility to get this done (i am using linux incase
you haven't guessed already) I would be very glad if anyone could drop a
few lines to help me out.

Thanks in advance!


Ingo Gambin

Brilliant Vorsorge GmbH 
Worringer Str. 2-4 
D-40211 Düsseldorf 

Telefon:          +49 (0) 211 / 61793-0 
Mobil:            +49 (0) 176 / 44 66 66 42
eMail:            igam...@brilliant.de
PGP-Fingerprint:  D316 7343 EA4B 82C7 D96D  6917 3BF3 005A DA46 227F




Attachment: signature.asc
Description: Dies ist ein digital signierter Nachrichtenteil

Reply via email to