0 Replies Latest reply on Jul 2, 2009 5:50 AM by René Huguet

    JBoss 5 with Hibernate javax.naming.NameNotFoundException: h

    René Huguet Newbie

      I am migrating a 4.0.2 JBOSS app which uses hibernate to JBOSS 5.0.1 GA but if i try to get a hibernate session
      i keep getting the following error in JBOSS:

      javax.naming.NameNotFoundException: hibernate not bound

      The deployment of my UserEjb works fine (see log below) but the org.hibernate.SessionFactory of my .har in the JBoss JMX-Management Console = null.
      On JBoss 4 the Application works fine.

      Anyone know why this would happen? Is there some change in hibernate in JBOSS 5?

      Thanks!
      René

      Deployment Log:
      2009-07-02 10:08:59,643 DEBUG [org.jboss.deployment.OptAnnotationMetaDataDeployer] (HDScanner) Deployment is metadata-complete, skipping annotation processing, ejbJarMetaData=org.jboss.metadata.ejb.spec.EjbJar20MetaData@1f, jbossWebMetaData=null, jbossClientMetaData=null, metaDataCompleteIsDefault=false
      2009-07-02 10:08:59,721 DEBUG [org.jboss.deployment.MappedReferenceMetaDataResolverDeployer] (HDScanner) vfszip:/D:/Programme/jboss-5.0.1.GA/server/prodega/deploy/UserEJB.ear/ endpoint mappings:
      + ejb/UserEJB.jar#ejb/UserEjb -> ContainerDependencyMetaData(deploymentPath=UserEJB.jar,componentName=ejb/UserEjb,containerName=ejb/UserEjb,jndiNames=[ejb/UserEjb, UserEJB/ejb/UserEjb],jndiAliasDepends=[],targets=[],jndiDepends=[])

      2009-07-02 10:08:59,721 DEBUG [org.jboss.deployment.MappedReferenceMetaDataResolverDeployer] (HDScanner) Processing unit=UserEJB.jar, structure:
      UserEJB.ear

      +UserEJB.har

      +UserEJB.jar
      ++EjbEndpoint:ejbName=ejb/UserEjb,ejbClass=com.prodega.user.ejb.UserEjb,home=com.prodega.user.interfaces.UserEjbHome,remote=com.prodega.user.interfaces.UserEjb


      2009-07-02 10:08:59,721 INFO [org.jboss.ejb3.deployers.Ejb3DependenciesDeployer] (HDScanner) Encountered deployment AbstractVFSDeploymentContext@13744184{vfszip:/D:/Programme/jboss-5.0.1.GA/server/prodega/deploy/UserEJB.ear/UserEJB.jar/}
      2009-07-02 10:08:59,721 INFO [org.jboss.ejb3.deployers.Ejb3DependenciesDeployer] (HDScanner) Encountered deployment AbstractVFSDeploymentContext@13744184{vfszip:/D:/Programme/jboss-5.0.1.GA/server/prodega/deploy/UserEJB.ear/UserEJB.jar/}
      2009-07-02 10:08:59,721 INFO [org.jboss.ejb3.deployers.Ejb3DependenciesDeployer] (HDScanner) Encountered deployment AbstractVFSDeploymentContext@13744184{vfszip:/D:/Programme/jboss-5.0.1.GA/server/prodega/deploy/UserEJB.ear/UserEJB.jar/}
      2009-07-02 10:08:59,752 INFO [org.jboss.ejb.deployers.EjbDeployer] (HDScanner) installing bean: ejb/UserEJB.jar#ejb/UserEjb,uid20239039
      2009-07-02 10:08:59,752 INFO [org.jboss.ejb.deployers.EjbDeployer] (HDScanner) with dependencies:
      2009-07-02 10:08:59,752 INFO [org.jboss.ejb.deployers.EjbDeployer] (HDScanner) and supplies:
      2009-07-02 10:08:59,752 INFO [org.jboss.ejb.deployers.EjbDeployer] (HDScanner) jndi:ejb/UserEjb
      2009-07-02 10:08:59,752 INFO [org.jboss.ejb.deployers.EjbDeployer] (HDScanner) jndi:UserEJB/ejb/UserEjb
      2009-07-02 10:08:59,955 INFO [org.jboss.ejb.EjbModule] (HDScanner) Deploying ejb/UserEjb
      2009-07-02 10:09:00,033 WARN [org.jboss.ejb.EjbModule] (HDScanner) EJB configured to bypass security. Please verify if this is intended. Bean=ejb/UserEjb Deployment=vfszip:/D:/Programme/jboss-5.0.1.GA/server/prodega/deploy/UserEJB.ear/UserEJB.jar/
      2009-07-02 10:09:00,330 INFO [org.jboss.proxy.ejb.ProxyFactory] (HDScanner) Bound EJB Home 'ejb/UserEjb' to jndi 'ejb/UserEjb'