If you luckly understand Chinese, Here is a serial document for this project.
Currently, JNDI DataSource couldn't worked for Jetty 6, but local DataSource done.
Below settings will always fail:
<bean id="dataSource"
class="org.springframework.jndi.JndiObjectFactoryBean">
<!-- for Jetty 6, the value is just a reference to the id in
jetty-evn.xml datasource.
see: http://docs.codehaus.org/display/JETTY/JNDI#JNDI-resref
But it didn't work by far.-->
<property name="jndiName" value="jdbc/hjpetstore"/>
See below screenshoots taken when running on different servers (see the footnote part: Running on ...)
First, my favorite, Jetty 6 (precisely 6.1.3)
Sun Application Server9.0 / GlassFish v1
Tomcat 5.5.17