Oracle 的 DMS 类文件在哪里? [英] where are Oracle's DMS class files?

查看:35
本文介绍了Oracle 的 DMS 类文件在哪里?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在运行一个 JBoss 服务器(在 Eclipse 中),并混合了一些 Hibernate.我从这里安装了 Oracle 的 ojdbc 驱动程序:

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

Oracle 数据库 11g 第 2 版 JDBC 驱动程序

我特地下载了文件:ojdbc6dms_g.jar,据该站点称,该文件包含支持 DMS 的工具.但是,当我启动我的 AS 服务器时,我得到以下信息:

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)]

当服务器尝试获取新的休眠 ejb 异常时.

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

我检查了 Oracle 的 jar 文件,果然它不包含类 oracle.dms.console.DMSConsole,尽管从 Oracle 站点上关于 jar 文件的注释来看,jar 文件似乎应该包含 DMS 类.

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.

谁能告诉我正确的 jar 文件?当我得到正确的文件时,这个文件应该安装到哪里,特别是对于 Eclipse 和 JBoss?

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?

更新:刚刚发现另一个问题 在 SO 上问同样的问题.

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

推荐答案

缺失的类确实在 dms.jar 中.但正如我在别处看到的那样,找到 dms.jar 文件并不容易.在 Oracle 数据库 11g 版本中找不到 dms.jar2 JDBC 驱动程序 因为 Oracle 指出:dms.jar 不作为 RDBMS 产品的一部分提供.它仅作为 Oracle 应用服务器产品的一部分提供.

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.

我跳上我们的服务器并从我们的 Oracle 安装目录中获取了 jar 文件.我们已经安装了 11g.使用 11g,您应该可以在此处找到该文件:

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

这篇关于Oracle 的 DMS 类文件在哪里?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