tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrew Rapp <>
Subject Running Embedded Tomcat from Java Web Start
Date Thu, 24 May 2007 16:39:08 GMT
Hi All,

I'm trying to launch Embedded Tomcat from Java Web Start (JNLP), but without any luck so far.
 I've searched high and low and found several folks who have tried this approach but no one
has seemed to succeed.  Just to clarify, I'm not trying to run Java Web Start from Embedded
Tomcat, but actually the reverse: start Embedded Tomcat on the client's machine, via Java
Web Start.  

Tomcat starts but I get the following exception:

            ----------> Parent Classloader:
                java.lang.ClassNotFoundException: org.apache.jasper.servlet.JspServlet
    at org.apache.catalina.loader.WebappClassLoader.loadClass(
    at org.apache.catalina.loader.WebappClassLoader.loadClass(
    at org.apache.catalina.core.StandardWrapper$
    at Method)
    at org.apache.catalina.core.StandardWrapper.loadServlet(
    at org.apache.catalina.core.StandardWrapper.load(
    at org.apache.catalina.core.StandardContext.loadOnStartup(
    at org.apache.catalina.core.StandardContext.start(
    at org.apache.catalina.core.ContainerBase.start(
    at org.apache.catalina.core.StandardHost.start(
    at org.apache.catalina.core.ContainerBase.start(
    at org.apache.catalina.core.StandardEngine.start(
    at org.apache.catalina.startup.Embedded.start(

Apparently a classloader issue with JNLP, but I don't know how to set the classloader on Tomcat.

I also tried launching Embedded Tomcat via a URLClassLoader.  With the URLClassLoader I get: access denied (java.util.PropertyPermission catalina.home
write).  It seems that the URLClassLoader is not running with the same privileges as the JNLP

I'm using the following code to start tomcat.

        System.setProperty("catalina.home", getPath());
        embedded = new Embedded();

        Engine engine = embedded.createEngine();

        host = embedded.createHost("localhost", getPath() + "/webapps");

        Context context = embedded.createContext("", getPath() + "/webapps/ROOT");



        Connector connector = embedded.createConnector(( null, 11080,

Any suggestions will be appreciated.


  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message