0 Replies Latest reply on Feb 25, 2013 5:29 AM by tatupirsa tatu

    Error to create an oracle Datasource

    tatupirsa tatu Newbie

      Hi,

      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:

       

      -- The datasource is:

      JNDI Name: jdbc/appDS

      username: app_user

      JDBC Driver Class: oracle.jdbc.driver.OracleDriver

      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))))

       

      -- The console error:

      Failed to add Resource (see app server log for additional details): java.lang.RuntimeException:Failed to process template. -> java.lang.RuntimeException:java.io.IOException: Can not find a free port for use. -> java.io.IOException:Can not find a free port for use.

       

      -- The error log:

      2013-02-25 10:10:43,887 WARN  [org.jboss.managed.plugins.factory.AbstractManagedObjectPopulator]

      (ResourceContainer.invoker.nonDaemon-2) Cannot create String name from non-Simple property:

      ManagedProperty{jndi-name,jndiName,metaType=SimpleMetaType:java.lang.String}, value=null

       

      2013-02-25 10:10:44,832 ERROR [org.rhq.plugins.jbossas5.ApplicationServerComponent]

      (ResourceContainer.invoker.nonDaemon-2) Unable to apply template [LocalTxDataSourceTemplate]

      to create ManagedComponent of type ComponentType{type=DataSource, subtype=LocalTx}.

      java.lang.RuntimeException: Failed to process template.

       

      -- In debug mode shows that:

      2013-02-25 10:31:40,599 DEBUG [org.jboss.remoting.transport.PortUtil] (ResourceContainer.invoker.nonDaemon-2) port 57186 already in use.  Will try another.

      2013-02-25 10:31:40,600 DEBUG [org.jboss.remoting.transport.PortUtil] (ResourceContainer.invoker.nonDaemon-2) port 57187 already in use.  Will try another.

      2013-02-25 10:31:40,600 DEBUG [org.jboss.remoting.transport.PortUtil] (ResourceContainer.invoker.nonDaemon-2) port 57188 already in use.  Will try another.

      2013-02-25 10:31:40,600 DEBUG [org.jboss.remoting.transport.PortUtil] (ResourceContainer.invoker.nonDaemon-2) port 57189 already in use.  Will try another.

      2013-02-25 10:31:40,600 DEBUG [org.jboss.remoting.transport.PortUtil] (ResourceContainer.invoker.nonDaemon-2) port 57190 already in use.  Will try another.

      2013-02-25 10:31:40,600 DEBUG [org.jboss.remoting.transport.PortUtil] (ResourceContainer.invoker.nonDaemon-2) port 57191 already in use.  Will try another.

      ...

      2013-02-25 10:31:40,607 DEBUG [org.jboss.remoting.transport.PortUtil] (ResourceContainer.invoker.nonDaemon-2) port 57234 already in use.  Will try another.

      2013-02-25 10:31:40,607 DEBUG [org.jboss.remoting.transport.PortUtil] (ResourceContainer.invoker.nonDaemon-2) port 57235 already in use.  Will try another.

       

      Theses ports are not in use actually.

       

      Any ideas?

      Thanks!