title: java.lang.NoClassDefFoundError while starting tomcat 7 from Ant
body: <p>My goal is to start tomcat using Ant. Here is my script:
  </p>
  
  <pre><code>&lt;target name="tomcat-start"&gt;
      &lt;java jar="${tomcat.home}/bin/bootstrap.jar" fork="true" dir="${tomcat.home}"&gt;
          &lt;classpath&gt;
              &lt;fileset dir="${tomcat.home}/bin"&gt;
                  &lt;include name="bootstrap.jar"/&gt;
                  &lt;include name="tomcat-juli.jar"/&gt;
              &lt;/fileset&gt;
          &lt;/classpath&gt;
  
          &lt;jvmarg value="-Dcatalina.home=${tomcat.home}"/&gt;
  
      &lt;/java&gt;
  &lt;/target&gt;
  </code></pre>
  
  <p>After script execution I receive this output:</p>
  
  <pre><code>java.lang.NoClassDefFoundError: org/apache/juli/logging/LogFactory
  at org.apache.catalina.startup.Bootstrap.&lt;clinit&gt;(Bootstrap.java:60)
  Caused by: java.lang.ClassNotFoundException: org.apache.juli.logging.LogFactory
  at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
  at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
  at java.security.AccessController.doPrivileged(Native Method)
  at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
  at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
  at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
  ... 1 more
  Exception in thread "main" 
  Java Result: 1
  </code></pre>
  
  <p><strong>I've checked</strong>: <code>org.apache.juli.logging.LogFactory</code> class is presented in <code>tomcat-juli.jar</code>!</p>
  
  <p>What could be wrong?</p>