zcwslnh / javamelody

Automatically exported from code.google.com/p/javamelody
0 stars 0 forks source link

java.lang.NoClassDefFoundError: org/jrobin/core/RrdException #46

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Once monitoring page is opened, clicking the view chart produces this error
2.
3.

What is the expected output? What do you see instead?
We should be able to see a chart

What version of the product are you using? On what application server, JDK,
operating system?
Apache tomcat 5.5 Windows XP SP2

Please provide any additional information below.

The monitoring page is coming up but none of the charts are coming up.
Console logs are attached, also attached is the Melody screen shot

Original issue reported on code.google.com by kalimaac...@gmail.com on 13 Sep 2010 at 7:54

Attachments:

GoogleCodeExporter commented 9 years ago
Have you added the jrobin-1.5.9.1.jar file in WEB-INF/lib/ of your webapp as 
said in UserGuide#1._Jar_files ? Or have you added the maven dependency 
including the opennms repository as said in UserGuide#Dependencies ?

Original comment by evernat@free.fr on 13 Sep 2010 at 9:03

GoogleCodeExporter commented 9 years ago
Yes, you were right. we fixed that. now melody is up. 
but we now have another challenge, the sql transactions are not being recorded, 
table remains empty all the time 

we are using hibernate with c3po pooling. are there any exclusive 
configurations to be made for hibernate ?

Original comment by kalimaac...@gmail.com on 16 Sep 2010 at 6:31

GoogleCodeExporter commented 9 years ago
yes, with c3po pooling in hibernate without a datasource, use 
"net.bull.javamelody.JdbcDriver":
http://code.google.com/p/javamelody/wiki/UserGuide#7._JDBC

or otherwise use in hibernate:
http://code.google.com/p/javamelody/wiki/UserGuideAdvanced#Alternative_for_monit
oring_of_sql_requests

Original comment by evernat@free.fr on 16 Sep 2010 at 6:46

GoogleCodeExporter commented 9 years ago
Hi,

i tried option 1 : it gives me a driver not found error

i tried option 2 : gives me : could not instantiate BatcherFactory: 
net.bull.javamelody.HibernateBatcherFactory and also the 

Caused by: java.lang.ClassNotFoundException: 
net.bull.javamelody.HibernateBatcherFactory

am i missing some libraries ?

attached is my configuration file from hibernate

Original comment by kalimaac...@gmail.com on 16 Sep 2010 at 7:24

Attachments:

GoogleCodeExporter commented 9 years ago
option 1:
*********
in your hibernate configuration, you should replace
   <property name="connection.driver_class">oracle.jdbc.driver.OracleDriver</property> 
with
   <property name="hibernate.connection.driver_class">net.bull.javamelody.JdbcDriver</property>
   <property name="hibernate.connection.driver">oracle.jdbc.driver.OracleDriver</property>

option 2:
*********
- revert changes for option 1
- you should use javamelody v1.19.0 or later, and I think that your issue is 
that you are using javamelody v1.18.0 or before. You don't need other libraries 
than javamelody jar file.

If it does not work, please post stack-traces of exceptions.

Original comment by evernat@free.fr on 16 Sep 2010 at 9:17

GoogleCodeExporter commented 9 years ago
Hi, i used the 1.19 version of melody and it worked fine

Original comment by kalimaac...@gmail.com on 16 Sep 2010 at 10:18

GoogleCodeExporter commented 9 years ago
I am not sure to understand: you are now using the 1.19 version of javamelody 
and it works fine, or it worked before but not anymore?
If it works, we can close the issue?
Thanks

Original comment by evernat@free.fr on 17 Sep 2010 at 5:39

GoogleCodeExporter commented 9 years ago
I suppose that you mean that it works with the 1.19 version.
So it's great and I close the issue.
Reopen it if needed.

Original comment by evernat@free.fr on 25 Sep 2010 at 8:00