<!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="https://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 to create an oracle Datasource
</h3>
<span style="margin-bottom: 10px;">
    created by <a href="https://community.jboss.org/people/tatupirsa">tatupirsa tatu</a> in <i>Datasource Configuration</i> - <a href="https://community.jboss.org/message/799337#799337">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'm trying to create a new Oracle Datasource throught admin console in Jboss 5.1.0.GA in Rhel 6.2, but it seems me an error:</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>-- The datasource is:</p><p>JNDI Name: jdbc/appDS</p><p>username: app_user</p><p>JDBC Driver Class: oracle.jdbc.driver.OracleDriver</p><p>Connection URL: jdbc:oracle:thin:@(DESCRIPTION=(LOAD_BALANCE=on)(ADDRESS_LIST=(ADDRESS=(PROTOCOL=tcp)(HOST=server1-vip.salud.psis)(PORT=1521))(ADDRESS=(PROTOCOL=tcp)(HOST=server2-vip.salud.psis)(PORT=1521)))(CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=APP_BD))))</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>-- The console error:</p><p>Failed to add Resource (see app server log for additional details): java.lang.RuntimeException:Failed to process template. -&gt; java.lang.RuntimeException:java.io.IOException: Can not find a free port for use. -&gt; java.io.IOException:Can not find a free port for use. </p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>-- The error log:</p><p>2013-02-25 10:10:43,887 WARN&#160; [org.jboss.managed.plugins.factory.AbstractManagedObjectPopulator] </p><p>(ResourceContainer.invoker.nonDaemon-2) Cannot create String name from non-Simple property: </p><p>ManagedProperty{jndi-name,jndiName,metaType=SimpleMetaType:java.lang.String}, value=null</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>2013-02-25 10:10:44,832 ERROR [org.rhq.plugins.jbossas5.ApplicationServerComponent] </p><p>(ResourceContainer.invoker.nonDaemon-2) Unable to apply template [LocalTxDataSourceTemplate] </p><p>to create ManagedComponent of type ComponentType{type=DataSource, subtype=LocalTx}.</p><p>java.lang.RuntimeException: Failed to process template.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>-- In debug mode shows that:</p><p>2013-02-25 10:31:40,599 DEBUG [org.jboss.remoting.transport.PortUtil] (ResourceContainer.invoker.nonDaemon-2) port 57186 already in use.&#160; Will try another.</p><p>2013-02-25 10:31:40,600 DEBUG [org.jboss.remoting.transport.PortUtil] (ResourceContainer.invoker.nonDaemon-2) port 57187 already in use.&#160; Will try another.</p><p>2013-02-25 10:31:40,600 DEBUG [org.jboss.remoting.transport.PortUtil] (ResourceContainer.invoker.nonDaemon-2) port 57188 already in use.&#160; Will try another.</p><p>2013-02-25 10:31:40,600 DEBUG [org.jboss.remoting.transport.PortUtil] (ResourceContainer.invoker.nonDaemon-2) port 57189 already in use.&#160; Will try another.</p><p>2013-02-25 10:31:40,600 DEBUG [org.jboss.remoting.transport.PortUtil] (ResourceContainer.invoker.nonDaemon-2) port 57190 already in use.&#160; Will try another.</p><p>2013-02-25 10:31:40,600 DEBUG [org.jboss.remoting.transport.PortUtil] (ResourceContainer.invoker.nonDaemon-2) port 57191 already in use.&#160; Will try another.</p><p>...</p><p>2013-02-25 10:31:40,607 DEBUG [org.jboss.remoting.transport.PortUtil] (ResourceContainer.invoker.nonDaemon-2) port 57234 already in use.&#160; Will try another.</p><p>2013-02-25 10:31:40,607 DEBUG [org.jboss.remoting.transport.PortUtil] (ResourceContainer.invoker.nonDaemon-2) port 57235 already in use.&#160; Will try another.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Theses ports are not in use actually.</p><p style="min-height: 8pt; height: 8pt; padding: 0px;">&#160;</p><p>Any ideas?</p><p>Thanks!</p></div>

<div style="background-color: #f4f4f4; padding: 10px; margin-top: 20px;">
    <p style="margin: 0;">Reply to this message by <a href="https://community.jboss.org/message/799337#799337">going to Community</a></p>
        <p style="margin: 0;">Start a new discussion in Datasource Configuration at <a href="https://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>