<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body link="#355491" alink="#4262a1" vlink="#355491" style="background: #e2e2e2; margin: 0; padding: 20px;">
<div>
        <table cellpadding="0" bgcolor="#FFFFFF" border="0" cellspacing="0" style="border: 1px solid #dadada; margin-bottom: 30px; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                <tbody>
                        <tr>
                                <td>
                                        <table border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" style="border: solid 2px #ccc; background: #dadada; width: 100%; -moz-border-radius: 6px; -webkit-border-radius: 6px;">
                                                <tbody>
                                                        <tr>
                                                                <td bgcolor="#000000" valign="middle" height="58px" style="border-bottom: 1px solid #ccc; padding: 20px; -moz-border-radius-topleft: 3px; -moz-border-radius-topright: 3px; -webkit-border-top-right-radius: 5px; -webkit-border-top-left-radius: 5px;">
                                                                        <h1 style="color: #333333; font: bold 22px Arial, Helvetica, sans-serif; margin: 0; display: block !important;">
                                                                        <!-- To have a header image/logo replace the name below with your img tag -->
                                                                        <!-- Email clients will render the images when the message is read so any image -->
                                                                        <!-- must be made available on a public server, so that all recipients can load the image. -->
                                                                        <a href="http://community.jboss.org/index.jspa" style="text-decoration: none; color: #E1E1E1">JBoss Community</a></h1>
                                                                </td>
                                                        </tr>
                                                        <tr>
                                                                <td bgcolor="#FFFFFF" style="font: normal 12px Arial, Helvetica, sans-serif; color:#333333; padding: 20px; -moz-border-radius-bottomleft: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 5px; -webkit-border-bottom-left-radius: 5px;"><h3 style="margin: 10px 0 5px; font-size: 17px; font-weight: normal;">
Error in JBoss 7.1.0 datasource configuration
</h3>
<span style="margin-bottom: 10px;">
created by <a href="http://community.jboss.org/people/rcbandit">Peter Penzov</a> in <i>Datasource Configuration</i> - <a href="http://community.jboss.org/message/643334#643334">View the full discussion</a>
</span>
<hr style="margin: 20px 0; border: none; background-color: #dadada; height: 1px;">
<div class="jive-rendered-content"><p>Hi,</p><p>  I tried to configure datasource configuration in JBoss 7.1.0. This is the configuration:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><pre class="jive-pre"><code class="jive-code jive-sql"><subsystem xmlns="<span class="jive-sql-quote">urn:jboss:domain:datasources:1.0</span>"<span class="jive-sql-quote">>
            <datasources>
                <datasource jndi-name=</span>"<span class="jive-sql-quote">Oracle</span>"<span class="jive-sql-quote"> pool-name=</span>"<span class="jive-sql-quote">Oracle_Pool</span>"<span class="jive-sql-quote"> enabled=</span>"<span class="jive-sql-quote">true</span>"<span class="jive-sql-quote"> jta=</span>"<span class="jive-sql-quote">true</span>"<span class="jive-sql-quote"> use-java-context=</span>"<span class="jive-sql-quote">true</span>"<span class="jive-sql-quote"> use-ccm=</span>"<span class="jive-sql-quote">true</span>">
                    <<span class="jive-sql-keyword">connection</span>-url>
                        jdbc:oracle:thin:@localhost:oracle
                    </<span class="jive-sql-keyword">connection</span>-url>
                    <driver>
                        ojdbc6.jar
                    </driver>
                    <<span class="jive-sql-keyword">transaction</span>-<span class="jive-sql-keyword">isolation</span>> TRANSACTION_READ_COMMITTED </<span class="jive-sql-keyword">transaction</span>-<span class="jive-sql-keyword">isolation</span>>
                     <pool>
                <<span class="jive-sql-keyword">min</span>-pool-<span class="jive-sql-keyword">size</span>> 20 </<span class="jive-sql-keyword">min</span>-pool-<span class="jive-sql-keyword">size</span>>
                <<span class="jive-sql-keyword">max</span>-pool-<span class="jive-sql-keyword">size</span>> 300</<span class="jive-sql-keyword">max</span>-pool-<span class="jive-sql-keyword">size</span>>
                 </pool>                   
                    <security>
                        <<span class="jive-sql-keyword">user</span>-name>
                            admin
                        </<span class="jive-sql-keyword">user</span>-name>
                        <password>
                            qwerty
                        </password>
                    </security>                   
                    <validation>
                <validate-<span class="jive-sql-keyword">on</span>-<span class="jive-sql-keyword">match</span>> <span class="jive-sql-keyword">false</span> </validate-<span class="jive-sql-keyword">on</span>-<span class="jive-sql-keyword">match</span>>
                <background-validation> <span class="jive-sql-keyword">false</span> </background-validation>
                <useFastFail> <span class="jive-sql-keyword">false</span> </useFastFail>
                </validation>
            <statement>
                    <prepared-statement-cache-<span class="jive-sql-keyword">size</span>> 100 </prepared-statement-cache-<span class="jive-sql-keyword">size</span>>
                    <share-prepared-statements/>
            </statement>                   
                 </datasource>
            </datasources>
        </subsystem>
