maven jetty jndi错误
2013-07-22 16:26:57.251:WARN::Configuration problem at <resource-ref>|| <description>GuestBook</description>| <res-ref-name>jdbc/MaizuoSMS</res-ref-name> | <res-type>javax.sql.DataSource</res-type>| <res-auth>Container</res-auth> || </resource-ref>: java.lang.IllegalStateException: Nothing to bind for name javax.sql.DataSource/default
2013-07-22 16:26:57.252:WARN::Failed startup of context org.mortbay.jetty.plugin.Jetty6PluginWebAppContext@f2f0d0{/,E:\workspace\smsProject\src\main\webapp}
javax.servlet.UnavailableException: Configuration problem
解决方案:
去掉web.xml中的<resource-ref>配置,去掉jetty-env.xml 中的<Arg></Arg>