6 Replies Latest reply on May 16, 2006 10:20 AM by Bjørn Børresen

    Which version of Hibernate is my JBoss running?

    Bjørn Børresen Newbie

      Hi,

      how do I found out which version of Hibernate JBoss is running? It doesn't say in the startup .. or at least I can't find it.

      I'm running a default jboss-4.0.4.CR2.

        • 1. Re: Which version of Hibernate is my JBoss running?
          Henrique Sousa Newbie

          You should get the following message from your log:

          INFO [org.hibernate.cfg.Environment] Hibernate 3.2 cr1

          I got it from my own, which is the same version as yours (with EJB 3.0).

          • 2. Re: Which version of Hibernate is my JBoss running?
            Bjørn Børresen Newbie

            strange, there is no 'hibernate' in my entire startup log - here it is:

            ===============================================================================
            .
             JBoss Bootstrap Environment
            .
             JBOSS_HOME: C:\Programfiler\jboss-4.0.4.CR2\bin\\..
            .
             JAVA: c:\programfiler\Java\jdk1.5.0_06\bin\java
            .
             JAVA_OPTS: -Dprogram.name=run.bat -Xms128m -Xmx512m
            .
             CLASSPATH: c:\programfiler\Java\jdk1.5.0_06\lib\tools.jar;C:\Programfiler\jboss-4.0.4.CR2\bin\\run.jar
            .
            ===============================================================================
            .
            11:05:06,812 INFO [Server] Starting JBoss (MX MicroKernel)...
            11:05:06,828 INFO [Server] Release ID: JBoss [Zion] 4.0.4.CR2 (build: CVSTag=JBoss_4_0_4_CR2 date=200603311500)
            11:05:06,828 INFO [Server] Home Dir: C:\Programfiler\jboss-4.0.4.CR2
            11:05:06,828 INFO [Server] Home URL: file:/C:/Programfiler/jboss-4.0.4.CR2/
            11:05:06,843 INFO [Server] Patch URL: null
            11:05:06,843 INFO [Server] Server Name: default
            11:05:06,843 INFO [Server] Server Home Dir: C:\Programfiler\jboss-4.0.4.CR2\server\default
            11:05:06,890 INFO [Server] Server Home URL: file:/C:/Programfiler/jboss-4.0.4.CR2/server/default/
            11:05:06,890 INFO [Server] Server Log Dir: C:\Programfiler\jboss-4.0.4.CR2\server\default\log
            11:05:06,890 INFO [Server] Server Temp Dir: C:\Programfiler\jboss-4.0.4.CR2\server\default\tmp
            11:05:06,890 INFO [Server] Root Deployment Filename: jboss-service.xml
            11:05:08,171 INFO [ServerInfo] Java version: 1.5.0_06,Sun Microsystems Inc.
            11:05:08,171 INFO [ServerInfo] Java VM: Java HotSpot(TM) Client VM 1.5.0_06-b05,Sun Microsystems Inc.
            11:05:08,171 INFO [ServerInfo] OS-System: Windows XP 5.1,x86
            11:05:10,937 INFO [Server] Core system initialized
            11:05:16,390 INFO [Log4jService$URLWatchTimerTask] Configuring from URL: resource:log4j.xml
            11:05:27,968 INFO [WebService] Using RMI server codebase: http://localhost:8083/
            11:05:28,171 WARN [EJBTimerServiceImpl] Cannot obtain TransactionManager from JNDI, using TxManager.getInstance(): javax.naming.NameNotFoundException: TransactionManager not bound
            11:05:34,046 INFO [MailService] Mail Service bound to java:/Mail
            11:05:34,625 INFO [NamingService] JNDI bootstrap JNP=/0.0.0.0:1099, RMI=/0.0.0.0:1098, backlog=50, no client SocketFactory, Server SocketFactory=class org.jboss.net.sockets.DefaultSocketFactory
            11:05:34,750 INFO [SubscriptionManager] Bound event dispatcher to java:comp/env/EventDispatcher
            11:05:36,156 INFO [Embedded] Catalina naming disabled
            11:05:36,265 INFO [ClusterRuleSetFactory] Unable to find a cluster rule set in the classpath. Will load the default rule set.
            11:05:36,265 INFO [ClusterRuleSetFactory] Unable to find a cluster rule set in the classpath. Will load the default rule set.
            11:05:37,000 INFO [Http11BaseProtocol] Initializing Coyote HTTP/1.1 on http-0.0.0.0-8080
            11:05:37,000 INFO [Catalina] Initialization processed in 735 ms
            11:05:37,000 INFO [StandardService] Starting service jboss.web
            11:05:37,000 INFO [StandardEngine] Starting Servlet Engine: Apache Tomcat/5.5.16
            11:05:37,078 INFO [StandardHost] XML validation disabled
            11:05:37,140 INFO [Catalina] Server startup in 140 ms
            11:05:37,953 INFO [TomcatDeployer] deploy, ctxPath=/invoker, warUrl=.../deploy/http-invoker.sar/invoker.war/
            11:05:38,640 INFO [WebappLoader] Dual registration of jndi stream handler: factory already defined
            11:05:39,500 INFO [TomcatDeployer] deploy, ctxPath=/, warUrl=.../deploy/jbossweb-tomcat55.sar/ROOT.war/
            11:05:39,828 INFO [TomcatDeployer] deploy, ctxPath=/jbossws, warUrl=.../tmp/deploy/tmp32985jbossws14.sar-contents/jbossws-exp.war/
            11:05:40,218 INFO [TomcatDeployer] deploy, ctxPath=/jbossmq-httpil, warUrl=.../deploy/jms/jbossmq-httpil.sar/jbossmq-httpil.war/
            11:05:40,640 INFO [TomcatDeployer] deploy, ctxPath=/web-console, warUrl=.../deploy/management/console-mgr.sar/web-console.war/
            11:05:42,093 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-local-jdbc.rar
            11:05:42,203 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-ha-xa-jdbc.rar
            11:05:42,343 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-local-jdbc.rar
            11:05:42,421 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jboss-xa-jdbc.rar
            11:05:42,625 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/jms/jms-ra.rar
            11:05:42,734 INFO [RARDeployment] Required license terms exist, view META-INF/ra.xml in .../deploy/mail-ra.rar
            11:05:45,328 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=DefaultDS' to JNDI name 'java:DefaultDS'
            11:05:45,921 INFO [A] Bound to JNDI name: queue/A
            11:05:45,921 INFO [B] Bound to JNDI name: queue/B
            11:05:45,921 INFO [C] Bound to JNDI name: queue/C
            11:05:45,921 INFO [D] Bound to JNDI name: queue/D
            11:05:45,937 INFO [ex] Bound to JNDI name: queue/ex
            11:05:45,968 INFO [testTopic] Bound to JNDI name: topic/testTopic
            11:05:45,968 INFO [securedTopic] Bound to JNDI name: topic/securedTopic
            11:05:45,968 INFO [testDurableTopic] Bound to JNDI name: topic/testDurableTopic
            11:05:45,984 INFO [testQueue] Bound to JNDI name: queue/testQueue
            11:05:46,218 INFO [UILServerILService] JBossMQ UIL service available at : /0.0.0.0:8093
            11:05:46,312 INFO [DLQ] Bound to JNDI name: queue/DLQ
            11:05:46,687 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=ConnectionFactoryBinding,name=JmsXA' to JNDI name 'java:JmsXA'
            11:05:46,875 INFO [ConnectionFactoryBindingService] Bound ConnectionManager 'jboss.jca:service=DataSourceBinding,name=OracleDS' to JNDI name 'java:OracleDS'
            11:05:47,218 INFO [TomcatDeployer] deploy, ctxPath=/jmx-console, warUrl=.../deploy/jmx-console.war/
            11:05:47,750 INFO [EARDeployer] Init J2EE application: file:/C:/Programfiler/jboss-4.0.4.CR2/server/default/deploy/EJB3Trail.ear
            11:05:49,500 INFO [TomcatDeployer] deploy, ctxPath=/EJB3Trail, warUrl=.../tmp/deploy/tmp33025EJB3Trail.ear-contents/web-exp.war/
            11:05:50,171 INFO [EARDeployer] Started J2EE application: file:/C:/Programfiler/jboss-4.0.4.CR2/server/default/deploy/EJB3Trail.ear
            11:05:50,203 INFO [EARDeployer] Init J2EE application: file:/C:/Programfiler/jboss-4.0.4.CR2/server/default/deploy/cmdtest.ear
            11:05:50,375 INFO [TomcatDeployer] deploy, ctxPath=/EJBTestCmd, warUrl=.../tmp/deploy/tmp33026cmdtest.ear-contents/cmdtest-exp.war/
            11:05:51,125 INFO [FacesConfigurator] Reading standard config org/apache/myfaces/resource/standard-faces-config.xml
            11:05:51,531 ERROR [LocaleUtils] Locale name null or empty, ignoring
            11:05:52,031 INFO [StartupServletContextListener] ServletContext 'C:\Programfiler\jboss-4.0.4.CR2\server\default\.\tmp\deploy\tmp33026cmdtest.ear-contents\cmdtest-exp.war\' initialized.
            11:05:52,078 INFO [EARDeployer] Started J2EE application: file:/C:/Programfiler/jboss-4.0.4.CR2/server/default/deploy/cmdtest.ear
            11:05:52,234 INFO [Http11BaseProtocol] Starting Coyote HTTP/1.1 on http-0.0.0.0-8080
            11:05:52,515 INFO [ChannelSocket] JK: ajp13 listening on /0.0.0.0:8009
            11:05:52,531 INFO [JkMain] Jk running ID=0 time=0/125 config=null
            11:05:52,546 INFO [Server] JBoss (MX MicroKernel) [4.0.4.CR2 (build: CVSTag=JBoss_4_0_4_CR2 date=200603311500)] Started in 45s:656ms
            


            • 3. Re: Which version of Hibernate is my JBoss running?
              Henrique Sousa Newbie

              It will not show up unless you deploy some EJB3 entities. Of course I only found it out when I undeployed my EJB3 application and restarted JBoss. :D

              • 4. Re: Which version of Hibernate is my JBoss running?
                Bjørn Børresen Newbie

                oh, ok - thanks :-)

                I thought I had deployed ejb3 entities, but something must be wrong with the deploy then ...

                • 5. Re: Which version of Hibernate is my JBoss running?
                  Hauke Stange Newbie

                  A better way to get the version from your hibernate libraries shipped with the jboss is to look into the right JARs.

                  Below the META-INF directory you'll find the version string in the MANIFEST.MF file.

                  • 6. Re: Which version of Hibernate is my JBoss running?
                    Bjørn Børresen Newbie

                    right, good one hauke1980!

                    And in 4.0.4 we can find this in the file:
                    C:\jboss-4.0.4.CR2\server\default\lib\hibernate3.jar

                    The MANIFEST.MF tells us:

                    Hibernate-Version: 3.2.0.cr1
                    Implementation-Version: 3.2.0.cr1