Hi This loader is for webapps only and context.xml as well. This means you can use it only in xxx/webapp/META-INF/context.xml.
Note that jars.txt is now supported is ears. This is a nice alternative to the virtual loader and nice thing is it will still be supported in tomee 7 - virtual loader has been dropped by tomcat in version 8. Le 14 sept. 2015 05:27, "Uday Gire" <[email protected]> a écrit : > Hi > > I am not surely understand your requirements but why not put specific jars > to your different web applications WEB-INF/lib directory? Therefore, each > apps use its own jar version. > > Best > > Uday Gire > ManageCat, http://www.managecat.com <http://www.managecat.com/> > [email protected] > > > On 14 Sep 2015, at 08:37, skrajath <[email protected]> wrote: > > > > Trying to have unique jars for each application, so using > > > > "org.apache.catalina.loader.VirtualWebappLoader > > configuration in context.xml. The application is an EAR, deployed in > 'apps' > > folder under TomEE install directory. context.xml is in > > > > /apps/myApp/META-INF/ > > > > but the jars are not visible to app. Question is, > > > > 1) is this the right location? or should it be in META-INF of the webApp > > inside ear - /apps/myApp/webApp/META-INF > > > > 2) VirtualWebappLoader is only for webApps and for EAR under apps? > > > > > > > > -- > > View this message in context: > http://tomee-openejb.979440.n4.nabble.com/Custom-Shared-jars-in-TomEE-tp4676193.html > > Sent from the TomEE Users mailing list archive at Nabble.com. > > > > > >
