Hi, don't forget that the jndi resource needs to be declared in the web.xml, as well.
<resource-ref> <res-ref-name>jdbc/Chicago</res-ref-name> <res-type>javax.sql.DataSource</res-type> <res-auth>Container</res-auth> </resource-ref> Chantal On Mon, 2011-10-31 at 10:01 +0100, Martin Grigorov wrote: > It depends how you have configured your DataSource in Spring's .xml. > It should be looked up from JNDI. > > This problem is Spring related, not Wicket. Please ask for more help > in Spring's forums or StackOverflow. > > On Sun, Oct 30, 2011 at 4:42 PM, vela <vela....@gmail.com> wrote: > > Hi, > > > > I have configured db configuration in conf/server.xml in tomcat. Is this > > fine or extra configuration has to be done. > > > > > > > > <Context path="/Chicago"> > > <Resource name="jdbc/Chicago" > > auth="Container" > > driverClassName="com.mysql.jdbc.Driver" > > type="javax.sql.DataSource" > > username="root" > > password="sakthi" > > url="jdbc:mysql://localhost:3306/test" maxWait="10000" > > maxActive="60" minIdle = "0" maxIdle="30" > > removeAbandoned="true" removeAbandonedTimeout="120" > > testOnBorrow="false" testOnReturn="false" testWhileIdle="true" > > validationQuery="SELECT 1" timeBetweenEvictionRunsMillis="59000" > > minEvictableIdleTimeMillis="58000" /> > > </Context> > > > > > > > > > > -- > > View this message in context: > > http://apache-wicket.1842946.n4.nabble.com/DI-in-wicket-tp3824880p3953328.html > > Sent from the Users forum mailing list archive at Nabble.com. > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > > For additional commands, e-mail: users-h...@wicket.apache.org > > > > > > > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org