title: How do I place jars in jetty/lib on the jetty classpath?
body: <p>I have Jetty jetty-9.2.3.v20140905</p>
  
  <p>My understanding was that jars in lib/jar or lib/ext were automatically on the classpath, but this may have been old behavior from jetty 8. </p>
  
  <p>I'm trying to deploy a webapp with websockets. With my deployed WAR file in the webapps directory, jetty keeps complaining that it cannot find jars sitting right there in the jetty/lib directory (jetty-http, jetty-io, jetty-security, jetty-server, jetty-servlet, jetty-util are the ones my webapp needs that it cannot find)</p>
  
  <p>jars placed in lib/ext are also not picked up when I do a --module-ext</p>
  
  <p>How can I resolve this?</p>
  
  <p>To address the answer below, (editing the original questioN) I have tried enabling the server module, whose server.mod file contains the following lines:</p>
  
  <pre><code>[lib]
  lib/servlet-api-3.1.jar
  lib/jetty-schemas-3.1.jar
  lib/jetty-http-${jetty.version}.jar
  lib/jetty-server-${jetty.version}.jar
  lib/jetty-xml-${jetty.version}.jar
  lib/jetty-util-${jetty.version}.jar
  lib/jetty-io-${jetty.version}.jar
  </code></pre>
  
  <p>From the command line, I do </p>
  
  <pre><code>java -jar start.jar --module=server jetty.port=8182
  </code></pre>
  
  <p>and the result is: </p>
  
  <pre><code>2014-10-30 15:26:13.907:WARN:oejuc.AbstractLifeCycle:main: FAILED   
  org.eclipse.jetty.annotations.ServletContainerInitializersStarter@2635068e: 
  java.lang.NoClassDefFoundError: org/eclipse/jetty/server/Handler
  java.lang.NoClassDefFoundError: org/eclipse/jetty/server/Handler
  </code></pre>
  
  <p>org.eclipse.jetty.server.Handler is right there in jetty-server jar sitting in my jetty/lib directory. </p>
  
  <p>Perhaps the jetty.version or jetty.base variables are incorrect? </p>
  
  <p>When I perform a </p>
  
  <pre><code>--list-classpath
  </code></pre>
  
  <p>I do see all the jars in the lib directory there. </p>