opencms, mysql jdbc configuration?

161 views
Skip to first unread message

phil....@gmail.com

unread,
Feb 11, 2012, 9:27:31 PM2/11/12
to javamelody, phil....@gmail.com
Installed javamelody 1.34 and configured as best I could. javamelody
does display its web page and several detail pages. However there is
not any sql information.

opencms uses jdbc directly and is configured in WEB-INF/config/
opencms.properties, not WEB-INF/web.xml

I did put this in web.xml, but no joy

<property
name="hibernate.connection.driver_class">net.bull.javamelody.JdbcDriver</
property>
<property
name="hibernate.connection.driver">com.mysql.jdbc.Driver</property>
<property name="hibernate.connection.url">jdbc:mysql://
localhost:3306/opencms754Suncity</property>
<property name="hibernate.connection.username">suncity</
property>
<property
name="hibernate.connection.password">MyPasswordForMysql</property>

Since tomcat is not using hibernate, what "names" should be used for
the properties?

Yes, I am a newbie with javamelody. Yes, I do not know the meaning
of hibernate as relates to tomcat.
I did read the JDBC section of the wiki, but something did not sink
in, if the answer is there.

Vernat Emeric

unread,
Feb 12, 2012, 11:25:09 AM2/12/12
to javam...@googlegroups.com
Hi,

When the webapp uses jdbc directly, you need to be able to add a
specific jdbc property "driver" to open a jdbc connection.
If you give your "WEB-INF/config/opencms.properties" file, perhaps we
will have more information.
And do you know how this file is used in your webapp?

bye,
Emeric


Le 12/02/2012 03:27, phil....@gmail.com a �crit :

Reply all
Reply to author
Forward
0 new messages