JBOSS 4.23 Hibernate 3.3.2 and javamelody

129 views
Skip to first unread message

ivan smiljkovic

unread,
Jul 28, 2015, 8:48:14 AM7/28/15
to javamelody
Dear all,

I'm trying to enable database and sql monitoring. Can you help me?

Using EntityManager and persistence.xml. In persistence.xml provider is defined, 

<provider>org.hibernate.ejb.HibernatePersistence</provider>

i replaced it with 

        <provider>net.bull.javamelody.JpaPersistence</provider>
and then put in properties

            <property name="net.bull.javamelody.jpa.provider" value="org.hibernate.ejb.HibernatePersistence" />
After compiling, in deploy, i received error:
java.lang.RuntimeException: java.lang.NoClassDefFoundError: javax/persistence/spi/ProviderUtil

Emeric Vernat

unread,
Jul 28, 2015, 3:15:07 PM7/28/15
to javam...@googlegroups.com

Hi,

JpaPersistence is to monitor JPA and not sql/jdbc (and your app is to old to be able to monitor JPA).

To monitor sql/jdbc, read the user guide.

Bye,
Emeric

--

---
You received this message because you are subscribed to the Google Groups "javamelody" group.
To unsubscribe from this group and stop receiving emails from it, send an email to javamelody+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages