In your hibernate.cfg.xml, remove the "name" attribute from the <session-factory> element.
<?xml version="1.0"?> <!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" " http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"> <hibernate-configuration> <session-factory> <mapping class="com.nike.mdm.poc.model.Person"/> <mapping class="org.appfuse.model.User"/> <mapping class="org.appfuse.model.Role"/> </session-factory> </hibernate-configuration> I also removed the personDao bean definition from the XML. Result: ------------------------------------------------------- T E S T S ------------------------------------------------------- <snip/> Tests run: 3, Failures: 0, Errors: 0, Skipped: 0 [INFO] [jar:jar {execution: default-jar}] [INFO] Building jar: /Users/mraible/Desktop/osssoa/core/target/core-1.0-SNAPSHOT.jar [INFO] [install:install {execution: default-install}] [INFO] Installing /Users/mraible/Desktop/osssoa/core/target/core-1.0-SNAPSHOT.jar to /Users/mraible/.m2/repository/com/nike/mdm/poc/core/1.0-SNAPSHOT/core-1.0-SNAPSHOT.jar [INFO] ------------------------------------------------------------------------ [INFO] BUILD SUCCESSFUL [INFO] ------------------------------------------------------------------------ [INFO] Total time: 13 seconds [INFO] Finished at: Fri Sep 17 00:34:57 MDT 2010 [INFO] Final Memory: 48M/98M [INFO] ------------------------------------------------------------------------ mraible-15:core mraible$ On Thu, Sep 16, 2010 at 12:55 PM, jackalista <j...@twaxx.com> wrote: > > Yes, I just figured that out, but thanks. I added a short statement to the > page about how you should comment out the reference to the generic Dao if > you are writing java code as that did reduce the exceptions to the one > about > JNDI which you had mentioned you think has something to do with hibernate. > > I tried using the annotation as well as using the XML for writing your own > Dao but neither way worked, I am still getting the JNDI exception. Were > you > able to reproduce it? > -- > View this message in context: > http://appfuse.547863.n4.nabble.com/problem-with-hibernate-tutorial-imports-for-annotations-tp2541421p2542771.html > Sent from the AppFuse - User mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@appfuse.dev.java.net > For additional commands, e-mail: users-h...@appfuse.dev.java.net > >