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

Samebug tips

  1. ,

    Check if your MongoDB is available.

  2. ,

    Check if your MariaDB is running and available.

Solutions on the web

via Apache's JIRA Issue Tracker by Jay D. McHugh, 1 year ago
Connection refused to host: 127.0.0.1; nested exception is: java.net.ConnectException: Connection refused
java.net.ConnectException: Connection refused	at java.net.PlainSocketImpl.socketConnect(Native Method)	at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:333)	at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:195)	at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:182)	at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)	at java.net.Socket.connect(Socket.java:519)	at java.net.Socket.connect(Socket.java:469)	at java.net.Socket.(Socket.java:366)	at java.net.Socket.(Socket.java:179)	at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:22)	at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:128)	at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:569)	at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:185)	at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171)	at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:94)	at javax.management.remote.rmi.RMIServerImpl_Stub.newClient(Unknown Source)	at javax.management.remote.rmi.RMIConnector.getConnection(RMIConnector.java:2239)	at javax.management.remote.rmi.RMIConnector.connect(RMIConnector.java:271)	at javax.management.remote.JMXConnectorFactory.connect(JMXConnectorFactory.java:248)	at org.apache.geronimo.deployment.plugin.factories.BaseDeploymentFactory.newRemoteDeploymentManager(BaseDeploymentFactory.java:159)	at org.apache.geronimo.deployment.plugin.factories.BaseDeploymentFactory.getDeploymentManager(BaseDeploymentFactory.java:131)	at javax.enterprise.deploy.shared.factories.DeploymentFactoryManager.getDeploymentManager(DeploymentFactoryManager.java:111)	at org.apache.geronimo.deployment.cli.ServerConnection.tryToConnect(ServerConnection.java:181)	at org.apache.geronimo.deployment.cli.ServerConnection.(ServerConnection.java:93)	at org.apache.geronimo.deployment.cli.DeployTool.execute(DeployTool.java:158)	at org.apache.geronimo.kernel.util.MainConfigurationBootstrapper.main(MainConfigurationBootstrapper.java:45)	at org.apache.geronimo.cli.AbstractCLI.executeMain(AbstractCLI.java:67)	at org.apache.geronimo.cli.deployer.DeployerCLI.main(DeployerCLI.java:31)