Configure Jetty in Eclipse

I am trying to follow the tapestry tutorial. (http://tapestry.apache.org/tapestry5.1/tutorial1/env.html) The tutorial recommends Jetty 5.1, so I can use the JettyLauncher plugin to run Jetty applications from within Eclipse. Right now, Jetty is in version 7, I believe. I do not want to start with an outdated web server. Are there any eclipse plugins in Jetty 7 that are similar to what I think Jetty 5.1 + Jetty Launcher should do?

thank

EDIT: I am trying to run Runty Run and m2eclipse. Let's see how it works.

+5
source share
4 answers

→ → → , . " ". Jetti. , , WTP (.. ).

+5

Jetty m2eclipse (jetty: run) . , Jetty (.. ). Jetty 6, . Jetty 7, , , 7:

Server server = new Server(8080);

WebAppContext webapp = new WebAppContext();
webapp.setParentLoaderPriority(true);
webapp.setContextPath("/");
webapp.setWar("src/main/webapp");
server.setHandler(webapp);
try {
    server.start();
    server.join();
}
catch (Exception e) {
    e.printStackTrace();
}
+4

Run-Jetty-Run, Run-Jetty-Run, , , .

http://code.google.com/p/run-jetty-run/issues/list

, .

+3

Maven! Jetty pom.xml!

<plugin>
  <groupId>org.mortbay.jetty</groupId>
  <artifactId>maven-jetty-plugin</artifactId>
  <version>6.1.9</version>
  <configuration>
    <requestLog implementation="org.mortbay.jetty.NCSARequestLog">
      <append>true</append>
    </requestLog>
  </configuration>
</plugin>

Run Configurations Maven Build! - - - , -Djetty.port = 8900 :

, , : http://localhost:8900

+1

All Articles