Why is my war launched during the war looking for org.apache.juli.logging.LogFactory?

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(); } } 
+4
source share
1 answer

You have an old JspServlet somewhere in your assembly (the error you inserted is from JspServlet from Tomcat 6!)

Make sure that you use the same server-side JSP banks that jetty-distribution--7.5.0.v2011090 uses jetty-distribution--7.5.0.v2011090 .

Here is the list that Jetty comes with ..

 [jetty-distribution-7.5.0.v20110901]$ sha1sum lib/jsp/*.jar 84d1928dbcf564dab574577ac454ef7cacec2b9a lib/jsp/com.sun.el_1.0.0.v201004190952.jar 5618cc694d1e1ce8956fa441b551c8b690547fab lib/jsp/ecj-3.6.jar b4628cebfe2612db3c646ffbde43029fd3d0d7a0 lib/jsp/javax.el_2.1.0.v201004190952.jar 2c891df2ef4882fd250d34d7a873061bf4c3d9bc lib/jsp/javax.servlet.jsp_2.1.0.v201004190952.jar 582f581db2e9646d1f61313f3d96ced8c0acdac5 lib/jsp/javax.servlet.jsp.jstl_1.2.0.v201004190952.jar 3bd086e9e7bdcff906ad25fed4e5805ad101fc5e lib/jsp/jetty-jsp-2.1-7.5.0.v20110901.jar 3ec4b7e53369ed311a3171fe6b73beb773a46e25 lib/jsp/jsp-impl-2.1.3-b10.jar b070c22fe31d84de75135da39faff654fe42c933 lib/jsp/org.apache.taglibs.standard.glassfish_1.2.0.v201004190952.jar 

Jetty uses Apache's Jasper compiler with Glassfish modifications.

+3
source

All Articles