</code></pre><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>When I start JBoss this error appears:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><pre class="jive-pre"><code class="jive-code jive-sql">[root@Testserver bin]# ./standalone.sh
=========================================================================
  JBoss Bootstrap Environment
  JBOSS_HOME: /opt/jboss-<span class="jive-sql-keyword">as</span>-7.1.0.CR1b
  JAVA: /opt/jdk1.7.0_01/bin/java
  JAVA_OPTS: -server -Xms64m -Xmx512m -XX:MaxPermSize=256m -Djava.net.preferIPv4Stack=<span class="jive-sql-keyword">true</span> -Dorg.jboss.resolver.warning=<span class="jive-sql-keyword">true</span> -Dsun.rmi.dgc.client.gcInterval=3600000 -Dsun.rmi.dgc.server.gcInterval=3600000 -Djboss.modules.system.pkgs=org.jboss.byteman -Djava.awt.headless=<span class="jive-sql-keyword">true</span>
=========================================================================
15:30:58,473 INFO  [org.jboss.modules] JBoss Modules version 1.1.0.CR6
15:30:58,858 INFO  [org.jboss.msc] JBoss MSC version 1.0.1.GA
15:30:58,921 INFO  [org.jboss.<span class="jive-sql-keyword">as</span>] JBoss <span class="jive-sql-keyword">AS</span> 7.1.0.CR1b "<span class="jive-sql-quote">Flux Capacitor</span>"<span class="jive-sql-quote"> starting
15:30:59,903 INFO  [org.jboss.as] JBoss AS 7.1.0.CR1b </span>"<span class="jive-sql-quote">Flux Capacitor</span>"<span class="jive-sql-quote"> stopped in 8ms
15:30:59,894 ERROR [org.jboss.as.controller] JBAS014601: Error booting the container: java.lang.RuntimeException: org.jboss.as.controller.persistence.ConfigurationPersistenceException: JBAS014676: Failed to parse configuration
    at org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:161) [jboss-as-controller-7.1.0.CR1b.jar:7.1.0.CR1b]
    at java.lang.Thread.run(Thread.java:722) [:1.7.0_01]
Caused by: org.jboss.as.controller.persistence.ConfigurationPersistenceException: JBAS014676: Failed to parse configuration
    at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:125) [jboss-as-controller-7.1.0.CR1b.jar:7.1.0.CR1b]
    at org.jboss.as.controller.AbstractControllerService.boot(AbstractControllerService.java:187) [jboss-as-controller-7.1.0.CR1b.jar:7.1.0.CR1b]
    at org.jboss.as.server.ServerService.boot(ServerService.java:256) [jboss-as-server-7.1.0.CR1b.jar:7.1.0.CR1b]
    at org.jboss.as.controller.AbstractControllerService$1.run(AbstractControllerService.java:155) [jboss-as-controller-7.1.0.CR1b.jar:7.1.0.CR1b]
    ... 1 more
