You're right. Here is the console output:
| INFO 05-07 05:51:03,996 (Log4JLogger.java:info:94) -Component: cart, scope: SESSION, type: STATEFUL_SESSION_BEAN, class: com.jboss.dvd.seam.ShoppingCartBean, JNDI: jboss-seam-dvd-1.0/ShoppingCartBean/local | INFO 05-07 05:51:04,010 (Log4JLogger.java:info:94) -done initializing Seam | INFO 05-07 05:51:04,190 (Log4JLogger.java:info:94) -Hibernate EntityManager 3.2.0.CR1 | INFO 05-07 05:51:04,320 (Log4JLogger.java:info:94) -Hibernate Annotations 3.2.0.CR1 | INFO 05-07 05:51:04,364 (Log4JLogger.java:info:94) -Hibernate 3.2 cr2 | INFO 05-07 05:51:04,374 (Log4JLogger.java:info:94) -hibernate.properties not found | INFO 05-07 05:51:04,381 (Log4JLogger.java:info:94) -Bytecode provider name : cglib | INFO 05-07 05:51:04,451 (Log4JLogger.java:info:94) -using JDK 1.4 java.sql.Timestamp handling | FATAL 05-07 05:51:05,805 (Log4JLogger.java:fatal:124) -import.sqlO-:-Ofalse | FATAL 05-07 05:51:05,807 (Log4JLogger.java:fatal:124) -META-INF/dvd-ds.xmlO-:-Ofalse | FATAL 05-07 05:51:05,810 (Log4JLogger.java:fatal:124) -META-INF/ejb-jar.xmlO-:-Ofalse | FATAL 05-07 05:51:05,812 (Log4JLogger.java:fatal:124) -META-INF/persistence.xmlO-:-Ofalse | FATAL 05-07 05:51:05,813 (Log4JLogger.java:fatal:124) -seam.propertiesO-:-Ofalse | INFO 05-07 05:51:06,079 (Log4JLogger.java:info:94) -Binding entity from annotated class: com.jboss.dvd.seam.User | INFO 05-07 05:51:06,189 (Log4JLogger.java:info:94) -Bind entity com.jboss.dvd.seam.User on table USERS | INFO 05-07 05:51:06,385 (Log4JLogger.java:info:94) -Binding entity from annotated class: com.jboss.dvd.seam.Order | INFO 05-07 05:51:06,388 (Log4JLogger.java:info:94) -Bind entity com.jboss.dvd.seam.Order on table ORDERS | INFO 05-07 05:51:06,524 (Log4JLogger.java:info:94) -Binding entity from annotated class: com.jboss.dvd.seam.Actor | INFO 05-07 05:51:06,525 (Log4JLogger.java:info:94) -Bind entity com.jboss.dvd.seam.Actor on table ACTORS | INFO 05-07 05:51:06,529 (Log4JLogger.java:info:94) -Binding entity from annotated class: com.jboss.dvd.seam.Product | INFO 05-07 05:51:06,531 (Log4JLogger.java:info:94) -Bind entity com.jboss.dvd.seam.Product on table PRODUCTS | INFO 05-07 05:51:06,595 (Log4JLogger.java:info:94) -Binding entity from annotated class: com.jboss.dvd.seam.Admin | INFO 05-07 05:51:06,645 (Log4JLogger.java:info:94) -Binding entity from annotated class: com.jboss.dvd.seam.OrderLine | INFO 05-07 05:51:06,651 (Log4JLogger.java:info:94) -Bind entity com.jboss.dvd.seam.OrderLine on table ORDERLINES | INFO 05-07 05:51:06,658 (Log4JLogger.java:info:94) -Binding entity from annotated class: com.jboss.dvd.seam.Category | INFO 05-07 05:51:06,661 (Log4JLogger.java:info:94) -Bind entity com.jboss.dvd.seam.Category on table CATEGORIES | INFO 05-07 05:51:06,665 (Log4JLogger.java:info:94) -Binding entity from annotated class: com.jboss.dvd.seam.Inventory | INFO 05-07 05:51:06,667 (Log4JLogger.java:info:94) -Bind entity com.jboss.dvd.seam.Inventory on table INVENTORY | INFO 05-07 05:51:06,680 (Log4JLogger.java:info:94) -Binding entity from annotated class: com.jboss.dvd.seam.Customer | INFO 05-07 05:51:06,732 (Log4JLogger.java:info:94) -Mapping collection: com.jboss.dvd.seam.Order.orderLines -> ORDERLINES | INFO 05-07 05:51:07,023 (Log4JLogger.java:info:94) -JNDI InitialContext properties:{} | FATAL 05-07 05:51:07,039 (Log4JLogger.java:fatal:129) -Could not find datasource: java:/dvdDatasource | javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial | at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:645) | at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247) | at javax.naming.InitialContext.getURLOrDefaultInitCtx(InitialContext.java:284) | at javax.naming.InitialContext.lookup(InitialContext.java:351) | at org.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:52) | at org.hibernate.connection.ConnectionProviderFactory.newConnectionProvider(ConnectionProviderFactory.java:124) | at org.hibernate.ejb.InjectionSettingsFactory.createConnectionProvider(InjectionSettingsFactory.java:29) | at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:61) | at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1928) | at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1211) | at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:631) | at org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configuration.java:760) | at org.hibernate.ejb.Ejb3Configuration.createFactory(Ejb3Configuration.java:151) | at org.hibernate.ejb.Ejb3Configuration.createEntityManagerFactory(Ejb3Configuration.java:205) | at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:114) | at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:37) | at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:27) | at com.jboss.dvd.seam.test.ProductUnitTest.em(ProductUnitTest.java:22) | at com.jboss.dvd.seam.test.ProductUnitTest.testRequiredAttributes(ProductUnitTest.java:36) | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:585) | at org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:552) | at org.testng.internal.Invoker.invokeMethod(Invoker.java:407) | at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:778) | at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:105) | at org.testng.TestRunner.privateRun(TestRunner.java:682) | at org.testng.TestRunner.run(TestRunner.java:566) | at org.testng.SuiteRunner.privateRun(SuiteRunner.java:220) | at org.testng.SuiteRunner.run(SuiteRunner.java:146) | at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:713) | at org.testng.TestNG.runSuitesLocally(TestNG.java:676) | at org.apache.maven.surefire.testng.TestNGExecutor.executeTestNG(TestNGExecutor.java:64) | at org.apache.maven.surefire.testng.TestNGXmlTestSuite.execute(TestNGXmlTestSuite.java:75) | at org.apache.maven.surefire.Surefire.run(Surefire.java:129) | at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) | at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | at java.lang.reflect.Method.invoke(Method.java:585) | at org.apache.maven.surefire.booter.SurefireBooter.runSuitesInProcess(SurefireBooter.java:261) | at org.apache.maven.surefire.booter.SurefireBooter.main(SurefireBooter.java:781) | FATAL 05-07 05:51:07,172 (Log4JLogger.java:fatal:124) -import.sqlO-:-Ofalse | FATAL 05-07 05:51:07,174 (Log4JLogger.java:fatal:124) -META-INF/dvd-ds.xmlO-:-Ofalse | FATAL 05-07 05:51:07,179 (Log4JLogger.java:fatal:124) -META-INF/ejb-jar.xmlO-:-Ofalse | FATAL 05-07 05:51:07,182 (Log4JLogger.java:fatal:124) -META-INF/persistence.xmlO-:-Ofalse | FATAL 05-07 05:51:07,183 (Log4JLogger.java:fatal:124) -seam.propertiesO-:-Ofalse | INFO 05-07 05:51:07,187 (Log4JLogger.java:info:94) -Binding entity from annotated class: com.jboss.dvd.seam.User | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3955365#3955365 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3955365 Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user