Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Oracle Community by taolu2000, 1 year ago
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
via Google Groups by Manty 01Actual, 9 months ago
Error in allocating a connection. Cause: Connection could not be allocated because: Failed to start database '/Users/Manty01Actual/.wonderland-server/0.5-preview4/run/wonderlanddb', see the next exception for details. Error Code: 0
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(ContainerBase.java:932)	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:912)	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:694)	at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1816)	at com.sun.enterprise.web.WebContainer.loadWebModule(WebContainer.java:1520)	at com.sun.enterprise.web.WebApplication.start(WebApplication.java:93)	at org.glassfish.internal.data.EngineRef.start(EngineRef.java:126)	at org.glassfish.internal.data.ModuleInfo.start(ModuleInfo.java:229)	at org.glassfish.internal.data.ApplicationInfo.start(ApplicationInfo.java:214)	at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:307)	at com.sun.enterprise.v3.server.ApplicationLifecycle.deploy(ApplicationLifecycle.java:172)	at org.glassfish.deployment.admin.DeployCommand.execute(DeployCommand.java:270)	at com.sun.enterprise.v3.admin.CommandRunnerImpl$4.execute(CommandRunnerImpl.java:403)