[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Re: Table not found in statement when using MSSQL

2006-03-28 Thread datta55
I made it work. First, I deleted the default DataSource configuration that comes with JBoss4 ($JBOSS_HOME/server/default/deploy/hsqldb-ds.xml). Second, I changed the name for Datasource lookup from DataSource ds = (DataSource) context.lookup("java:comp/env/jdbc/MSSQLDS"); to DataSource ds = (Data

[JBoss-user] [Persistence,JBoss/CMP, Hibernate, Database] - Table not found in statement when using MSSQL

2006-03-26 Thread datta55
I am getting this exception when executing a Statement from a Stateless Session Bean. EJBException:; nested exception is: javax.ejb.EJBException: Unable to get price: java.sql.SQLException: Table not found in statement [SELECT price FROM price WHERE product_code = ?] This is where it fails (in

[JBoss-user] [JNDI/Naming/Network] - Re: java:comp/env problem

2006-03-23 Thread datta55
I am getting the same error. I created a sample application, as described in tutorial http://docs.jboss.com/jbosside/tutorial/build/en/html/index.html. When I test the application I get 17:00:15,540 INFO [STDOUT] javax.naming.NamingException: Could not dereference object [Root exception is ja