Posted by jdlee
on February 22, 2006 at 9:44 AM PST
I'm trying to deploy an app (EJB3) to Glassfish, and I'm having trouble with the JNDI lookup, so I'm hoping someone here can help me (I cross-posted this question to the Spring forum).
In the constructor for my stateless session bean, I grab the Spring context, then retrieve the JdbcTemplate and set that on my bean (which extends JdbcDaoSupport). Here's my applicationContext.xml
<?xml version="1.0" encoding="UTF-8"?>
Some notes on the definition for brandNameProductDataSource. The bean deploys and runs great un JBoss 4 if I uncomment the resourceRef line, and change the JNDI name to java:jdbc/ItemMap. On Glassfish, however, I get errors like this:
Caused by: org.springframework.beans.factory.BeanCreationExce ption: Error creating bean with name 'brandNameProductDataSource' defined in class path resource [applicationContext.xml]: Initialization of bean failed; nested exception is javax.naming.NamingException: invocation exception
For the JNDI name, I've tried every combination I can think of
All to no avail. Has anyone run across a similar scenario and had any luck? Thanks!