環境
CentOS7.2
Oracle12.2
java version 1.8.0_281
wildfly-10.1.0.Final
実現したこと。
wildflyからJDBC経由でOracleに接続したい。
色々とネットで調べていますが、どのように定義をしれば良いか検討がつきません。
standalone.xmlの定義を下記のように変更しています。
<datasource jndi-name="java:jboss/datasources/TestDS" pool-name="TestDS" enabled="true" use-java-context="true"> <connection-url>jdbc:oracle:thin:@study02:1521:ORCL</connection-url> <driver-class>oracle.jdbc.OracleDriver</driver-class> <driver>ojdbc7.jar</driver> しかしながら、下記のようなエラーがでます。566 ERROR [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0055: Caught exception during boot: org.jboss.as.controller.persistence.ConfigurationPersistenceException: WFLYCTL0085: Failed to parse configuration at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:131) at org.jboss.as.server.ServerService.boot(ServerService.java:357) at org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:299) at java.lang.Thread.run(Unknown Source)
Caused by: javax.xml.stream.XMLStreamException: org.jboss.as.connector.util.ParserException: IJ010061: Unexpected element: user-name
at org.jboss.as.connector.subsystems.datasources.DataSourcesExtension$DataSourceSubsystemParser.readElement(DataSourcesExtension.java:637)
at org.jboss.as.connector.subsystems.datasources.DataSourcesExtension$DataSourceSubsystemParser.readElement(DataSourcesExtension.java:200)
at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:110)
at org.jboss.staxmapper.XMLExtendedStreamReaderImpl.handleAny(XMLExtendedStreamReaderImpl.java:69)
at org.jboss.as.server.parsing.StandaloneXml_4.parseServerProfile(StandaloneXml_4.java:546)
at org.jboss.as.server.parsing.StandaloneXml_4.readServerElement(StandaloneXml_4.java:242)
at org.jboss.as.server.parsing.StandaloneXml_4.readElement(StandaloneXml_4.java:141)
at org.jboss.as.server.parsing.StandaloneXml.readElement(StandaloneXml.java:103)
at org.jboss.as.server.parsing.StandaloneXml.readElement(StandaloneXml.java:49)
at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:110)
at org.jboss.staxmapper.XMLMapperImpl.parseDocument(XMLMapperImpl.java:69)
at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:123)
... 3 more
Caused by: org.jboss.as.connector.util.ParserException: IJ010061: Unexpected element: user-name
at org.jboss.as.connector.subsystems.datasources.DsParser.parseDataSource_4_0(DsParser.java:1943)
at org.jboss.as.connector.subsystems.datasources.DsParser.parseDataSources(DsParser.java:222)
at org.jboss.as.connector.subsystems.datasources.DsParser.parse(DsParser.java:182)
at org.jboss.as.connector.subsystems.datasources.DataSourcesExtension$DataSourceSubsystemParser.readElement(DataSourcesExtension.java:630)
... 14 more
22:20:30,581 FATAL [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0056: Server boot has failed in an unrecoverable manner; exiting. See previous messages for details.
どのように定義を変更したらよいかをご教示お願い致します。
あなたの回答
tips
プレビュー