Caused by: javax.xml.stream.XMLStreamException: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[90,17]
Message: </span>"<span class="jive-sql-quote">Jndi name have to start with java:/ or java:jboss/</span>"<span class="jive-sql-quote">
    at org.jboss.as.connector.subsystems.datasources.DataSourcesExtension$NewDataSourceSubsystemParser.readElement(DataSourcesExtension.java:723)
    at org.jboss.as.connector.subsystems.datasources.DataSourcesExtension$NewDataSourceSubsystemParser.readElement(DataSourcesExtension.java:279)
    at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:100) [staxmapper-1.0.0.Final.jar:1.0.0.Final]
    at org.jboss.staxmapper.XMLExtendedStreamReaderImpl.handleAny(XMLExtendedStreamReaderImpl.java:69) [staxmapper-1.0.0.Final.jar:1.0.0.Final]
    at org.jboss.as.server.parsing.StandaloneXml.parseServerProfile(StandaloneXml.java:897) [jboss-as-server-7.1.0.CR1b.jar:7.1.0.CR1b]
    at org.jboss.as.server.parsing.StandaloneXml.readServerElement_1_1(StandaloneXml.java:319) [jboss-as-server-7.1.0.CR1b.jar:7.1.0.CR1b]
    at org.jboss.as.server.parsing.StandaloneXml.readElement(StandaloneXml.java:120) [jboss-as-server-7.1.0.CR1b.jar:7.1.0.CR1b]
    at org.jboss.as.server.parsing.StandaloneXml.readElement(StandaloneXml.java:97) [jboss-as-server-7.1.0.CR1b.jar:7.1.0.CR1b]
    at org.jboss.staxmapper.XMLMapperImpl.processNested(XMLMapperImpl.java:100) [staxmapper-1.0.0.Final.jar:1.0.0.Final]
    at org.jboss.staxmapper.XMLMapperImpl.parseDocument(XMLMapperImpl.java:59) [staxmapper-1.0.0.Final.jar:1.0.0.Final]
    at org.jboss.as.controller.persistence.XmlConfigurationPersister.load(XmlConfigurationPersister.java:117) [jboss-as-controller-7.1.0.CR1b.jar:7.1.0.CR1b]
    ... 4 more
Caused by: javax.xml.stream.XMLStreamException: ParseError at [row,col]:[90,17]
Message: </span>"<span class="jive-sql-quote">Jndi name have to start with java:/ or java:jboss/</span>"
    <span class="jive-sql-keyword">at</span> org.jboss.<span class="jive-sql-keyword">as</span>.controller.SimpleAttributeDefinition.parse(SimpleAttributeDefinition.java:154) [jboss-<span class="jive-sql-keyword">as</span>-controller-7.1.0.CR1b.jar:7.1.0.CR1b]
    <span class="jive-sql-keyword">at</span> org.jboss.<span class="jive-sql-keyword">as</span>.controller.SimpleAttributeDefinition.parseAndSetParameter(SimpleAttributeDefinition.java:207) [jboss-<span class="jive-sql-keyword">as</span>-controller-7.1.0.CR1b.jar:7.1.0.CR1b]
    <span class="jive-sql-keyword">at</span> org.jboss.<span class="jive-sql-keyword">as</span>.connector.subsystems.datasources.DsParser.parseDataSource(DsParser.java:544)
    <span class="jive-sql-keyword">at</span> org.jboss.<span class="jive-sql-keyword">as</span>.connector.subsystems.datasources.DsParser.parseDataSources(DsParser.java:193)
    <span class="jive-sql-keyword">at</span> org.jboss.<span class="jive-sql-keyword">as</span>.connector.subsystems.datasources.DsParser.parse(DsParser.java:164)
    <span class="jive-sql-keyword">at</span> org.jboss.<span class="jive-sql-keyword">as</span>.connector.subsystems.datasources.DataSourcesExtension$NewDataSourceSubsystemParser.readElement(DataSourcesExtension.java:715)
    ... 14 more
[root@Testserver bin]#
</code></pre><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Can you give me some advice how to fix the problem?</p><p style="min-height: 8pt; height: 8pt; padding: 0px;"> </p><p>Regards</p></div>
<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
<p style="margin: 0;">Reply to this message by <a href="http://community.jboss.org/message/643334#643334">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in Datasource Configuration at <a href="http://community.jboss.org/choose-container!input.jspa?contentType=1&containerType=14&container=2077">Community</a></p>
</div></td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>