Hi, I am trying to configure a jndi datasource thru' my spring beans. I added jetty-env.xml for Jetty to recognize the datasource. However, it still gives me the error
framework.beans.factory.BeanCreationException: Error creating bean with name 'da taSource' defined in class path resource [applicationContext.xml]: Invocation of init method failed; nested exception is javax.naming.NameNotFoundException; rem aining name 'jdbc/SADS Here's my jetty-env.xml <?xml version="1.0"?> <!DOCTYPE Configure PUBLIC "-//Mort Bay Consulting//DTD Configure//EN" "http://jetty.mortbay.org/configure.dtd"> <Configure class="org.mortbay.jetty.webapp.WebAppContext"> <New id="SADS" class="org.mortbay.jetty.plus.naming.Resource"> <Arg>jdbc/SADS</Arg> <Arg> <New class="com.mysql.jdbc.jdbc2.optional.MysqlConnectionPoolDataSource"> <Set name="Url">jdbc:mysql://Europa/SA</Set> <Set name="User">hacker</Set> <Set name="Password">anonym</Set> </New> </Arg> </New> </Configure> Here's my datasource definition: <bean id="dataSource" class="org.springframework.jndi.JndiObjectFactoryBean"> <property name="jndiName" value="jdbc/SADS"/> </bean> Anyone configured this before. Thanks for your help!! -- View this message in context: http://www.nabble.com/jndi-datasource-config-in-Jetty-tf3879248s2369.html#a10993272 Sent from the AppFuse - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
