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 =
catalinaClassLoader.loadClass("org.apache.catalina.core.StandardServer");
            Object server = serverClass.newInstance();
        } catch (Exception ex) {
        }
    }

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


but a 



    public void engineCreate() {
        try {
            Class engineClass =
catalinaClassLoader.loadClass("org.apache.catalina.core.StandardEngine");
            Object engine = engineClass.newInstance();
        } catch (Exception ex) {
        }
    }


will give a : StandardEngine[null]


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


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

nick

Reply via email to