Re: Connection refused: connect
On Fri, Sep 21, 2018 at 4:54 PM Karen Goh wrote: > Hi, > > I am repeatedly getting the following exceptions and am stuck here like > forever. > > Hope someone can tell me what's wrong with my tomcat server version: > 8.5.24 with Eclipse > > > java.net.ConnectException: Connection refused: connect > at java.net.DualStackPlainSocketImpl.connect0(Native Method) > at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source) > at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source) > at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown > Source) > at java.net.AbstractPlainSocketImpl.connect(Unknown Source) > at java.net.PlainSocketImpl.connect(Unknown Source) > at java.net.SocksSocketImpl.connect(Unknown Source) > at java.net.Socket.connect(Unknown Source) > at java.net.Socket.connect(Unknown Source) > at java.net.Socket.(Unknown Source) > at java.net.Socket.(Unknown Source) > at > org.eclipse.jdi.internal.connect.SocketTransportService$2.run(SocketTransportService.java:148) > at java.lang.Thread.run(Unknown Source) > > Tks. > Can I assume that what you are trying to do are the following? - You downloaded Tomcat 8 and extracted somewhere on hard drive - You created a web project in Eclipse - You created new Server Runtime by adding in preferences and specifying the path of your Tomcat 8 - You run your web project using the runtime > > --- On Sat, 9/15/18, Karen Goh wrote: > > > From: Karen Goh > > Subject: Error: Could not find or load main class set > > To: users@tomcat.apache.org > > Date: Saturday, September 15, 2018, 2:50 PM > > Hi, > > > > I am now getting the above error. > > There is no further error stacktrace from error log or > > console etc. > > > > So far, I have deleted the server and > > created new instances but still getting the same error. > > > > I have read the following solutions but > > they are not helpful > > > > > http://www.java67.com/2016/09/3-ways-to-solve-eclipse-main-class-not-found-error-java.html > > > > > https://www.researchgate.net/post/How_to_solve_Error_Could_not_find_or_load_main_class > > > > Please help. > > > > Tks, > > Karen > > > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > -- Guang <http://javadevnotes.com/java-array-of-objects>
Re: Connection refused: connect
Hello Karen, May I ask you what exactly you try to do: - Deploy locally - Deploy remotely - Debug locally - Debug remotely - Other... Eclipse version? Other plugins or tools (e.g. maven)? Thanks, Luis El sáb., 22 sept. 2018 a las 0:52, Igal Sapir () escribió: > On 9/21/2018 12:45 PM, André Warnier (tomcat) wrote: > > Hi. > > Sorry, forget my answer below, I was probably talking nonsense here. > > The stack trace that you show does not even mention any Tomcat class, > > so the "connect" mentioned below probably has nothing to do with the > > HTTP CONNECT method. > > It looks like something in Eclipse itself, but since I do not know > > Eclipse (either), I don't have a clue. > > > > On 21.09.2018 17:06, André Warnier (tomcat) wrote: > >> On 21.09.2018 10:54, Karen Goh wrote: > >>> Hi, > >>> > >>> I am repeatedly getting the following exceptions and am stuck here > >>> like forever. > >>> > >>> Hope someone can tell me what's wrong with my tomcat server version: > >>> 8.5.24 with Eclipse > >>> > >>> java.net.ConnectException: Connection refused: connect > >>> at java.net.DualStackPlainSocketImpl.connect0(Native Method) > >>> at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source) > >>> at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source) > >>> at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown > >>> Source) > >>> at java.net.AbstractPlainSocketImpl.connect(Unknown Source) > >>> at java.net.PlainSocketImpl.connect(Unknown Source) > >>> at java.net.SocksSocketImpl.connect(Unknown Source) > >>> at java.net.Socket.connect(Unknown Source) > >>> at java.net.Socket.connect(Unknown Source) > >>> at java.net.Socket.(Unknown Source) > >>> at java.net.Socket.(Unknown Source) > >>> at > >>> > org.eclipse.jdi.internal.connect.SocketTransportService$2.run(SocketTransportService.java:148) > > >>> > >>> > >>> at java.lang.Thread.run(Unknown Source) > > It looks to me like Eclipse is trying to connect to Tomcat but fails. > If the connection is made over the network then a firewall might be > playing a role here. If it's all done locally then Tomcat is not > listening on the host:port to which Eclipse is trying to connect. > > Can you connect to that host:port with a browser? e.g. > http://localhost:8080/ ? > > Igal > > > - > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > -- "Ever tried. Ever failed. No matter. Try Again. Fail again. Fail better." - Samuel Beckett
Re: Connection refused: connect
On 9/21/2018 12:45 PM, André Warnier (tomcat) wrote: Hi. Sorry, forget my answer below, I was probably talking nonsense here. The stack trace that you show does not even mention any Tomcat class, so the "connect" mentioned below probably has nothing to do with the HTTP CONNECT method. It looks like something in Eclipse itself, but since I do not know Eclipse (either), I don't have a clue. On 21.09.2018 17:06, André Warnier (tomcat) wrote: On 21.09.2018 10:54, Karen Goh wrote: Hi, I am repeatedly getting the following exceptions and am stuck here like forever. Hope someone can tell me what's wrong with my tomcat server version: 8.5.24 with Eclipse java.net.ConnectException: Connection refused: connect at java.net.DualStackPlainSocketImpl.connect0(Native Method) at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source) at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source) at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source) at java.net.AbstractPlainSocketImpl.connect(Unknown Source) at java.net.PlainSocketImpl.connect(Unknown Source) at java.net.SocksSocketImpl.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at java.net.Socket.(Unknown Source) at java.net.Socket.(Unknown Source) at org.eclipse.jdi.internal.connect.SocketTransportService$2.run(SocketTransportService.java:148) at java.lang.Thread.run(Unknown Source) It looks to me like Eclipse is trying to connect to Tomcat but fails. If the connection is made over the network then a firewall might be playing a role here. If it's all done locally then Tomcat is not listening on the host:port to which Eclipse is trying to connect. Can you connect to that host:port with a browser? e.g. http://localhost:8080/ ? Igal - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Connection refused: connect
Hi. Sorry, forget my answer below, I was probably talking nonsense here. The stack trace that you show does not even mention any Tomcat class, so the "connect" mentioned below probably has nothing to do with the HTTP CONNECT method. It looks like something in Eclipse itself, but since I do not know Eclipse (either), I don't have a clue. On 21.09.2018 17:06, André Warnier (tomcat) wrote: On 21.09.2018 10:54, Karen Goh wrote: Hi, I am repeatedly getting the following exceptions and am stuck here like forever. Hope someone can tell me what's wrong with my tomcat server version: 8.5.24 with Eclipse java.net.ConnectException: Connection refused: connect at java.net.DualStackPlainSocketImpl.connect0(Native Method) at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source) at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source) at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source) at java.net.AbstractPlainSocketImpl.connect(Unknown Source) at java.net.PlainSocketImpl.connect(Unknown Source) at java.net.SocksSocketImpl.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at java.net.Socket.(Unknown Source) at java.net.Socket.(Unknown Source) at org.eclipse.jdi.internal.connect.SocketTransportService$2.run(SocketTransportService.java:148) at java.lang.Thread.run(Unknown Source) Tks. Did you configure an access log for your Tomcat ? If yes, can you look into it for the an access that would happen at the same time as the error you show above ? I am curious, rather than definitive here. But the word "connect" looks suspiciously like the HTTP CONNECT method (see : https://en.wikipedia.org/wiki/HTTP_tunnel), and maybe someone is just trying to use your Tomcat server as a proxy to something. If so, then someone or something is trying to hack your server, and your server is (correctly) rejecting that call. --- On Sat, 9/15/18, Karen Goh wrote: From: Karen Goh Subject: Error: Could not find or load main class set To: users@tomcat.apache.org Date: Saturday, September 15, 2018, 2:50 PM Hi, I am now getting the above error. There is no further error stacktrace from error log or console etc. So far, I have deleted the server and created new instances but still getting the same error. I have read the following solutions but they are not helpful http://www.java67.com/2016/09/3-ways-to-solve-eclipse-main-class-not-found-error-java.html https://www.researchgate.net/post/How_to_solve_Error_Could_not_find_or_load_main_class Please help. Tks, Karen - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: Connection refused: connect
On 21.09.2018 10:54, Karen Goh wrote: Hi, I am repeatedly getting the following exceptions and am stuck here like forever. Hope someone can tell me what's wrong with my tomcat server version: 8.5.24 with Eclipse java.net.ConnectException: Connection refused: connect at java.net.DualStackPlainSocketImpl.connect0(Native Method) at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source) at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source) at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source) at java.net.AbstractPlainSocketImpl.connect(Unknown Source) at java.net.PlainSocketImpl.connect(Unknown Source) at java.net.SocksSocketImpl.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at java.net.Socket.(Unknown Source) at java.net.Socket.(Unknown Source) at org.eclipse.jdi.internal.connect.SocketTransportService$2.run(SocketTransportService.java:148) at java.lang.Thread.run(Unknown Source) Tks. Did you configure an access log for your Tomcat ? If yes, can you look into it for the an access that would happen at the same time as the error you show above ? I am curious, rather than definitive here. But the word "connect" looks suspiciously like the HTTP CONNECT method (see : https://en.wikipedia.org/wiki/HTTP_tunnel), and maybe someone is just trying to use your Tomcat server as a proxy to something. If so, then someone or something is trying to hack your server, and your server is (correctly) rejecting that call. --- On Sat, 9/15/18, Karen Goh wrote: From: Karen Goh Subject: Error: Could not find or load main class set To: users@tomcat.apache.org Date: Saturday, September 15, 2018, 2:50 PM Hi, I am now getting the above error. There is no further error stacktrace from error log or console etc. So far, I have deleted the server and created new instances but still getting the same error. I have read the following solutions but they are not helpful http://www.java67.com/2016/09/3-ways-to-solve-eclipse-main-class-not-found-error-java.html https://www.researchgate.net/post/How_to_solve_Error_Could_not_find_or_load_main_class Please help. Tks, Karen - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Connection refused: connect
Hi, I am repeatedly getting the following exceptions and am stuck here like forever. Hope someone can tell me what's wrong with my tomcat server version: 8.5.24 with Eclipse java.net.ConnectException: Connection refused: connect at java.net.DualStackPlainSocketImpl.connect0(Native Method) at java.net.DualStackPlainSocketImpl.socketConnect(Unknown Source) at java.net.AbstractPlainSocketImpl.doConnect(Unknown Source) at java.net.AbstractPlainSocketImpl.connectToAddress(Unknown Source) at java.net.AbstractPlainSocketImpl.connect(Unknown Source) at java.net.PlainSocketImpl.connect(Unknown Source) at java.net.SocksSocketImpl.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at java.net.Socket.(Unknown Source) at java.net.Socket.(Unknown Source) at org.eclipse.jdi.internal.connect.SocketTransportService$2.run(SocketTransportService.java:148) at java.lang.Thread.run(Unknown Source) Tks. --- On Sat, 9/15/18, Karen Goh wrote: > From: Karen Goh > Subject: Error: Could not find or load main class set > To: users@tomcat.apache.org > Date: Saturday, September 15, 2018, 2:50 PM > Hi, > > I am now getting the above error. > There is no further error stacktrace from error log or > console etc. > > So far, I have deleted the server and > created new instances but still getting the same error. > > I have read the following solutions but > they are not helpful > > http://www.java67.com/2016/09/3-ways-to-solve-eclipse-main-class-not-found-error-java.html > > https://www.researchgate.net/post/How_to_solve_Error_Could_not_find_or_load_main_class > > Please help. > > Tks, > Karen > - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: org.apache.axis2.AxisFault: [was class java.net.ConnectException] Connection refused: connect
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Tom/Denise, On 9/24/12 1:17 PM, Tom Anthony wrote: > On the server side there is no error, I can even see the > system.outs I put in the server class (skeleton). If you can see the System.out.println's executing on the server side, then I suspect that "connection refused" is not the real error. We can't help you without any more information. - -chris -BEGIN PGP SIGNATURE- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Mozilla - http://www.enigmail.net/ iEYEARECAAYFAlBgqpQACgkQ9CaO5/Lv0PD/IwCeL4l/TuegXYgol1kwtW1l7Kza fdoAnjyDnAgdZmko78C8qhqArFZNmN78 =U+5H -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: org.apache.axis2.AxisFault: [was class java.net.ConnectException] Connection refused: connect
Hi Chris, On the server side there is no error, I can even see the system.outs I put in the server class (skeleton). Thanks very much for your help! -- View this message in context: http://tomcat.10.n6.nabble.com/org-apache-axis2-AxisFault-was-class-java-net-ConnectException-Connection-refused-connect-tp4987105p4987115.html Sent from the Tomcat - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
Re: org.apache.axis2.AxisFault: [was class java.net.ConnectException] Connection refused: connect
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Denise, On 9/24/12 12:05 PM, Denise Wu wrote: > I developed a simple webservice to return a string based on an > input string sent by the client. I configured my apache tomcat and > axis2 for https on port 8443. > > When I send a query, it got received by the server as I can > display the input string from the skeleton class and see it on > tomcat log. However the client didn't receive any response but > rather throws the following error: Seeing the error on the client does not help at all. What happens on the server? - -chris -BEGIN PGP SIGNATURE- Version: GnuPG/MacGPG2 v2.0.17 (Darwin) Comment: GPGTools - http://gpgtools.org Comment: Using GnuPG with Mozilla - http://www.enigmail.net/ iEYEARECAAYFAlBgjqAACgkQ9CaO5/Lv0PDwXgCeLhOxmyEqIjjMjlhnHYxgS0h1 YCUAnj8rCIb9ALUnUr80vD+Hj0lM/sEv =zZb6 -END PGP SIGNATURE- - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org
org.apache.axis2.AxisFault: [was class java.net.ConnectException] Connection refused: connect
Hi, I developed a simple webservice to return a string based on an input string sent by the client. I configured my apache tomcat and axis2 for https on port 8443. When I send a query, it got received by the server as I can display the input string from the skeleton class and see it on tomcat log. However the client didn't receive any response but rather throws the following error: Any idea? Thanks, problem running EchoString: org.apache.axis2.AxisFault: [was class java.net.ConnectException] Connection refused: connect org.apache.axis2.AxisFault: [was class java.net.ConnectException] Connection refused: connect at org.apache.axis2.AxisFault.makeFault(AxisFault.java:430) at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:123) at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:67) at org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:354) at org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:421) at org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:229) at org.apache.axis2.client.OperationClient.execute(OperationClient.java:165) at uk.ac.diamond.testws.client.TestWSStub.echoString(TestWSStub.java:200) at TestClient.RESTClient.echoString(RESTClient.java:153) at TestClient.TestRunner.main(TestRunner.java:24) Caused by: java.lang.RuntimeException: [was class java.net.ConnectException] Connection refused: connect at com.ctc.wstx.util.ExceptionUtil.throwRuntimeException(ExceptionUtil.java:18) at com.ctc.wstx.sr.StreamScanner.throwLazyError(StreamScanner.java:731) at com.ctc.wstx.sr.BasicStreamReader.safeFinishToken(BasicStreamReader.java:3657) at com.ctc.wstx.sr.BasicStreamReader.getText(BasicStreamReader.java:809) at org.apache.axiom.util.stax.wrapper.XMLStreamReaderWrapper.getText(XMLStreamReaderWrapper.java:164) at org.apache.axiom.om.impl.builder.StAXOMBuilder.logParserState(StAXOMBuilder.java:402) at org.apache.axiom.om.impl.builder.StAXOMBuilder.next(StAXOMBuilder.java:243) at org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.getSOAPEnvelope(StAXSOAPModelBuilder.java:198) at org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.(StAXSOAPModelBuilder.java:154) at org.apache.axiom.soap.impl.builder.StAXSOAPModelBuilder.(StAXSOAPModelBuilder.java:140) at org.apache.axis2.builder.BuilderUtil.getSOAPBuilder(BuilderUtil.java:686) at org.apache.axis2.transport.TransportUtils.createDocumentElement(TransportUtils.java:197) at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:145) at org.apache.axis2.transport.TransportUtils.createSOAPMessage(TransportUtils.java:108) ... 8 more Caused by: java.net.ConnectException: Connection refused: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200) at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366) at java.net.Socket.connect(Socket.java:529) at java.net.Socket.connect(Socket.java:478) at sun.net.NetworkClient.doConnect(NetworkClient.java:163) at sun.net.www.http.HttpClient.openServer(HttpClient.java:394) at sun.net.www.http.HttpClient.openServer(HttpClient.java:529) at sun.net.www.http.HttpClient.(HttpClient.java:233) at sun.net.www.http.HttpClient.New(HttpClient.java:306) at sun.net.www.http.HttpClient.New(HttpClient.java:323) at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:970) at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:911) at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:836) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1172) at java.net.URL.openStream(URL.java:1010) at com.ctc.wstx.util.URLUtil.optimizedStreamFromURL(URLUtil.java:113) at com.ctc.wstx.io.DefaultInputResolver.sourceFromURL(DefaultInputResolver.java:256) at com.ctc.wstx.io.DefaultInputResolver.resolveEntity(DefaultInputResolver.java:96) at com.ctc.wstx.sr.ValidatingStreamReader.findDtdExtSubset(ValidatingStreamReader.java:468) at com.ctc.wstx.sr.ValidatingStreamReader.finishDTD(ValidatingStreamReader.java:358) at com.ctc.wstx.sr.BasicStreamReader.finishToken(BasicStreamReader.java:3737) at com.ctc.wstx.sr.BasicStreamReader.safeFinishToken(BasicStreamReader.java