https://issues.apache.org/bugzilla/show_bug.cgi?id=55312

--- Comment #1 from Dave Syer <david_s...@hotmail.com> ---
I played around with the Tomcat embedded server a bit more and found that it
actually is relatively easy (if obscure) to switch on SCI:

        ContextConfig contextConfig = new ContextConfig();
        context.addLifecycleListener(contextConfig);

The biggest problem is that the classpath scanner only scans certain well-known
locations (/WEB-INF/lib/*.jar, /WEB-INF/classes I am guessing) so it doesn't
pick up anything else by default that happens to be on the classpath but in a
different location (e.g. if you launch with java -jar, or from inside an IDE).
I think that's a bigger problem than the obscure API for setting it up. There
are some mentions in comments about /WEB-INF/classes being bound to multiple
locations to help Eclipse tooling, so there is some precedence for the required
generalization, but again no obvious API for adding bindings.

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to