I am trying to deploy a war file from the embedded pier server. I have a registration database in WEB-INF / lib of my WAR. The JspServlet init method looks for this class org.apache.juli.logging.LogFactory. I am using Jetty 7.5.
In a study of how to deploy wars with embedded Jetty, I also saw problems with jsps. Could this be related to this since JspServlet is looking for this class?
WAR is extremely simple, basically a HelloWorld example for Spring MVC 3. For now, I'm just prototyping. Jetty Server is also pretty bare bones, here it is:
public class JettyServer extends Server { Server server; int port; public JettyServer(int port) { server = new Server(port); WebAppContext webapp = new WebAppContext(); webapp.setContextPath("/"); webapp.setWar("webapps/myWar.war"); server.setHandler(webapp); } public void startServer() throws Exception { server.start(); server.join(); } }
source share