The current jetty plugin uses jetty6. On 2/15/07, Joe Trewin <[EMAIL PROTECTED]> wrote:
If you want to use the JettyLauncher plugin for Eclipse - I think it only works with Jetty 5, not Jetty 6.If you want to use Jetty 6 then you can't use the plugin, but you can launch from Eclipse easily enough just by making your own little launcher class - for example: import org.mortbay.jetty.Connector; import org.mortbay.jetty.Handler; import org.mortbay.jetty.Server; import org.mortbay.jetty.handler.ContextHandlerCollection; import org.mortbay.jetty.handler.DefaultHandler; import org.mortbay.jetty.handler.HandlerCollection; import org.mortbay.jetty.nio.SelectChannelConnector; import org.mortbay.jetty.webapp.WebAppContext; public class JettyLauncher { public static void main(String[] args) throws Exception { String path = (args.length > 0 ? args[0] : "web"); Server server = new Server(); Connector connector = new SelectChannelConnector(); connector.setPort(8080); server.setConnectors(new Connector[] { connector }); HandlerCollection handlers = new HandlerCollection(); ContextHandlerCollection contexts = new ContextHandlerCollection(); handlers.setHandlers(new Handler[] { contexts, new DefaultHandler() }); server.setHandler(handlers); new WebAppContext(contexts, path, "/"); server.setStopAtShutdown(true); server.setSendServerVersion(true); server.start(); server.join(); } } > -----Original Message----- > From: Daniel Honig [mailto:[EMAIL PROTECTED] > Sent: 15 February 2007 14:33 > To: Tapestry users > Subject: Re: My crap development environment > > Murray, > I really enjoyed using Jetty with the Eclipse startup > plugin on a project I did a while back. I would highly > reccomend abandoing tomcat for development and using Jetty > during your development. If you have dependencies to tomcat > functionality you might want to mock it out > during dev., it will definetly save you time. Get the Jetty plugin > and I think you'll have alot of your issues resolved. > > best, > -dh > > > On 2/14/07, Murray Collingwood <[EMAIL PROTECTED]> wrote: > Hi all > > > > I have suffered long and hard under Eclipse and Tomcat. Is > it really > > necessary for me to wait so long while a file is saved or > an application is published??? > > > > Saving a .java file: 15 seconds > > Saving a .html file: 15 seconds > > Saving a .jwc file: 28 seconds > > > > Stopping the tomcat server: 2 seconds (acceptable) > Publishing to the > > tomcat server: 45 seconds Starting the tomcat server: 54 > seconds (it > > insists on publishing first) > > > > Does everybody else experience these delays or is it just me? > > > > It was suggested that I use maven2 - however I looked through the > > maven2 flash presentation and it didn't mention anything > about making > > my development work in Eclipse faster - it was more focused > on pulling > > dependencies and easing the build process. And if I were > to install > > maven2 would it change any of the above anyway??? > > > > Cheers > > mc > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
