tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Johan Compagner <jcompag...@servoy.com>
Subject How to mount multiply webAppMounts to WEB-INF/lib (multiply dirs with jars)
Date Tue, 15 Oct 2013 08:11:12 GMT
it seems that i can't add multiply dirs to the WEB-INF/lib dir
i tried various stuff (Pre,Post,Jar)

<PreResources  base="C:/dir1"
className="org.apache.catalina.webresources.DirResourceSet"
webAppMount="/WEB-INF/lib"/>
<PreResources  base="C:/dir2"
className="org.apache.catalina.webresources.DirResourceSet"
webAppMount="/WEB-INF/lib"/>

with classes this seems to work (can't fully test it because it need the
jars)

<PostResources  base="c:/dir3"
className="org.apache.catalina.webresources.DirResourceSet"
webAppMount="/WEB-INF/classes"/>
<PostResources  base="c:/dir4"
className="org.apache.catalina.webresources.DirResourceSet"
webAppMount="/WEB-INF/classes"/>
<PostResources  base="c:/dir5"
className="org.apache.catalina.webresources.DirResourceSet"
webAppMount="/WEB-INF/classes"/>
<PostResources  base="c:/dir6"
className="org.apache.catalina.webresources.DirResourceSet"
webAppMount="/WEB-INF/classes"/>

So what is exactly the right syntax to include multiply jars or dirs of
jars ?

if i use the above, it can't find a class in that is in a jar in dir2
if i switch the order:

<PreResources  base="C:/dir2"
className="org.apache.catalina.webresources.DirResourceSet"
webAppMount="/WEB-INF/lib"/>
<PreResources  base="C:/dir1"
className="org.apache.catalina.webresources.DirResourceSet"
webAppMount="/WEB-INF/lib"/>

then it can't find a class in a jar that is in dir1

johan








On 14 October 2013 18:10, Mark Thomas <markt@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-unsubscribe@tomcat.apache.org
> For additional commands, e-mail: users-help@tomcat.apache.org
>
>


-- 
Johan Compagner
Servoy

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message