I'm trying to make an XA datasource with Oracle in JBoss 7 (standalone-preview). I'm getting errors from this (I'll attach the relevant log file at the end of the post) -- saying it can't find the driver-name child.
From my understanding, I need to create the datasource definition in the standalone.xml (or standalone-preview.xml) file. I first created the Oracle module:
1. In /modules/com/oracle directory I put the ojdbc6.jar file and created a new file called modules.xml that reads:
<module xmlns="urn:jboss:module:1.0" name="com.oracle.db">
<resources>
<resource-root path="ojdbc6.jar"/>
</resources>
<dependencies>
<module name="javax.api"/>
<module name="javax.transaction.api"/>
</dependencies>
</module>
2. In my standalone-preview.xml I added the following section to the xml file (replacing the sample h2 datasource that was there):
<subsystem xmlns="urn:jboss:domain:datasources:1.0">
<subsystem xmlns="urn:jboss:domain:datasources:1.0">
<datasources xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="http://www.jboss.org/ironjacamar/schema/datasources_1_0.xsd">
<xa-datasource jndi-name="ds/MYDATASOURCE" pool-name="ds/MYDATASOURCE"
enabled="true" jta="true" use-java-context="true" use-ccm="true">
<xa-datasource-property name="URL">jdbc:oracle:thin:@MYSERVER.DOMAIN.COM:1521:MYSCHEMA
</xa-datasource-property>
<xa-datasource-property name="User">USERNAME</xa-datasource-property>
<xa-datasource-property name="Password">PASSWORD</xa-datasource-property>
<xa-datasource-class>oracle.jdbc.xa.client.OracleXADataSource</xa-datasource-class>
<xa-pool>
<is-same-rm-override>false</is-same-rm-override>
<no-tx-separate-pools />
</xa-pool>
<validation>
<valid-connection-checker
class-name="org.jboss.jca.adapters.jdbc.extensions.oracle.OracleValidConnectionChecker"></valid-connection-checker>
<stale-connection-checker
class-name="org.jboss.jca.adapters.jdbc.extensions.oracle.OracleStaleConnectionChecker"></stale-connection-checker>
<exception-sorter
class-name="org.jboss.jca.adapters.jdbc.extensions.oracle.OracleExceptionSorter"></exception-sorter>
</validation>
</xa-datasource>
<drivers>
<driver name="ojdbc6.jar" module="com.oracle">
<xa-datasource-class>oracle.jdbc.xa.client.OracleXADataSource</xa-datasource-class>
</driver>
</drivers>
</datasources>
</subsystem>
I have tried finding an example of an XA datasource for the new JBoss 7 but unable to find one. I did find some documentation in the IronJacamar web page (http://docs.jboss.org/ironjacamar/userguide/1.0/en-US/html_single/#ex_datasources_oracle_xa) but that seems out of date and incorrect. It references a note saying to change "pad-true" in transaction.xml but no file of that name exists in JBoss 7. It also has a reference to <no-tx-separate-pools /> which is incompatible with the XSD when I had it in there -- so I basically don't think I can trust that documentation.
Here's the log file output I get. It makes it appear as though it's a problem with the xa-datasource xml fragment, not fro mthe driver fragment in my definition:
12:32:13,311 INFO [org.jboss.modules] JBoss Modules version 1.0.1.GA
12:32:13,467 INFO [org.jboss.msc] JBoss MSC version 1.0.0.GA
12:32:13,506 INFO [org.jboss.as] JBoss AS 7.0.1.Final "Zap" starting
12:32:14,132 WARN [org.jboss.as] No security realm defined for native management service, all access will be unrestricted.
12:32:14,186 INFO [org.jboss.as] creating http management service using network interface (management) port (9990)
12:32:14,188 WARN [org.jboss.as] No security realm defined for http management service, all access will be unrestricted.
12:32:14,197 INFO [org.jboss.as.logging] Removing bootstrap log handlers
12:32:14,203 ERROR [org.jboss.as.controller] (Controller Boot Thread) Operation ("add") failed - address: ([
("subsystem" => "datasources"),
("xa-data-source" => "ds/GAPCore")
]): java.util.NoSuchElementException: No child 'driver-name' exists
at org.jboss.dmr.ModelValue.requireChild(ModelValue.java:362)
at org.jboss.dmr.ObjectModelValue.requireChild(ObjectModelValue.java:298)
at org.jboss.dmr.ModelNode.require(ModelNode.java:703)
at org.jboss.as.connector.subsystems.datasources.AbstractDataSourceAdd.performRuntime(AbstractDataSourceAdd.java:87)
at org.jboss.as.controller.AbstractAddStepHandler$1.execute(AbstractAddStepHandler.java:50)
at org.jboss.as.controller.OperationContextImpl.executeStep(OperationContextImpl.java:351)
at org.jboss.as.controller.OperationContextImpl.doCompleteStep(OperationContextImpl.java:298)
Any help or pointers to documentation would be much appreciated.
thanks,
Mike
相关推荐
在本研究中,作者探讨了透明带(Zona pellucida,简称ZP)对猪孤雌激活胚胎发育的影响。透明带是卵母细胞和早期胚胎的重要结构,但其在发育过程中的厚度增加和硬化会对胚胎的发育造成不利影响。...
Glu101在维持八肋游仆虫中心蛋白正常构象中的作用,李国亭,王志军,八肋游仆虫中心蛋白是一个低分子量(约20 kDa)的钙结合蛋白,它属于EF-手蛋白超族。EF-手蛋白中E-螺旋的第一个氨基酸高度保守为Glu。...
SPOD() is a Matlab implementation of the frequency domain form of proper orthogonal decomposition (POD, also known as principle component analysis or Karhunen-Loève decomposition) called spectral ...
Abstract—A proper model of RF absorber must be developed based on information such as absorber reflectivity, in magnitude and phase, for various angles of incidence, and for parallel and ...
The 1Z0-811 examination is part of the Oracle Java SE (Standard Edition) certification program. This exam focuses on Java Development Kit (JDK) 1.8 and is designed to assess candidates' understanding ...
The Art of Memory Forensics: Detecting Malware and Threats in Windows, Linux, and Mac Memory Memory forensics provides cutting edge technology to help investigate digital attacks Memory forensics is ...
The subject of turbulence, the most forbidding in fluid dynamics, has usually proved treacherous to the beginner, caught in the whirls and eddies of its nonlinearities and statistical imponderables....
【标题】"Spectral Proper Orthogonal Decomposition (SPOD) in Matlab" Spectral Proper Orthogonal Decomposition(SPOD)是一种数据驱动的统计方法,主要用于处理时间序列或空间序列数据,尤其在流体动力学、...
对类P是类NP的真子集猜测的第二证明,徐万东,,判定一个任意的无向可平面图G是否是哈密顿图问题是六个重要的NP完全问题之一(HC)。本文根据判定除马图以外的任意无向图是否是哈密��
loop (FSPLL) structure for detection of the positive sequence in three-phase systems. The structure includes the use of the Park transformation and moving average filters (MAF). Performance of the MAF...
In my view, the first ones to be concerned with performance should be developers, and I see SQL issues as something encompassing much more than the proper writing of a few queries. Performance seen ...
On the other hand, the proper use of object-oriented techniques requires a fundamental change in the way the programs are designed and implemented. Programmers who are well schooled in the procedural...
23.5 Proper Reference Frame of an Accelerated Observer 24. Fundamental Concepts of General Relativity 24.1 Overview 24.2 Local Lorentz Frames, the Principle of Relativity, and Einstein's ...
解决 The connected J-Link is defective,Proper operation cannot be guaranteed keil5版本比较高时debug会出现以上错误,替换安装文件下的segger 可以解决
本人查过Oracle官网文档和其它网友文档,通过在CentOS5和CentOS6系统分别至少安装3次后编写的文档,排版和字词语句斟酌修改了n会。 大家也可以查看我的博客文档,欢迎大家访问: ...