Re: [OT] Re: Question about DirResourceSet?

2019-10-20 Thread Mark Thomas
> Mark, > > On 10/16/19 04:41, Mark Thomas wrote: >>> On 10/15/19 09:37, Mark Thomas wrote: >>> Isn't there a magic ${property} that can be used to mean "the >>> context's root" so you don't have to use ${catalina.base} >>> instead? I browsed through the document a bit and didn't find >>> anyt

Re: [OT] Re: Question about DirResourceSet?

2019-10-16 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Mark, On 10/16/19 04:41, Mark Thomas wrote: >> Mark, >> >> On 10/15/19 09:37, Mark Thomas wrote: >>> On 14/10/2019 20:29, André Warnier (tomcat) wrote: From a long-time (occasional) list contributor : That's a nice post, in many ways, and

Re: [OT] Re: Question about DirResourceSet?

2019-10-16 Thread Mark Thomas
> Mark, > > On 10/15/19 09:37, Mark Thomas wrote: >> On 14/10/2019 20:29, André Warnier (tomcat) wrote: >>> From a long-time (occasional) list contributor : That's a nice >>> post, in many ways, and a good way to get quick and useful >>> answers. I only regret that my own knowledge is not sufficie

Re: [OT] Re: Question about DirResourceSet?

2019-10-15 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Mark, On 10/15/19 09:37, Mark Thomas wrote: > On 14/10/2019 20:29, André Warnier (tomcat) wrote: >> From a long-time (occasional) list contributor : That's a nice >> post, in many ways, and a good way to get quick and useful >> answers. I only regre

Re: [OT] Re: Question about DirResourceSet?

2019-10-15 Thread Robert Olofsson
Hi! On Tue, 2019-10-15 at 14:37 +0100, Mark Thomas wrote: > Generally, no. You've done it in what I'd consider to be the "safer" way > by exposing all the JARs visible to the client to the application's > class loader rather than the other way around. Ok, good to hear, we will try this and s

Re: [OT] Re: Question about DirResourceSet?

2019-10-15 Thread Mark Thomas
On 14/10/2019 20:29, André Warnier (tomcat) wrote: > From a long-time (occasional) list contributor : > That's a nice post, in many ways, and a good way to get quick and useful > answers. > I only regret that my own knowledge is not sufficient to provide such an > answer. > (We regularly complain a

[OT] Re: Question about DirResourceSet?

2019-10-14 Thread tomcat
From a long-time (occasional) list contributor : That's a nice post, in many ways, and a good way to get quick and useful answers. I only regret that my own knowledge is not sufficient to provide such an answer. (We regularly complain at people posting to this list, when their post is "not nice",

Question about DirResourceSet?

2019-10-14 Thread Robert Olofsson
Hi! Some background: We are currently running tomcat (9.0.26) and we serve data to both html/webapp and to our java application. The java application uses a lot of the same jar files that our servlets use. We have had tomcat setup with two directories: 1) webapps//WEB-INF/lib (as usual for servl

Re: Problrm with resources added using DirResourceSet

2015-05-20 Thread Konstantin Kolinko
on the next line... > } > if(wsRoot.getContext() == null) > { > throw new Exception("NO CONTEXT!!!"); > } > File pFile = plugin.getRoot(); > log.info("Adding plugin root " + pFile.getAbsolutePath()

Re: Problrm with resources added using DirResourceSet

2015-05-20 Thread Mark Thomas
entially important information. Any ideas on what's wrong? Thanks for all the info. I can't see anything obviously wrong in what you posted. I'd fire up a debugger and step through the StandardRoot.getResource() call and check: - You see the StandardRoot instance you expect to see -

Problrm with resources added using DirResourceSet

2015-05-20 Thread Ed Rouse
pFile = plugin.getRoot(); log.info("Adding plugin root " + pFile.getAbsolutePath() + " to the WebResourceRoot as a DirResourceSet."); DirResourceSet drs = new DirResourceSet(wsRoot, "/", pFile.getAbsolutePath(), "/"); log.info("

Re: DirResourceSet

2014-11-18 Thread Mark Thomas
On 18/11/2014 16:50, Ed Rouse wrote: > > >> -Original Message- >> From: Mark Thomas [mailto:ma...@apache.org] >> Sent: Tuesday, November 18, 2014 5:59 AM >> To: Tomcat Users List >> Subject: Re: DirResourceSet >> >> On 17/11/2014 22:5

RE: DirResourceSet

2014-11-18 Thread Ed Rouse
> -Original Message- > From: Mark Thomas [mailto:ma...@apache.org] > Sent: Tuesday, November 18, 2014 5:59 AM > To: Tomcat Users List > Subject: Re: DirResourceSet > > On 17/11/2014 22:52, Ed Rouse wrote: > > I have 2 different issues setting up a DirResource

Re: DirResourceSet

2014-11-18 Thread Mark Thomas
On 17/11/2014 22:52, Ed Rouse wrote: > I have 2 different issues setting up a DirResourceSet. I have an > external war file I am trying to merge into the Root of my > application. I have a custom root that extends StandardRoot. > > > 1. DirResourceSet drs = new Dir

RE: DirResourceSet

2014-11-17 Thread Ed Rouse
I still have some confusion about the DirResourceSet. When I add the /WEB-INF/classes it looks through recursively and finds all of the class files. I know because one of them adds an additional link to a menu bar and it's there. But when I add a regular directory, say /report, it only add

RE: DirResourceSet

2014-11-17 Thread Ed Rouse
> -Original Message- > From: Ed Rouse [mailto:ero...@milner.com] > Sent: Monday, November 17, 2014 4:53 PM > To: Tomcat Users List > Subject: DirResourceSet > > I have 2 different issues setting up a DirResourceSet. I have an > external war file I am trying to m

DirResourceSet

2014-11-17 Thread Ed Rouse
I have 2 different issues setting up a DirResourceSet. I have an external war file I am trying to merge into the Root of my application. I have a custom root that extends StandardRoot. 1. DirResourceSet drs = new DirResourceSet(wsRoot, "/WEB-INF/classes/", possible.getAb