My apology for that I skipped the reading the preceding paragraphs in the
same web page.  Yes, I now see that I need the separate classes for the
hibernate migration to Geronimo.

Thanks,

Young



                                                                           
             "Manu George"                                                 
             <[EMAIL PROTECTED]                                             
             ail.com>                                                   To 
                                       [email protected]            
             20/04/2006 06:09                                           cc 
             AM                                                            
                                                                   Subject 
                                       Re: Can I get the example           
             Please respond to         hibernate.cfg.xml for geronimo      
             [EMAIL PROTECTED]         application deployment?             
                  che.org                                                  
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           




Hi Young,
                 You need to add that class yourself as Hibernate currently
does not provide it. It is given in the article how to write it. The error
you are getting seems to be because hibernate is unable to lookup the
datasource from the JNDI Context. Check if you have given the correct name
in hibernate-cfg.xml

Regards
Manu

On 4/20/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
  I am using hibernate-2.0.3.jar.  I went to the following link to learn
  how
  to write hibernate.cfg.xml:
  
http://opensource.atlassian.com/confluence/oss/display/GERONIMO/JBoss+to+Geronimo+-+Hibernate+Migration


  It is strange that I do not see
  org.hibernate.transaction.GeronimoTransactionManagerLookup from hibernate

  3.x jar file.

  At the moment, I am having the exception of

  16:46:23,617 FATAL [DatasourceConnectionProvider] Could not find
  datasource: datasource/wlbx-ds
  javax.naming.NameNotFoundException: datasource
          at
  com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:90)
          at
  com.sun.jndi.rmi.registry.RegistryContext.lookup(RegistryContext.java:98)
          at javax.naming.InitialContext.lookup (InitialContext.java:347)
          at
  
net.sf.hibernate.connection.DatasourceConnectionProvider.configure(DatasourceConnectionProvider.java:45)

          at
  net.sf.hibernate.connection.ConnectionProviderFactory.newConnectionProvider
 (ConnectionProviderFactory.java:83)
          at
  net.sf.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:153)

          at
  net.sf.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java
  :627)

  Thank you all very much in advance.


  Young



Reply via email to