yes i figure this out for the classes works quite nice, The only problem is that for web-inf/lib i can't get it to work to mount multiply external folders into that one.
On 15 October 2013 15:21, Daniel Mikusa <dmik...@gopivotal.com> wrote: > On Oct 14, 2013, at 5:20 PM, Johan Compagner <jcompag...@servoy.com> > wrote: > > > thx, > > > > i already found it, through the changelog, i noticed that those where > > changed and where now all replaced by <Resources> > > > > Would be nice that there are some sample context.xml files in the final > > release so that people can see exactly what they could be using. > > For what it's worth, here's an example: > > <?xml version='1.0' encoding='utf-8'?> > <Context> > <Resources> > <PreResources > className="org.apache.catalina.webresources.FileResourceSet" > base="/app/files/special.txt" webAppMount="/static/special. txt" /> > <PostResources > className="org.apache.catalina.webresources.DirResourceSet" > base="/app/files/static" webAppMount="/static" /> > </Resources> > </Context> > > Here's how I understand this... > > The first tag exposes a single resource located locally at > "/app/files/special.txt" on the application relative path of > "/static/special.txt". The second tag exposes a directory located locally > at "/app/files/static" on the application relative path of "/static". > > Ex: > > http://<server>/<context>/static/special.txt -> would return the > file "/app/files/special.txt". > http://<server>/<context>/static/<some-file> -> would return > <some-file> from "/app/files/static/". > > The first tag is a PreResource so it would be selected before a file of > the same name in "/app/files/static". It would also get selected before a > resource of the same name exposed by the application or a JAR file. The > second tag is a PostResource so it would only be checked if nothing else > (i.e. PreResources, the app or JAR files) provided the resource. > > Dan > > > > > > > > > On 14 October 2013 18:10, Mark Thomas <ma...@apache.org> wrote: > > > >> On 14/10/2013 16:26, Johan Compagner wrote: > >>> That seems to be removed from the Tomcat8 build > >>> Is there something else that we now have to use? > >> > >> http://tomcat.apache.org/migration-8.html#Web_application_resources > >> > >> Mark > >> > >> > >>> > >>> How can i now setup a debug environment easy by using a context file > like > >>> this: > >>> > >>> <Context path="/webclient2" > >>> docBase="C:/workspace_trunk/servoy_webclient2/war/" > > >>> <!-- > >>> <Resources className="org.apache.naming.resources.VirtualDirContext" > >>> > >> > extraResourcePaths="/WEB-INF/classes=/Users/theuser/mywebapp/target/classes,/pictures=/Users/theuser/mypictures,/movies=/Users/theuser/mymovies" > >>> /> > >>> --> > >>> <Loader className="org.apache.catalina.loader.VirtualWebappLoader" > >>> virtualClasspath="/users/theuser/xxxx;/users/theuser/test.jar" > >>> /> > >>> <JarScanner scanAllDirectories="true" /> > >>> </Context> > >>> > >> > >> > >> --------------------------------------------------------------------- > >> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > >> For additional commands, e-mail: users-h...@tomcat.apache.org > >> > >> > > > > > > -- > > Johan Compagner > > Servoy > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > -- Johan Compagner Servoy