Em Thu, 24 Sep 2009 10:56:17 -0300, Ilya Obshadko
<ilya.obsha...@gmail.com> escreveu:
I'm totally OK with Jetty, but it demonstrates pretty the same behavior
if running inside Eclipse IDE server adaptor. Probably I'm missing
something
obvious?
I run Jetty in embedded mode: add it to the classpath (using Maven, with
the test scope) and use this snippet to run it:
Server server = new Server(8080);
WebAppContext webapp = new WebAppContext();
webapp.setParentLoaderPriority(true);
webapp.setContextPath("/");
webapp.setWar("src/main/webapp"); // or any other exploded root webapp
folder
webapp.setDefaultsDescriptor("src/main/webapp/WEB-INF/webdefault.xml"); //
only needed in Windows because of the file locking issue
server.setHandler(webapp);
try {
server.start();
server.join();
}
catch (Exception e) {
e.printStackTrace();
}
--
Thiago H. de Paula Figueiredo
Independent Java consultant, developer, and instructor
http://www.arsmachina.com.br/thiago
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org