I'm attempting to add an Oracle DB datasource to Wildfly 10. Here's what I have:
mysql_escape_string($data);
module.xml
<wildfly-home>\modules\com\oracle\ojdbc6\main\
module.xml
ojdbc6.jar
* I have tried both with and without the line <?xml version="1.0" encoding="UTF-8"?>
<module xmlns="urn:Wildfly:module:1.0" name="com.oracle.ojdbc6">
<resources>
<resource-root path="ojdbc6.jar"/>
</resources>
<dependencies>
<module name="javax.api"/>
<module name="javax.resource.api"/>
<module name="javax.transaction.api"/> <!-- See * below -->
</dependencies>
</module>
. Some examples I've found online include it. Some do not. It seems to make no difference with whether the error occurs or not.
ojdbc6.jar was copied from <module name="javax.transaction.api/>
.
I have modified <oracle-home>\jdbc\lib\ojdbc6.jar
to include this within the <wildfly-home>\standalone\configuration\standalone.xml
tag:
<drivers>
This error message is being spat out when I <driver name="oraclethin" module="com.oracle.ojdbc6">
<xa-datasource-class>oracle.jdbc.xa.client.OracleXADataSource</xa-datasource-class>
</driver>
into cd
and run <wildfly-home>\bin
:
.\standalone.bat
I've triple checked the spelling on everything. I've tried taking out some lines (and putting them back when nothing changes). Is anyone seeing what I'm missing?
答案 0 :(得分:2)
使用xmlns="urn:jboss:module:1.0"
如https://docs.jboss.org/author/display/MODULES/Module+descriptors
中所述答案 1 :(得分:0)
为我解决的问题是扩大jboss上standalone.xml文件上的超时连接
<system-properties>
...
<property name="jboss.as.management.blocking.timeout" value="6000"/>
</system-properties>