Using a context.xml file in /conf/Catalina/local/context.xml

2016-11-02 Thread phiroc
Hello, I've a developed a simple servlet in Eclipse which is supposed to display a welcome message stored in /conf/Catalina/localhost/context.xml. When I run the web application from Eclipse in a local Tomcat instance, I get the following message: "javax.naming.NameNotFoundException: The name

Problem with base directory in Resource

2014-11-21 Thread phiroc
Hello, in my Apache 8 context.xml file, I have created the following resource: Resources PreResources className=org.apache.catalina.webresources.DirResourceSet base=/mnt/mynfsserver_img/ webAppMount=/img

Re: Problem with base directory in Resource

2014-11-21 Thread phiroc
I have solved the problem by replacing PostResources by PreResources (cf. http://mikusa.blogspot.fr/2014/07/tips-on-migrating-to-tomat-8-resources.html). Now I need to figure out how to use the webAppMount. Any suggestions? Philippe - Mail original - De: phi...@free.fr À:

Re: Problem with base directory in Resource

2014-11-21 Thread phiroc
I figured it out. Let say /mnt/mynfsserver_img/ contains an image called myimage.png. If you create the below pre-resource in context.xml, you can access that image by typing http://localhost:8080/img/myimage.png. Philippe - Mail original - De: phi...@free.fr À: Tomcat Users List

Remote resources

2014-11-18 Thread phiroc
Hello, is there a way to access the contents of a directory (e.g., images) on a remote [Windows] network drive, which is mounted on a Linux filesystem (e.g., /mnt/myremotedrive), from a Java application running on a Tomcat Server? What makes this task problematic is the fact that the images