Search code examples
javaoracle-databasehibernatejboss

where are Oracle's DMS class files?


I'm running a JBoss server (inside Eclipse), with some Hibernate mixed in. I installed Oracle's ojdbc drivers from here:

Oracle Database 11g Release 2 JDBC Drivers

I specifically downloaded the file: ojdbc6dms_g.jar, which according to the site contains instrumentation to support DMS. However when I startup my AS server, I get the following:

Caused by: java.lang.ClassNotFoundException: oracle.dms.console.DMSConsole from [Module     
"com.oracle:main" from local module loader @485fcf29 (roots: /usr/local/jboss-7.1.1- 
final/modules)]

when the server is trying to get a new hibernate ejb exception.

I checked Oracle's jar file and sure enough it doesn't contain the class oracle.dms.console.DMSConsole, although from the notes on Oracle's site about the jar file, it seems like the jar file should contain the DMS classes.

Can anyone point me to the correct jar file? And when I do get the right file, where should this file be installed to, particularly with regards to Eclipse and JBoss?

Update: Just found another question asking the same thing here on SO.


Solution

  • The missing classes are indeed in dms.jar. But as I've seen asked elsewhere finding the dms.jar file is not easy. You won't find dms.jar at Oracle Database 11g Release 2 JDBC Drivers because as noted by Oracle: dms.jar is not shipped as part of the RDBMS product. It is only available as part of the Oracle Application Server product.

    I hopped onto our server and grabbed the jar file from our Oracle installation directory. We have 11g installed. With 11g you should be able to find the file here:

    $ORACLE_HOME/oc4j/lib/dms.jar