Menu

Hibernate 3.6.5 supported?

Help
Anonymous
2012-06-15
2013-01-07
  • Anonymous

    Anonymous - 2012-06-15

    I'm trying to use this within jvisualvm and not having a lot of luck. My application uses hibernate-core-3.6.5.Final.jar and I have the JConsole plugin installed into VisualVM.
    I've tried:
    - launching VisualVM from the directory containing my hibernate jar
    - passing in -J-Dhibernate.classpath={path to hibernate jar}
    - passing in -cp:a {path to hibernate jar} to visualvm on startup
    - ensuring that the mbean is named Hibernate:application=statistics
    …but so far no luck, I always get the "Hibernate Not Found" screen trying to use the plugin.
    Any ideas?

     
  • Jürgen Kellerer

    Did you also install the "MBeans" plugin inside VisualVM and check whether you can see "Hibernate / Statistics" inside the MBeans tab?

    I quickly checked your use case using my own test applications that I did for manual & automated testing and couldn't find the same issue.
    You can get the test applications from:
    https://www.tinyjee.org/hudson/view/All/job/Hibernate-JConsole-Plugin_(1.0.7)/
    (Sources are here: http://hibernate-jcons.hg.sourceforge.net/hgweb/hibernate-jcons/hibernate-jcons/file/tip/modules/hibernate-tester)

    One of the testers is using "hibernate-3.6.1-Final" (all packaged in one single jar containing all classes)

    What I did to replicate the issue:
    - Setup VisualVM with "hibernate-jconsole-1.0.7.jar"
    - Run the tester with "java -jar hibernate-3.6-tester.jar"
    - Run VisualVM
    => Result: As all was running on the same machine and "hibernate-3.6" is recognized in the classpath all is working fine.

    2nd try:
    - Renamed "hibernate-3.6-tester.jar" to "tester.jar" and run it.
    - Run VisualVM => Now it complains about hibernate not found (as the filename pattern doesn't match anymore).
    - Re-Run VisualVM with 'visualvm "-J-Dhibernate.classpath=C:\temp\tester.jar"'
    => Result: It works like it should.

    What I haven't tried, however is using "hibernate 3.6.5-Final".

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.