Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>You can set the system default class loader as a JVM argument:</p> <pre><code>java -Djava.system.class.loader =com.test.YourCustomClassLoader com.test.YourMainClass </code></pre> <p>As Tomcat starts as a java application, you can set this parameter too, at the <code>%TOMCAT_HOME%\bin\run.bat</code> or <code>$TOMCAT_HOME/bin/run.sh</code> executable.</p> <p><strong>Edit for completion:</strong> If you set your classloader as de System class loader, it will be used to load Tomcat component classes, the different libraries, and your own classes. If you want your class loader to be used only for your application classes (including libraries and so), you should configure a <code>Loader</code> element for your context. The Loader element must be defined inside your <code>Context</code> element, wich can be defined at a <code>context.xml</code> file. More information: </p> <ul> <li><a href="http://tomcat.apache.org/tomcat-6.0-doc/class-loader-howto.html" rel="noreferrer">Apache Tomcat: Class Loader HOW-TO</a>: defines how the ClassLoaders work in Tomcat.</li> <li><a href="http://tomcat.apache.org/tomcat-5.5-doc/config/context.html" rel="noreferrer">Tomcat Configuration Reference: The Context Container</a>: how to define your <code>Context</code> element</li> <li><a href="http://tomcat.apache.org/tomcat-5.5-doc/config/loader.html" rel="noreferrer">Tomcat Configuration Reference: The Loader Component</a>: How to define your custom <code>Loader</code> element for your own <code>Context</code>.</li> </ul>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload