tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nick Betteridge <>
Subject Security Manager, Embedded and Class Loading
Date Tue, 04 Sep 2001 17:27:10 GMT
I've a problem that I don't really understand.

I'm in the process of getting the security manager to work with an
Embedded setup and the bootstrap is virtually the same as Catalina's.

If I create, for example, a (Standard)Server and (Standard)Service, I
get objects generated. If I attempt to create an engine, the classloader
(catalinaLoader) finds the (Standard)Engine class, but is unable to
create a newInstance.

ie ...

     * Create a new server instance.
    public void serverCreate() {
        try {
            Class serverClass =
            Object server = serverClass.newInstance();
        } catch (Exception ex) {

... will create a : org.apache.catalina.core.StandardServer@5d56d5

but a 

    public void engineCreate() {
        try {
            Class engineClass =
            Object engine = engineClass.newInstance();
        } catch (Exception ex) {

will give a : StandardEngine[null]

..... note that the full package name is missing and that engineClass is

If anybody can shed any light on this, I'd be very grateful for comment


View raw message