20060310 Friday March 10, 2006

Jetty 6 Maven Plugin now works with SiteMesh (and Equinox) The 1.6 version of Equinox contains commented-out settings for Maven 2 Jetty Plugin. The reason these are commented-out is because this plugin didn't work with SiteMesh at the time. I checked again today, and it looks like they got it fixed. See Brett's post titled Developing with Jetty: Where Have You Been All My Life? to see why this plugin is so cool.

Using this plugin (or the JettyLauncher in Eclipse) makes it pretty damn easy to do develop Java webapps. There's no longer a deploy cycle, just save and refresh your browser. IMO, it's almost as good as using a scripting language or developing with HTML/CSS/JavaScript.

I'd love to see someone develop a TomcatLauncher, a WinstoneLauncher and Maven 2 Plugins for both. AppFuse works with Winstone 0.8.1 (a wicked fast servlet container with a good story behind its name).

In other Jetty news, Jan Bartel posted a nice tutorial today titled How To Use JOTM as the XA Transaction Manager in Jetty6. Posted in Java at Mar 10 2006, 12:08:31 PM MST 4 Comments

Comments:

little bit off the topic, any version of Equinox that would work in Servlet 2.3. I'm using Orion, and it makes my Java webapps development super fast and easy.

Posted by Martin Stone on March 10, 2006 at 02:30 PM MST #

To change the web frameworks that use JSP, you'd have to change web.xml from 2.4 to 2.3 and then change all ${} references to <c:out value="${}"&;gt. The easier way might to use a 2.3 web.xml with Spring MVC - there's FreeMarker and Velocity versions available that don't use JSPs.

Posted by Matt Raible on March 10, 2006 at 02:51 PM MST #

Did you find a way to configure jndi resources like datasources and mail sessions under jetty? I know equinox is managing its own resources inside spring application contexts but this way of doing is not an option for some people. Big companies often split development and deployment accross different teams so that the first one should indicate in web.xml that a datasource is needed and the second team would configure it through application server specific console/descriptors (weblogic in my case).

Posted by Xavier Dury on March 11, 2006 at 04:48 PM MST #

Got it up and running so now happily type mvn jetty6:run and indeed its quick and seemless when i make my jsp pages. However just wondering how I attach the debugger (remote or otherwise). I wanted to debug one of my tags that doesnt work now I have moved things accross. Any ideas?

Posted by Ben Greenway on March 21, 2006 at 06:21 AM MST #

Post a Comment:
  • HTML Syntax: Allowed
Click me to subscribe
Matt Raible is a Web Architecture Consultant specializing in open source frameworks.
« May 2012
SunMonTueWedThuFriSat
  
1
2
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
23
24
25
26
27
28
29
30
31
  
       
Today

Recent Entries

Tag Cloud