2 Replies Latest reply on Dec 25, 2004 9:12 AM by puneetjains

    javax.naming.NameNotFoundException: hibernate not bound

    tads

      Hi all,

      I´m using JBoss 3.2.3 with Hibernate 2.0.2, Oracle 8.1.7.

      I created a .sar that contains the beans and the jboss-service.xml.
      I put this .sar into ../default/deploy and the arq.war too.

      But when I start the jBoss the following exception occurs:

      javax.naming.NameNotFoundException: hibernate not bound.

      When I go to the jmx-console to verify the jndi, the jndiName
      is java:/hibernate/HibernateFactory.

      I´m using HibernatePlugin.java to get the SessionFactory:

      InitialContext ctx = new InitialContext();
      this.factory = (SessionFactory)ctx.lookup("java:/hibernate/HibernateFactory");
      
      


      but this code returns the exception above.

      What is the error?

      thank you very much

      []´s