Re: WebAppClassLoader#addrepository and #addURL

2013-08-21 Thread Romain Manni-Bucau
How does an app would scan its content? (dont say a sci it doesnt match a lot of cases) Le 21 août 2013 20:00, "Mark Thomas" a écrit : > On 21/08/2013 18:46, Romain Manni-Bucau wrote: > > Hi > > > > Browsing some code sources (groovy, xbean, tomee,...and i don'tepeak of > > github) I found getURL

Re: WebAppClassLoader#addrepository and #addURL

2013-08-21 Thread Mark Thomas
On 21/08/2013 18:46, Romain Manni-Bucau wrote: > Hi > > Browsing some code sources (groovy, xbean, tomee,...and i don'tepeak of > github) I found getURLs and addURL quite common and think it should be > supported by tomcat by default. Adding getURLs in WebResources wouldnt hurt > and would make th

Re: WebAppClassLoader#addrepository and #addURL

2013-08-21 Thread Romain Manni-Bucau
Hi Browsing some code sources (groovy, xbean, tomee,...and i don'tepeak of github) I found getURLs and addURL quite common and think it should be supported by tomcat by default. Adding getURLs in WebResources wouldnt hurt and would make the getURLs of the classloader trivial. The addURLs should ju

Re: WebAppClassLoader#addrepository and #addURL

2013-04-24 Thread Romain Manni-Bucau
Thanks, playing with org.apache.catalina.WebResourceRoot can work. That said not respecting addURL maybe means you should override it to throw an UnsupportedOperataion no? + the comment of org.apache.catalina.loader.WebappClassLoader#getURLs is weird since it references addURL *Romain Manni-Buca

Re: WebAppClassLoader#addrepository and #addURL

2013-04-24 Thread Konstantin Kolinko
2013/4/24 Mark Thomas : > On 24/04/2013 17:51, Romain Manni-Bucau wrote: >> >> how libs/extension (like tomee) should extend it? > > > Use the replacement feature. > resources In nightly Tomcat 8 docs those are described here: http://ci.apache.org/projects/tomcat/tomcat8/docs/config/resources.htm

Re: WebAppClassLoader#addrepository and #addURL

2013-04-24 Thread Mark Thomas
On 24/04/2013 17:51, Romain Manni-Bucau wrote: how libs/extension (like tomee) should extend it? Use the replacement feature. forking? That should not be necessary. Mark *Romain Manni-Bucau* *Twitter: @rmannibucau * *Blog: **http://rmannibucau.wordpress.

Re: WebAppClassLoader#addrepository and #addURL

2013-04-24 Thread Romain Manni-Bucau
how libs/extension (like tomee) should extend it? forking? *Romain Manni-Bucau* *Twitter: @rmannibucau * *Blog: **http://rmannibucau.wordpress.com/* *LinkedIn: **http://fr.linkedin.com/in/rmannibucau* *Github: https://github.com/r

Re: WebAppClassLoader#addrepository and #addURL

2013-04-24 Thread Mark Thomas
On 24/04/2013 16:47, Romain Manni-Bucau wrote: Hi guys, looked quickly tomcat-8 and seems the addrepository method is no more here and addURL method is not respected (parent class) 1. is it intended? Yes. i didnt find VirtualWebappClassloader too. This feature seems often used and extended