Re: Custom WebappLoader, Jasper and custom JSP tags

2012-03-16 Thread Johannes Ernst
On Mar 16, 2012, at 5:07, Pid wrote: > On 15/03/2012 23:44, Johannes Ernst wrote: >> I've implemented my own org.apache.catalina.loader.WebappLoader. It consults >> a bunch of JARs held in the file system outside of the WAR. > > Would one of the shared/common classloa

Re: Custom WebappLoader, Jasper and custom JSP tags

2012-03-16 Thread Johannes Ernst
On Mar 16, 2012, at 3:30, Konstantin Kolinko wrote: >> Where is a good breakpoint or debug switch that I could set to see with >> which class path values Jasper and javac are being invoked? > > Why are you asking if the source code is available? Because I'm a little lost in the source code. E

Re: Custom WebappLoader, Jasper and custom JSP tags

2012-03-15 Thread Johannes Ernst
On Mar 15, 2012, at 17:38, Konstantin Kolinko wrote: >>> Moreover Jasper has to pass a classpath to an external Java compiler >>> (ecj or javac). The classpath is constructed and passed to Jasper as >>> String. >> >> Could you point me to where in the code it does this? I was looking for >> inv

Re: Custom WebappLoader, Jasper and custom JSP tags

2012-03-15 Thread Johannes Ernst
On Mar 15, 2012, at 16:50, Konstantin Kolinko wrote: > 2012/3/16 Johannes Ernst : >> I've implemented my own org.apache.catalina.loader.WebappLoader. It consults >> a bunch of JARs held in the file system outside of the WAR. >> >> One of those outsid

Custom WebappLoader, Jasper and custom JSP tags

2012-03-15 Thread Johannes Ernst
I've implemented my own org.apache.catalina.loader.WebappLoader. It consults a bunch of JARs held in the file system outside of the WAR. One of those outside JARs contains a custom JSP tag. When attempting to compile the JSP, Jasper fails to find it. I'm getting this: javax.servlet.ServletExcept

Re: manager / deploy context file

2011-08-26 Thread Johannes Ernst
> The documentation has to be updated. Please file an issue. https://issues.apache.org/bugzilla/show_bug.cgi?id=51727 Personally I feel the documentation is correct and the code is wrong. What point is there to have a path parameter in context.xml if it has to be specified (redundantly) as a UR

Re: manager / deploy context file

2011-08-26 Thread Johannes Ernst
On Aug 26, 2011, at 4:10, Konstantin Kolinko wrote: > 2011/8/26 Johannes Ernst : >> I'd like to do this in Tomcat 6: > > Which exactly version of Tomcat 6.0.x you are using? > >> >> Is there some way I can debug this? >> > > Yes. Debugging is d

Re: manager / deploy context file

2011-08-26 Thread Johannes Ernst
On Aug 26, 2011, at 4:10, Konstantin Kolinko wrote: > 2011/8/26 Johannes Ernst : >> I'd like to do this in Tomcat 6: > > Which exactly version of Tomcat 6.0.x you are using? Standard issue Ubuntu Lucid which apparently is 6.0.24. http://packages.ubuntu.com/lucid/tomcat6

manager / deploy context file

2011-08-25 Thread Johannes Ernst
I'd like to do this in Tomcat 6: curl http://localhost:8080/manager/deploy?config=file:/tmp/mycontext.xml --basic -u user:pass It complains: FAIL - Invalid context path null was specified This works: curl http://localhost:8080/manager/deploy?config=file:/tmp/mycontext.x

Re: Multiple contexts pointing to same WAR

2011-08-15 Thread Johannes Ernst
I will try that, thanks, and report back. If it works, will that create one ClassLoader for foo.war, or two (one per context?) On Aug 15, 2011, at 9:43, Mark Thomas wrote: > On 15/08/2011 17:38, Johannes Ernst wrote: >> I'd like to run the same web app at multiple paths in

Multiple contexts pointing to same WAR

2011-08-15 Thread Johannes Ernst
I'd like to run the same web app at multiple paths in Tomcat 6, e.g. /foo1 -> foo.war /foo2 -> foo.war I was thinking of creating $CATALINA_BASE/conf/[enginename]/[hostname]/foo1.xml $CATALINA_BASE/conf/[enginename]/[hostname]/foo2.xml with different entries for dat