jboss7配置mysql数据源,jboss 7 oracle数据源配置

I'm currently migrating from jboss 4.3 to jboss 7.1.1 (Final) and i'm trying to configure an oracle datasource but it's not working. Following is what I've done to setup an oracle datasource

1)Downloaded ojdbc6-11.jar and placed it inside the folder $JBOSS_HOME/modules/com/oracle/ojdbc6/main

2)Created the file module.xml under $JBOSS_HOME/modules/com/oracle/ojdbc6/main and this is the content of the file

3)Added the following driver and datasource inside standalone.xml

oracle.jdbc.OracleDriver

connurl

oracle

username

passwd

However, when I deploy my war file, i get the following error

16:54:43,281 INFO [org.jboss.as.server] (HttpManagementService-threads - 2) JBA

S015870: Deploy of deployment "altisavante.war" was rolled back with failure mes

sage {"JBAS014771: Services with missing/unavailable dependencies" => ["jboss.na

ming.context.java.module.altisavante.altisavante.env.Altisjboss.naming.context.j

ava.AltisMissing[jboss.naming.context.java.module.altisavante.altisavante.env.Al

tisjboss.naming.context.java.Altis]"]}

Am I missing anything?

解决方案

Here's a link about the data source configuration for JBoss 7 that of course work with 7.1

The example is configuring a MySQL example.

This is what i did for an Oracle Driver

jdbc:oracle:thin:@(DESCRIPTION=(LOAD_BALANCE=off)(ADDRESS=(PROTOCOL=TCP)(HOST=192.168.0.1)(PORT=1524))(CONNECT_DATA=(SERVICE_NAME=profepa)(SERVER=DEDICATED)))

com.oracle

3

5

user

pass

5000

5

The driver's section would look like this:

oracle.jdbc.driver.OracleDriver

My module.xml is under $JBOSS_HOME\modules\com\oracle\main within the jar ojdbc6.jar:

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值