Menu

EJBCA failing on ant runinstall however ant deploy runs successfully

Help
ajit
2020-08-24
2020-08-25
  • ajit

    ajit - 2020-08-24

    Setup : Wildfly 14
    Openjdk 1.8
    EJBCA _ce_6_15_2_6

    [java] Exception in thread "main" java.util.ServiceConfigurationError: org.ejbca.ui.cli.infrastructure.command.CliCommandPlugin: Provider org.ejbca.ui.cli.keybind.InternalKeyBindingModifyCommand could not be instantiated
    [java] at java.util.ServiceLoader.fail(ServiceLoader.java:232)
    [java] at java.util.ServiceLoader.access$100(ServiceLoader.java:185)
    [java] at java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:384)
    [java] at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:404)
    [java] at java.util.ServiceLoader$1.next(ServiceLoader.java:480)
    [java] at org.ejbca.ui.cli.infrastructure.library.CommandLibrary.<init>(CommandLibrary.java:55)
    [java] at org.ejbca.ui.cli.infrastructure.library.CommandLibrary.<clinit>(CommandLibrary.java:39)
    [java] at org.ejbca.ui.cli.EjbcaEjbCli.main(EjbcaEjbCli.java:29)
    [java] Caused by: javax.ejb.NoSuchEJBException: EJBCLIENT000079: Unable to discover destination for request for EJB StatelessEJBLocator for "ejbca/cesecore-ejb/InternalKeyBindingMgmtSessionBean", view is interface org.cesecore.keybind.InternalKeyBindingMgmtSessionRemote, affinity is None
    [java] at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:592)
    [java] at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:528)
    [java] at org.jboss.ejb.protocol.remote.RemotingEJBClientInterceptor.handleInvocationResult(RemotingEJBClientInterceptor.java:56)
    [java] at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:594)
    [java] at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:528)
    [java] at org.jboss.ejb.client.TransactionPostDiscoveryInterceptor.handleInvocationResult(TransactionPostDiscoveryInterceptor.java:133)
    [java] at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:594)
    [java] at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:528)
    [java] at org.jboss.ejb.client.DiscoveryEJBClientInterceptor.handleInvocationResult(DiscoveryEJBClientInterceptor.java:114)
    [java] at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:594)
    [java] at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:528)
    [java] at org.jboss.ejb.client.NamingEJBClientInterceptor.handleInvocationResult(NamingEJBClientInterceptor.java:78)
    [java] at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:594)
    [java] at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:528)
    [java] at org.jboss.ejb.client.TransactionInterceptor.handleInvocationResult(TransactionInterceptor.java:172)
    [java] at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:594)
    [java] at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:528)
    [java] at org.jboss.ejb.client.EJBClientInvocationContext.awaitResponse(EJBClientInvocationContext.java:938)
    [java] at org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:177)
    [java] at org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:112)
    [java] at com.sun.proxy.$Proxy0.getAvailableTypesAndProperties(Unknown Source)
    [java] at org.ejbca.ui.cli.keybind.InternalKeyBindingModifyCommand.<init>(InternalKeyBindingModifyCommand.java:79)
    [java] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    [java] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    [java] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    [java] at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
    [java] at java.lang.Class.newInstance(Class.java:442)
    [java] at java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:380)
    [java] ... 5 more
    [java] Suppressed: java.net.ConnectException: Connection refused
    [java] at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
    [java] at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:714)
    [java] at org.xnio.nio.WorkerThread$ConnectHandle.handleReady(WorkerThread.java:327)
    [java] at org.xnio.nio.WorkerThread.run(WorkerThread.java:591)
    [java] at ...asynchronous invocation...(Unknown Source)
    [java] at org.jboss.remoting3.EndpointImpl.connect(EndpointImpl.java:571)
    [java] at org.jboss.remoting3.EndpointImpl.connect(EndpointImpl.java:537)
    [java] at org.jboss.remoting3.ConnectionInfo$None.getConnection(ConnectionInfo.java:82)
    [java] at org.jboss.remoting3.ConnectionInfo.getConnection(ConnectionInfo.java:55)
    [java] at org.jboss.remoting3.EndpointImpl.doGetConnection(EndpointImpl.java:488)
    [java] at org.jboss.remoting3.EndpointImpl.getConnectedIdentity(EndpointImpl.java:434)
    [java] at org.jboss.remoting3.UncloseableEndpoint.getConnectedIdentity(UncloseableEndpoint.java:52)
    [java] at org.jboss.ejb.protocol.remote.RemotingEJBDiscoveryProvider.getConnectedIdentityUsingClusterEffective(RemotingEJBDiscoveryProvider.java:311)
    [java] at org.jboss.ejb.protocol.remote.RemotingEJBDiscoveryProvider$DiscoveryAttempt.lambda$connectAndDiscover$0(RemotingEJBDiscoveryProvider.java:384)
    [java] at java.security.AccessController.doPrivileged(Native Method)
    [java] at org.jboss.ejb.protocol.remote.RemotingEJBDiscoveryProvider$DiscoveryAttempt.connectAndDiscover(RemotingEJBDiscoveryProvider.java:384)
    [java] at org.jboss.ejb.protocol.remote.RemotingEJBDiscoveryProvider.discover(RemotingEJBDiscoveryProvider.java:151)
    [java] at org.jboss.ejb.protocol.remote.RemoteEJBDiscoveryConfigurator.lambda$configure$0(RemoteEJBDiscoveryConfigurator.java:42)
    [java] at org.wildfly.discovery.ConfiguredProvider.discover(ConfiguredProvider.java:45)
    [java] at org.wildfly.discovery.Discovery.discover(Discovery.java:100)
    [java] at org.jboss.ejb.client.DiscoveryEJBClientInterceptor.discover(DiscoveryEJBClientInterceptor.java:241)
    [java] at org.jboss.ejb.client.DiscoveryEJBClientInterceptor.doAnyDiscovery(DiscoveryEJBClientInterceptor.java:370)
    [java] at org.jboss.ejb.client.DiscoveryEJBClientInterceptor.executeDiscovery(DiscoveryEJBClientInterceptor.java:304)
    [java] at org.jboss.ejb.client.DiscoveryEJBClientInterceptor.handleInvocation(DiscoveryEJBClientInterceptor.java:94)
    [java] at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:491)
    [java] at org.jboss.ejb.client.NamingEJBClientInterceptor.handleInvocation(NamingEJBClientInterceptor.java:63)
    [java] at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:491)
    [java] at org.jboss.ejb.client.TransactionInterceptor.handleInvocation(TransactionInterceptor.java:165)
    [java] at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:491)
    [java] at org.wildfly.common.context.Contextual.runExConsumer(Contextual.java:203)
    [java] at org.jboss.ejb.client.EJBClientInvocationContext.sendRequestInitial(EJBClientInvocationContext.java:327)
    [java] at org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:173)
    [java] ... 14 more</init></clinit></init>

    BUILD FAILED
    /opt/ejbca_ce_6_15_2_6/build.xml:70: The following error occurred while executing this line:
    /opt/ejbca_ce_6_15_2_6/bin/cli.xml:97: The following error occurred while executing this line:
    /opt/ejbca_ce_6_15_2_6/bin/cli.xml:114: The following error occurred while executing this line:
    /opt/ejbca_ce_6_15_2_6/bin/cli.xml:188: Java returned: 1

    On Wildlfly i am getting the following error after deploying EJBCA :

    12:31:59,438 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("add") failed - address: (
    ("subsystem" => "datasources"),
    ("data-source" => "ejbcads")
    ) - failure description: {
    "WFLYCTL0412: Required services that are not installed:" => ["jboss.jdbc-driver.org_mariadb_jdbc_Driver"],
    "WFLYCTL0180: Services with missing/unavailable dependencies" =>
    "org.wildfly.data-source.ejbcads is missing [jboss.jdbc-driver.org_mariadb_jdbc_Driver
    ",
    "jboss.driver-demander.java:/EjbcaDS is missing [jboss.jdbc-driver.org_mariadb_jdbc_Driver]"
    ]
    }
    12:31:59,438 ERROR [org.jboss.as.controller.management-operation] (Controller Boot Thread) WFLYCTL0013: Operation ("add") failed - address: (
    ("subsystem" => "datasources"),
    ("data-source" => "ejbcads")
    ) - failure description: {
    "WFLYCTL0412: Required services that are not installed:" =>
    "jboss.jdbc-driver.org_mariadb_jdbc_Driver",
    "jboss.jdbc-driver.org_mariadb_jdbc_Driver"
    ,
    "WFLYCTL0180: Services with missing/unavailable dependencies" =>
    "org.wildfly.data-source.ejbcads is missing [jboss.jdbc-driver.org_mariadb_jdbc_Driver
    ",
    "jboss.driver-demander.java:/EjbcaDS is missing [jboss.jdbc-driver.org_mariadb_jdbc_Driver]",
    "org.wildfly.data-source.ejbcads is missing [jboss.jdbc-driver.org_mariadb_jdbc_Driver]"
    ]

    Any help is highly appreciated. Thanks

     
  • Tomas Gustavsson

    There is no such command "ant deploy" that should be run. Check the installation guide and follow it step by step.
    https://doc.primekey.com/ejbca/ejbca-installation

    Regards,
    Tomas
    Save time and money with an Enterprise support subscription. Please see www.primekey.com for more information.
    https://www.primekey.com/products/software/

     

    Last edit: Tomas Gustavsson 2020-08-24
  • ajit

    ajit - 2020-08-24

    Hi Tomas,

    Yes there is no command like ant deploy for wildfly 14 i had used that from an old document which was using Jboss.

    But rest i have followed the guide step by step which you have mentioned . Please once have a look at the errors which i have posted . I am stuck for quite some time and am not able to fix it. Please help.

    Thanks

     
  • Tomas Gustavsson

    There is no "ant deploy" in EJBCA 6.15.x. It has nothing todo with version of WildFly or JBoss. There is no "ant deploy" for JBoss either.

    You errors indicate that you do not have the database driver installed and the database set up.
    When you run "ant deployear" in the installation docs, you should check the server.log that it deploy correctly. It seems it does not. You error does not relate to "ant runinstall", but is realted to "ant deployear" not completing succesfully because the database connection in WildFly is not configured (or not configured so it works).
    Redo your database configuration in WildFly, or start from scratch and verify that all commands used to configure WildFly ends with success.

    Regards,
    Tomas

     
  • ajit

    ajit - 2020-08-25

    Hi Tomas ,

    I did start a fresh Wildfly setup and now i am facing some new errors. Athough ant deployear was successfull .

    ant runinstall fails with the below errors :

    [java] Exception in thread "main" java.util.ServiceConfigurationError: org.ejbca.ui.cli.infrastructure.command.CliCommandPlugin: Provider org.ejbca.ui.cli.keybind.InternalKeyBindingModifyCommand could not be instantiated
    [java] at java.util.ServiceLoader.fail(ServiceLoader.java:232)
    [java] at java.util.ServiceLoader.access$100(ServiceLoader.java:185)
    [java] at java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:384)
    [java] at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:404)
    [java] at java.util.ServiceLoader$1.next(ServiceLoader.java:480)
    [java] at org.ejbca.ui.cli.infrastructure.library.CommandLibrary.<init>(CommandLibrary.java:55)
    [java] at org.ejbca.ui.cli.infrastructure.library.CommandLibrary.<clinit>(CommandLibrary.java:39)
    [java] at org.ejbca.ui.cli.EjbcaEjbCli.main(EjbcaEjbCli.java:29)
    [java] Caused by: javax.ejb.NoSuchEJBException: EJBCLIENT000079: Unable to discover destination for request for EJB StatelessEJBLocator for "ejbca/cesecore-ejb/InternalKeyBindingMgmtSessionBean", view is interface org.cesecore.keybind.InternalKeyBindingMgmtSessionRemote, affinity is None
    [java] at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:592)
    [java] at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:528)
    [java] at org.jboss.ejb.protocol.remote.RemotingEJBClientInterceptor.handleInvocationResult(RemotingEJBClientInterceptor.java:56)
    [java] at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:594)
    [java] at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:528)
    [java] at org.jboss.ejb.client.TransactionPostDiscoveryInterceptor.handleInvocationResult(TransactionPostDiscoveryInterceptor.java:133)
    [java] at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:594)
    [java] at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:528)
    [java] at org.jboss.ejb.client.DiscoveryEJBClientInterceptor.handleInvocationResult(DiscoveryEJBClientInterceptor.java:114)
    [java] at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:594)
    [java] at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:528)
    [java] at org.jboss.ejb.client.NamingEJBClientInterceptor.handleInvocationResult(NamingEJBClientInterceptor.java:78)
    [java] at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:594)
    [java] at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:528)
    [java] at org.jboss.ejb.client.TransactionInterceptor.handleInvocationResult(TransactionInterceptor.java:172)
    [java] at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:594)
    [java] at org.jboss.ejb.client.EJBClientInvocationContext.getResult(EJBClientInvocationContext.java:528)
    [java] at org.jboss.ejb.client.EJBClientInvocationContext.awaitResponse(EJBClientInvocationContext.java:938)
    [java] at org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:177)
    [java] at org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:112)
    [java] at com.sun.proxy.$Proxy0.getAvailableTypesAndProperties(Unknown Source)
    [java] at org.ejbca.ui.cli.keybind.InternalKeyBindingModifyCommand.<init>(InternalKeyBindingModifyCommand.java:79)
    [java] at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    [java] at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    [java] at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    [java] at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
    [java] at java.lang.Class.newInstance(Class.java:442)
    [java] at java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:380)
    [java] ... 5 more
    [java] Suppressed: java.net.ConnectException: Connection refused
    [java] at sun.nio.ch.SocketChannelImpl.checkConnect(Native Method)
    [java] at sun.nio.ch.SocketChannelImpl.finishConnect(SocketChannelImpl.java:714)
    [java] at org.xnio.nio.WorkerThread$ConnectHandle.handleReady(WorkerThread.java:327)
    [java] at org.xnio.nio.WorkerThread.run(WorkerThread.java:591)
    [java] at ...asynchronous invocation...(Unknown Source)
    [java] at org.jboss.remoting3.EndpointImpl.connect(EndpointImpl.java:571)
    [java] at org.jboss.remoting3.EndpointImpl.connect(EndpointImpl.java:537)
    [java] at org.jboss.remoting3.ConnectionInfo$None.getConnection(ConnectionInfo.java:82)
    [java] at org.jboss.remoting3.ConnectionInfo.getConnection(ConnectionInfo.java:55)
    [java] at org.jboss.remoting3.EndpointImpl.doGetConnection(EndpointImpl.java:488)
    [java] at org.jboss.remoting3.EndpointImpl.getConnectedIdentity(EndpointImpl.java:434)
    [java] at org.jboss.remoting3.UncloseableEndpoint.getConnectedIdentity(UncloseableEndpoint.java:52)
    [java] at org.jboss.ejb.protocol.remote.RemotingEJBDiscoveryProvider.getConnectedIdentityUsingClusterEffective(RemotingEJBDiscoveryProvider.java:311)
    [java] at org.jboss.ejb.protocol.remote.RemotingEJBDiscoveryProvider$DiscoveryAttempt.lambda$connectAndDiscover$0(RemotingEJBDiscoveryProvider.java:384)
    [java] at java.security.AccessController.doPrivileged(Native Method)
    [java] at org.jboss.ejb.protocol.remote.RemotingEJBDiscoveryProvider$DiscoveryAttempt.connectAndDiscover(RemotingEJBDiscoveryProvider.java:384)
    [java] at org.jboss.ejb.protocol.remote.RemotingEJBDiscoveryProvider.discover(RemotingEJBDiscoveryProvider.java:151)
    [java] at org.jboss.ejb.protocol.remote.RemoteEJBDiscoveryConfigurator.lambda$configure$0(RemoteEJBDiscoveryConfigurator.java:42)
    [java] at org.wildfly.discovery.ConfiguredProvider.discover(ConfiguredProvider.java:45)
    [java] at org.wildfly.discovery.Discovery.discover(Discovery.java:100)
    [java] at org.jboss.ejb.client.DiscoveryEJBClientInterceptor.discover(DiscoveryEJBClientInterceptor.java:241)
    [java] at org.jboss.ejb.client.DiscoveryEJBClientInterceptor.doAnyDiscovery(DiscoveryEJBClientInterceptor.java:370)
    [java] at org.jboss.ejb.client.DiscoveryEJBClientInterceptor.executeDiscovery(DiscoveryEJBClientInterceptor.java:304)
    [java] at org.jboss.ejb.client.DiscoveryEJBClientInterceptor.handleInvocation(DiscoveryEJBClientInterceptor.java:94)
    [java] at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:491)
    [java] at org.jboss.ejb.client.NamingEJBClientInterceptor.handleInvocation(NamingEJBClientInterceptor.java:63)
    [java] at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:491)
    [java] at org.jboss.ejb.client.TransactionInterceptor.handleInvocation(TransactionInterceptor.java:165)
    [java] at org.jboss.ejb.client.EJBClientInvocationContext.sendRequest(EJBClientInvocationContext.java:491)
    [java] at org.wildfly.common.context.Contextual.runExConsumer(Contextual.java:203)
    [java] at org.jboss.ejb.client.EJBClientInvocationContext.sendRequestInitial(EJBClientInvocationContext.java:327)
    [java] at org.jboss.ejb.client.EJBInvocationHandler.invoke(EJBInvocationHandler.java:173)
    [java] ... 14 more</init></clinit></init>

    BUILD FAILED
    /opt/ejbca_ce_6_15_2_6/build.xml:70: The following error occurred while executing this line:
    /opt/ejbca_ce_6_15_2_6/bin/cli.xml:97: The following error occurred while executing this line:
    /opt/ejbca_ce_6_15_2_6/bin/cli.xml:114: The following error occurred while executing this line:
    /opt/ejbca_ce_6_15_2_6/bin/cli.xml:188: Java returned: 1

    Wildfly has followwing warnings after the above errors :

    10:31:31,520 WARN [org.jboss.jca.core.connectionmanager.pool.strategy.OnePool] (JCA PoolFiller) IJ000610: Unable to fill pool: java:/EjbcaDS: javax.resource.ResourceException: IJ031084: Unable to create connection
    at org.jboss.jca.adapters.jdbc.local.LocalManagedConnectionFactory.createLocalManagedConnection(LocalManagedConnectionFactory.java:345)
    at org.jboss.jca.adapters.jdbc.local.LocalManagedConnectionFactory.getLocalManagedConnection(LocalManagedConnectionFactory.java:352)
    at org.jboss.jca.adapters.jdbc.local.LocalManagedConnectionFactory.createManagedConnection(LocalManagedConnectionFactory.java:287)
    at org.jboss.jca.core.connectionmanager.pool.mcp.SemaphoreConcurrentLinkedDequeManagedConnectionPool.createConnectionEventListener(SemaphoreConcurrentLinkedDequeManagedConnectionPool.java:1326)
    at org.jboss.jca.core.connectionmanager.pool.mcp.SemaphoreConcurrentLinkedDequeManagedConnectionPool.fillTo(SemaphoreConcurrentLinkedDequeManagedConnectionPool.java:1138)
    at org.jboss.jca.core.connectionmanager.pool.mcp.PoolFiller.run(PoolFiller.java:97)
    at java.lang.Thread.run(Thread.java:748)
    Caused by: java.sql.SQLRecoverableException: IO Error: The Network Adapter could not establish the connection
    at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:774)
    at oracle.jdbc.driver.PhysicalConnection.connect(PhysicalConnection.java:688)
    at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:39)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:691)
    at org.jboss.jca.adapters.jdbc.local.LocalManagedConnectionFactory.createLocalManagedConnection(LocalManagedConnectionFactory.java:321)
    ... 6 more
    Caused by: oracle.net.ns.NetException: The Network Adapter could not establish the connection
    at oracle.net.nt.ConnStrategy.execute(ConnStrategy.java:523)
    at oracle.net.resolver.AddrResolution.resolveAndExecute(AddrResolution.java:521)
    at oracle.net.ns.NSProtocol.establishConnection(NSProtocol.java:660)
    at oracle.net.ns.NSProtocol.connect(NSProtocol.java:286)
    at oracle.jdbc.driver.T4CConnection.connect(T4CConnection.java:1438)
    at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:518)
    ... 10 more
    Caused by: java.io.IOException: Connection timed out, socket connect lapse 127230 ms. ejbcadb01.p21.eng.in03.xyz.com/10.114.147.88 1521 0 1 true
    at oracle.net.nt.TcpNTAdapter.connect(TcpNTAdapter.java:209)
    at oracle.net.nt.ConnOption.connect(ConnOption.java:161)
    at oracle.net.nt.ConnStrategy.execute(ConnStrategy.java:470)
    ... 15 more
    Caused by: java.net.ConnectException: Connection timed out
    at sun.nio.ch.Net.connect0(Native Method)
    at sun.nio.ch.Net.connect(Net.java:454)
    at sun.nio.ch.Net.connect(Net.java:446)
    at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:645)
    at java.nio.channels.SocketChannel.open(SocketChannel.java:189)
    at oracle.net.nt.TimeoutSocketChannel.<init>(TimeoutSocketChannel.java:81)
    at oracle.net.nt.TcpNTAdapter.connect(TcpNTAdapter.java:169)
    ... 17 more</init>

    Please help in fixing this.

    Thanks in advance.

     
  • Tomas Gustavsson

    Hi,

    Your error message is very clear. This is a message from Oracle:

    Caused by: oracle.net.ns.NetException: The Network Adapter could not establish the connection

    The Oracle JDBC drives is not able to create a network connection to your Oracle database. Please check the IP adress and port that you configure for your database connection, and make sure there is network between your host and your database server.

    Test the network connectivity between the CA server and the database server before trying to install any further.

    Regards,
    Tomas

     
  • ajit

    ajit - 2020-08-25

    Hi Tomas,

    This is a Test Setup. Database server and And the host server are the same. Everything is hosted on the same machine.

    Thanks

     
  • Tomas Gustavsson

    Then the Oracle database is not configured to listen to the network. For Oracle you need to enable/configure tcp listener.

     
  • ajit

    ajit - 2020-08-25

    Can you suggest how can i do that in Linux. Do i need to make listener.ora file and configure?

     
  • Tomas Gustavsson

    Something like that, I remember listener.ora. But Oracle is not my expertice. If you don't know details about Oracle, perhaps you should try a database that is easier to set up in test. Like a MariaDB, that you can install in Linux (for test) with a single command.

     

Log in to post a comment.