java.sql.SQLException: Error in allocating a connection. Cause: Connection could not be allocated because: java.net.ConnectException : Error connecting to server localhost on port 1527 with message Connection refused: connect. Error Code: 0

Oracle Community | taolu2000 | 7 years ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Error from eclipselink while deploying app to GFv3

    Oracle Community | 7 years ago | taolu2000
    java.sql.SQLException: Error in allocating a connection. Cause: Connection could not be allocated because: java.net.ConnectException : Error connecting to server localhost on port 1527 with message Connection refused: connect. Error Code: 0

    Root Cause Analysis

    1. java.sql.SQLException

      Error in allocating a connection. Cause: Connection could not be allocated because: java.net.ConnectException : Error connecting to server localhost on port 1527 with message Connection refused: connect. Error Code: 0

      at org.apache.catalina.core.ContainerBase.addChildInternal()
    2. Glassfish Core
      StandardHost.addChild
      1. org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:932)
      2. org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:912)
      3. org.apache.catalina.core.StandardHost.addChild(StandardHost.java:694)
      3 frames
    3. Glassfish
      WebApplication.start
      1. com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1816)
      2. com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1520)
      3. com.sun.enterprise.web.WebApplication.start(WebApplication.java:93)
      3 frames
    4. Private APIs of Glassfish
      ApplicationInfo.start
      1. org.glassfish.internal.data.EngineRef.start(EngineRef.java:126)
      2. org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:229)
      3. org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:214)
      3 frames
    5. Kernel Classes
      ApplicationLifecycle.deploy
      1. com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:307)
      2. com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:172)
      2 frames
    6. Embedded GlassFish Web
      DeployCommand.execute
      1. org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:270)
      1 frame
    7. Kernel Classes
      CommandRunnerImpl$4.execute
      1. com.sun.enterprise.v3.admin.CommandRunnerImpl$4.execute(CommandRunnerImpl.java:403)
      1 frame