cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel Fagerstrom <dani...@nada.kth.se>
Subject Jetty and Eclipse
Date Fri, 13 Jan 2006 13:27:15 GMT
Even if the Jetty6 plugin for Maven is an important step, the jar 
copying in mvn war:inplace, doesn't give the right snappy feeling for 
Cocoon core development. I wanted to start the Webserver in Eclipse 
instead, and found a Jetty plugin http://jettylauncher.sourceforge.net/.

Besides installing the plugin in Eclipse you need to install a Jetty 5 
http://jetty.mortbay.org/.

Then you just point to your projects that contain a webapp 
(cocoon-webapp or cocoon-blocks-fw-samples) and do:

  Run As -> Run ... -> Jetty Web -> New

There you need to configure the home of your Jetty instalation and the 
webapp directory of the project (src/main/webapp). The only less obvious 
thing that is harder to find in the documentation is that you need to 
define a logger, e.g.

  Set 
-Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.SimpleLog 
in the Arguments part of the configuration.

Then you just push Run and point your browser to 
http://localhost:8080/[context-name], and you run Jetty directly on the 
code you are developing.

                 --- o0o ---

Is this the way the rest of you develop? Or are there other or better ways?

/Daniel


Mime
View raw message