4 Replies Latest reply on May 28, 2008 12:55 PM by henry_h

    hibernate.properties not found

    henry_h

      Hi
      i am deploying an EJB 3.0 project which includes entity beans as jar file to JBoss. MySql is my database and the configuration is deployed to:
      server/default/depoly
      When I start the server it breaks. I see that there is an entry:
      hibernate.properties not found
      But there are some hibernate jar files in the Jboss-home/client/lib and
      jboss-home/server/default/lib
      jboss-home/server/all/lib

      !!!!??????
      Thanks for your help
      Hier is the complete trace:
      ----------------------------------------------------

      23:57:34,830 INFO [Server] Starting JBoss (MX MicroKernel)...
      23:57:34,830 INFO [Server] Release ID: JBoss [Trinity] 4.2.0.GA (build: SVNTag=JBoss_4_2_0_GA date=200705111440)
      23:57:34,830 INFO [Server] Home Dir: C:\eclipse-jee\jboss-4.2.0.GA
      23:57:34,840 INFO [Server] Home URL: file:/C:/eclipse-jee/jboss-4.2.0.GA/
      23:57:34,860 INFO [Server] Patch URL: null
      23:57:34,860 INFO [Server] Server Name: default
      23:57:34,860 INFO [Server] Server Home Dir: C:\eclipse-jee\jboss-4.2.0.GA\server\default
      23:57:34,860 INFO [Server] Server Home URL: file:/C:/eclipse-jee/jboss-4.2.0.GA/server/default/
      23:57:34,920 INFO [Server] Server Log Dir: C:\eclipse-jee\jboss-4.2.0.GA\server\default\log
      23:57:34,920 INFO [Server] Server Temp Dir: C:\eclipse-jee\jboss-4.2.0.GA\server\default\tmp
      23:57:34,920 INFO [Server] Root Deployment Filename: jboss-service.xml
      23:57:35,892 INFO [ServerInfo] Java version: 1.6.0_05,Sun Microsystems Inc.
      23:57:35,892 INFO [ServerInfo] Java VM: Java HotSpot(TM) Client VM 10.0-b19,Sun Microsystems Inc.
      23:57:35,892 INFO [ServerInfo] OS-System: Windows XP 5.1,x86
      23:57:37,244 INFO [Server] Core system initialized
      23:57:42,141 INFO [WebService] Using RMI server codebase: http://127.0.0.1:8083/
      23:57:42,151 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:jboss-log4j.xml
      23:57:43,503 INFO [TransactionManagerService] JBossTS Transaction Service (JTA version) - JBoss Inc.
      23:57:43,503 INFO [TransactionManagerService] Setting up property manager MBean and JMX layer
      23:57:44,374 INFO [TransactionManagerService] Starting recovery manager
      23:57:44,764 INFO [TransactionManagerService] Recovery manager started
      23:57:44,764 INFO [TransactionManagerService] Binding TransactionManager JNDI Reference
      23:57:50,373 INFO [EJB3Deployer] Starting java:comp multiplexer
      23:57:55,320 INFO [ServiceEndpointManager] jbossws-1.2.1.GA (build=200704151756)
      23:58:00,006 INFO [AprLifecycleListener] The Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: C:\Programme\Java\jre1.6.0_05\bin;.;C:\WINDOWS\Sun\Java\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\Programme\Java\jre1.6.0_05\bin\client;C:\Programme\Java\jre1.6.0_05\bin;C:\WINDOWS\system32;C:\findbugs-1.2.1\bin;C:\Programme\Java\jdk1.6.0_02\bin;C:\Programme\QuickTime\QTSystem\;C:\PROGRA~1\IBM\SQLLIB\BIN;C:\PROGRA~1\IBM\SQLLIB\FUNCTION;C:\PROGRA~1\IBM\SQLLIB\SAMPLES\REPL;C:\Programme\Subversion\bin;C:\Programme\eRoom\eRoom Server\Sybase\;C:\Programme\Java\jdk1.6.0_02\bin;C:\WINDOWS\system32;C:\apache-ant-1.7.0\bin;C:\Programme\Subversion\bin
      23:58:00,287 INFO [Http11Protocol] Initializing Coyote HTTP/1.1 on http-127.0.0.1-8080
      23:58:00,287 INFO [AjpProtocol] Initializing Coyote AJP/1.3 on ajp-127.0.0.1-8009
      23:58:00,287 INFO [Catalina] Initialization processed in 859 ms
      23:58:00,297 INFO [StandardService] Starting service jboss.web
      23:58:00,307 INFO [StandardEngine] Starting Servlet Engine: JBossWeb/2.0.0.GA
      23:58:00,497 INFO [Catalina] Server startup in 206 ms
      23:58:00,938 INFO [TomcatDeployer] deploy, ctxPath=/, warUrl=.../deploy/jboss-web.deployer/ROOT.war/
      23:58:04,403 INFO [TomcatDeployer] deploy, ctxPath=/invoker, warUrl=.../deploy/http-invoker.sar/invoker.war/
      23:58:05,264 INFO [TomcatDeployer] deploy, ctxPath=/jbossws, warUrl=.../tmp/deploy/tmp17786jbossws-context-exp.war/
      23:58:05,624 INFO [TomcatDeployer] deploy, ctxPath=/jbossmq-httpil, warUrl=.../deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/
      23:58:11,493 INFO [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=.../deploy/management/console-mgr.sar/web-console.war/
      23:58:14,067 INFO [MailService] Mail Service bound to java:/Mail
      23:58:14,688 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-local-jdbc.rar
      23:58:14,888 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-xa-jdbc.rar
      23:58:15,118 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-local-jdbc.rar
      23:58:15,419 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-xa-jdbc.rar
      23:58:15,579 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jms/jms-ra.rar
      23:58:15,699 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/quartz-ra.rar
      23:58:15,759 INFO [QuartzResourceAdapter] start quartz!!!
      23:58:15,969 INFO [SimpleThreadPool] Job execution threads will use class loader of thread: main
      23:58:16,039 INFO [QuartzScheduler] Quartz Scheduler v.1.5.2 created.
      23:58:16,049 INFO [RAMJobStore] RAMJobStore initialized.
      23:58:16,049 INFO [StdSchedulerFactory] Quartz scheduler 'DefaultQuartzScheduler' initialized from default resource file in Quartz package: 'quartz.properties'
      23:58:16,049 INFO [StdSchedulerFactory] Quartz scheduler version: 1.5.2
      23:58:16,070 INFO [QuartzScheduler] Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started.
      23:58:18,723 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS'
      23:58:19,645 INFO [A] Bound to JNDI name: queue/A
      23:58:19,645 INFO [B] Bound to JNDI name: queue/B
      23:58:19,655 INFO [C] Bound to JNDI name: queue/C
      23:58:19,655 INFO [D] Bound to JNDI name: queue/D
      23:58:19,665 INFO [ex] Bound to JNDI name: queue/ex
      23:58:19,745 INFO [testTopic] Bound to JNDI name: topic/testTopic
      23:58:19,815 INFO [securedTopic] Bound to JNDI name: topic/securedTopic
      23:58:19,825 INFO [testDurableTopic] Bound to JNDI name: topic/testDurableTopic
      23:58:19,885 INFO [testQueue] Bound to JNDI name: queue/testQueue
      23:58:20,175 INFO [UILServerILService] JBossMQ UIL service available at : /127.0.0.1:8093
      23:58:20,456 INFO [DLQ] Bound to JNDI name: queue/DLQ
      23:58:20,876 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
      23:58:21,067 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=uwe-buch' to JNDI name 'java:uwe-buch'
      23:58:22,579 INFO [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.stateless.StatelessContainer
      23:58:22,609 INFO [JmxKernelAbstraction] installing MBean: jboss.j2ee:jar=kap02.jar,name=ErstesBean,service=EJB3 with dependencies:
      23:58:23,100 INFO [EJBContainer] STARTED EJB: server.kap02.ErstesBean ejbName: ErstesBean
      23:58:23,250 INFO [EJB3Deployer] Deployed: file:/C:/eclipse-jee/jboss-4.2.0.GA/server/default/deploy/kap02.jar
      23:58:23,791 INFO [JmxKernelAbstraction] creating wrapper delegate for: org.jboss.ejb3.entity.PersistenceUnitDeployment
      23:58:23,791 INFO [JmxKernelAbstraction] installing MBean: persistence.units:jar=kap09-xml.jar,unitName=JavaEE with dependencies:
      23:58:23,791 INFO [JmxKernelAbstraction] jboss.jca:name=uwe-buch,service=DataSourceBinding
      23:58:23,821 INFO [PersistenceUnitDeployment] Starting persistence unit persistence.units:jar=kap09-xml.jar,unitName=JavaEE
      23:58:23,901 INFO [Version] Hibernate EntityManager 3.2.1.GA
      23:58:23,971 INFO [Version] Hibernate Annotations 3.2.1.GA
      23:58:23,991 INFO [Environment] Hibernate 3.2.3
      23:58:24,011 INFO [Environment] hibernate.properties not found
      23:58:24,011 INFO [Environment] Bytecode provider name : javassist
      23:58:24,041 INFO [Environment] using JDK 1.4 java.sql.Timestamp handling

        • 1. Re: hibernate.properties not found
          jaikiran

           

          "henry_h" wrote:
          Hi
          When I start the server it breaks. I see that there is an entry:
          hibernate.properties not found

          23:58:24,011 INFO [Environment] hibernate.properties not found


          Its just an INFO message and you can ignore that.

          • 2. Re: hibernate.properties not found
            henry_h

            thanks,
            I went over to JBoss 5.0 Beta and I have no this error!
            Know i have another problem. I see in the JMX console that my EJBs are deployed and are activated , nevertheless I become this error when i am trying to run the client:
            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(Unknown Source)
            at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
            at javax.naming.InitialContext.getURLOrDefaultInitCtx(Unknown Source)
            at javax.naming.InitialContext.lookup(Unknown Source)
            at client.kap09.BankClient.main(BankClient.java:17)


            my client code snippet for the JNDI and naming look like follows :
            Context ctx = new InitialContext();

            Object ref = ctx.lookup("BankBean/remote");
            BankRemote bvr = (BankRemote) PortableRemoteObject
            .narrow(ref, BankVerwaltungRemote.class);

            BufferedReader din = new BufferedReader(new InputStreamReader(
            System.in));


            ????

            • 3. Re: hibernate.properties not found
              peterj

              Do you have a jndi.propetties file? Is it in the classpath? It should contain:

              java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
              java.naming.provider.url=jnp://localhost:1099
              java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces

              • 4. Re: hibernate.properties not found
                henry_h

                Thanks peter,
                i forgot it!
                It works.
                Bye