Adding a webapp to a running embedded tomcat 7 with an 'improved' class loader results in missing classes?

2011-06-22 Thread Benson Margulies
The equivalent basic scheme worked perfectly fine in tomcat6. In Tomcat7, it looks like: solrContext = tomcat.addWebapp(/solr, solrWebapp.getCanonicalPath()); WebappLoader solrLoader = new WebappLoader(LSHDemoLauncher.class.getClassLoader());

Re: Adding a webapp to a running embedded tomcat 7 with an 'improved' class loader results in missing classes?

2011-06-22 Thread Mark Thomas
On 22/06/2011 14:47, Benson Margulies wrote: The equivalent basic scheme worked perfectly fine in tomcat6. In Tomcat7, it looks like: solrContext = tomcat.addWebapp(/solr, solrWebapp.getCanonicalPath()); WebappLoader solrLoader = new

Re: Adding a webapp to a running embedded tomcat 7 with an 'improved' class loader results in missing classes?

2011-06-22 Thread Benson Margulies
Solr has a particularly bizarre class loading environment. The class causes the problem is the FileUploadServlet from commons-fileupload. I doubt that the problem is validation, but I'll check. My experience is that, in the stock Tomcat class, the new context gets called through .start() before

Re: Adding a webapp to a running embedded tomcat 7 with an 'improved' class loader results in missing classes?

2011-06-22 Thread Mark Thomas
On 22/06/2011 15:18, Benson Margulies wrote: Solr has a particularly bizarre class loading environment. The class causes the problem is the FileUploadServlet from commons-fileupload. I doubt that the problem is validation, but I'll check. My experience is that, in the stock Tomcat class, the

Re: Adding a webapp to a running embedded tomcat 7 with an 'improved' class loader results in missing classes?

2011-06-22 Thread Benson Margulies
I agree with your preference. Patch to follow later today. On Wed, Jun 22, 2011 at 10:27 AM, Mark Thomas ma...@apache.org wrote: On 22/06/2011 15:18, Benson Margulies wrote: Solr has a particularly bizarre class loading environment. The class causes the problem is the FileUploadServlet from