title: Exception when starting Tomcat
body: <p>When starting Tomcat I get this exception.</p>
  
  <p>Other than that, Tomcat seems to be running ok.
  Still, I don't like exceptions in my console, and my Google searches turned up no relevant results, so help would be greatly appreciated. Thanks</p>
  
  <pre><code>Listening for transport dt_socket at address: 8787
  Handler error
  java.lang.ClassNotFoundException: startup
          at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
          at java.security.AccessController.doPrivileged(Native Method)
          at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
          at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
          at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:276)
          at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
          at org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManager.java:521)
          at org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManager.java:464)
          at org.apache.juli.ClassLoaderLogManager.readConfiguration(ClassLoaderLogManager.java:288)
          at java.util.logging.LogManager$2.run(LogManager.java:258)
          at java.security.AccessController.doPrivileged(Native Method)
          at java.util.logging.LogManager.readPrimordialConfiguration(LogManager.java:256)
          at java.util.logging.LogManager.getLogManager(LogManager.java:239)
          at java.util.logging.Logger.&lt;init&gt;(Logger.java:221)
          at java.util.logging.LogManager$RootLogger.&lt;init&gt;(LogManager.java:973)
          at java.util.logging.LogManager$RootLogger.&lt;init&gt;(LogManager.java:970)
          at java.util.logging.LogManager$1.run(LogManager.java:179)
          at java.security.AccessController.doPrivileged(Native Method)
          at java.util.logging.LogManager.&lt;clinit&gt;(LogManager.java:156)
          at java.util.logging.Logger.getLogger(Logger.java:274)
          at org.apache.juli.logging.impl.Jdk14Logger.getLogger(Jdk14Logger.java:181)
          at org.apache.juli.logging.impl.Jdk14Logger.&lt;init&gt;(Jdk14Logger.java:61)
          at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
          at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)
          at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
          at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
          at org.apache.juli.logging.impl.LogFactoryImpl.createLogFromClass(LogFactoryImpl.java:1116)
          at org.apache.juli.logging.impl.LogFactoryImpl.discoverLogImplementation(LogFactoryImpl.java:914)
          at org.apache.juli.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:604)
          at org.apache.juli.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:336)
          at org.apache.juli.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:310)
          at org.apache.juli.logging.LogFactory.getLog(LogFactory.java:685)
          at org.apache.catalina.startup.Bootstrap.&lt;clinit&gt;(Bootstrap.java:60)
  log4j:WARN No appenders could be found for logger (org.apache.catalina.startup.Catalina).
  log4j:WARN Please initialize the log4j system properly.
  log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
  </code></pre>
  
  <p><strong>Edit</strong>
  The contents of server.xml:</p>
  
  <pre><code>&lt;?xml version='1.0' encoding='utf-8'?&gt;
  </code></pre>
  
  <p></p>
  
  <pre><code>&lt;Listener className="org.apache.catalina.core.AprLifecycleListener" SSLEngine="on" /&gt;
  &lt;Listener className="org.apache.catalina.core.JasperListener" /&gt;
  &lt;Listener className="org.apache.catalina.core.JreMemoryLeakPreventionListener" /&gt;
  &lt;Listener className="org.apache.catalina.mbeans.GlobalResourcesLifecycleListener" /&gt;
  &lt;Listener className="org.apache.catalina.core.ThreadLocalLeakPreventionListener" /&gt;
  &lt;Listener className="com.atomikos.tomcat.AtomikosLifecycleListener" /&gt;
  
  &lt;GlobalNamingResources&gt;
      &lt;Resource name="UserDatabase" auth="Container" type="org.apache.catalina.UserDatabase" 
          description="User database that can be updated and saved"
          factory="org.apache.catalina.users.MemoryUserDatabaseFactory" pathname="conf/tomcat-users.xml" /&gt;
  &lt;/GlobalNamingResources&gt;
  
  &lt;Service name="Catalina"&gt;
      &lt;Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" /&gt;
      &lt;Connector port="8009" protocol="AJP/1.3" redirectPort="8443" /&gt;
  
      &lt;Engine name="Catalina" defaultHost="localhost"&gt;
          &lt;Realm className="org.apache.catalina.realm.LockOutRealm"&gt;
              &lt;Realm className="org.apache.catalina.realm.UserDatabaseRealm" resourceName="UserDatabase" /&gt;
          &lt;/Realm&gt;
  
          &lt;Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="true"&gt;
              &lt;Valve className="org.apache.catalina.valves.AccessLogValve" directory="logs" 
                  prefix="localhost_access_log." suffix=".txt" pattern="%h %l %u %t &amp;quot;%r&amp;quot; %s %b" /&gt;
          &lt;/Host&gt;
      &lt;/Engine&gt;
  &lt;/Service&gt;
  </code></pre>
  
  <p></p>
  
  <p><strong>* Edit 2 *</strong></p>
  
  <p>Here's what I got in the logging.properties file:</p>
  
  <pre><code>handlers = startup
  .handlers = startup, java.util.logging.ConsoleHandler
  
  ############################################################
  # Handler specific properties.
  # Describes specific configuration info for Handlers.
  ############################################################
  
  startup.level = FINE
  startup.directory = ${catalina.base}/logs
  startup.prefix = startup.
  
  java.util.logging.ConsoleHandler.level = FINE
  java.util.logging.ConsoleHandler.formatter = java.util.logging.SimpleFormatter
  </code></pre>