Note that there are some explanatory texts on larger screens.

plurals
  1. POhot deploying simple application in jetty
    primarykey
    data
    text
    <p>I am working with jetty hightide vesion 7 currently as a stand alone server. I have a simple web project with a couple of jsp's and backing classes that I am currently deploying in an unexploded war to the JETTY_HOME/webapps directory.</p> <p>Currently, jetty easily picks up any static jsp/html changes. If I understand correctly, I can configure my app so that jetty will pick up any class changes without restarting the server? I currently have in my jetty-web.xml:</p> <pre><code>&lt;?xml version="1.0" encoding="ISO-8859-1"?&gt; &lt;!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" "http://www.eclipse.org/jetty/configure.dtd"&gt; &lt;!-- This is the jetty specific web application configuration file. When starting a Web Application, the WEB-INF/web-jetty.xml file is looked for and if found, treated as a org.eclipse.jetty.server.server.xml.XmlConfiguration file and is applied to the org.eclipse.jetty.servlet.WebApplicationContext objet --&gt; &lt;Configure class="org.eclipse.jetty.webapp.WebAppContext"&gt; &lt;Call class="org.eclipse.jetty.util.log.Log" name="debug"&gt; &lt;Arg&gt;executing jetty-web.xml&lt;/Arg&gt; &lt;/Call&gt; &lt;Set name="contextPath"&gt;/SimpleDynamicProject&lt;/Set&gt; &lt;/Configure&gt; </code></pre> <p>I also have created a SimpleDynamicProject.xml and put it in JETTY_HOME/contexts. This file contains:</p> <pre><code>&lt;?xml version="1.0" encoding="ISO-8859-1"?&gt; &lt;!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" "http://www.eclipse.org/jetty/configure.dtd"&gt; &lt;!-- This is the jetty specific web application configuration file. When starting a Web Application, the WEB-INF/web-jetty.xml file is looked for and if found, treated as a org.eclipse.jetty.server.server.xml.XmlConfiguration file and is applied to the org.eclipse.jetty.servlet.WebApplicationContext objet --&gt; &lt;Configure class="org.eclipse.jetty.webapp.WebAppContext"&gt; &lt;Set name="contextPath"&gt;/SimpleDynamicProject&lt;/Set&gt; &lt;Set name="resourceBase"&gt;&lt;SystemProperty name="jetty.home" default="."/&gt;/webapps/SimpleDynamicProject&lt;/Set&gt; &lt;/Configure&gt; </code></pre> <p>I am also not sure how to correctly start Jetty in debug mode which I read was also needed. I have tried starting the server with:</p> <pre><code>java -Xdebug -jar start.jar OPTIONS=Server,jsp </code></pre> <p>and</p> <pre><code>java -Ddebug -jar start.jar OPTIONS=Server,jsp </code></pre> <p>This is the first time I've used jetty, but so far I really like it.</p> <p>Thanks for the help.</p>
    singulars
    1. This table or related slice is empty.
    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.
 

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