NotifyUtil::java.net.ConnectException: Connection refused: connect
My application works fine but following log is streaming. I don't know the reason, what should I do? Thanks Otgo NotifyUtil::java.net.ConnectException: Connection refused: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(Unknown Source) at java.net.PlainSocketImpl.connectToAddress(Unknown Source) at java.net.PlainSocketImpl.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at sun.net.NetworkClient.doConnect(Unknown Source) at sun.net.www.http.HttpClient.openServer(Unknown Source) at sun.net.www.http.HttpClient.openServer(Unknown Source) at sun.net.www.http.HttpClient.init(Unknown Source) at sun.net.www.http.HttpClient.init(Unknown Source) at sun.net.www.http.HttpClient.New(Unknown Source) at sun.net.www.http.HttpClient.New(Unknown Source) at sun.net.www.http.HttpClient.New(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown Source) at org.netbeans.modules.web.monitor.server.NotifyUtil$RecordSender.run(NotifyUt il.java:237) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
NotifyUtil::java.net.ConnectException: Connection refused: connect
My application works fine but following log is streaming. I don't know the reason, what should I do? Thanks Otgo NotifyUtil::java.net.ConnectException: Connection refused: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(Unknown Source) at java.net.PlainSocketImpl.connectToAddress(Unknown Source) at java.net.PlainSocketImpl.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at java.net.Socket.connect(Unknown Source) at sun.net.NetworkClient.doConnect(Unknown Source) at sun.net.www.http.HttpClient.openServer(Unknown Source) at sun.net.www.http.HttpClient.openServer(Unknown Source) at sun.net.www.http.HttpClient.init(Unknown Source) at sun.net.www.http.HttpClient.init(Unknown Source) at sun.net.www.http.HttpClient.New(Unknown Source) at sun.net.www.http.HttpClient.New(Unknown Source) at sun.net.www.http.HttpClient.New(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source) at sun.net.www.protocol.http.HttpURLConnection.getOutputStream(Unknown Source) at org.netbeans.modules.web.monitor.server.NotifyUtil$RecordSender.run(NotifyUt il.java:237) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
java.net.ConnectException: Connection refused
I am using Tomcat4.0, mysql 4.0.18 , on Linux environment. And i am unable to connect to mysql db. Below is the url i am using in server.xml file. and also i have the jdbc driver under WEB-INF/lib - mysql-connector-java-3.0.14-production-bin.jar...I was successfully able to deploy the same application on Windows, using the same server.xml file. please help. parameter namefactory/name valueorg.apache.commons.dbcp.BasicDataSourceFactory/value /parameter parameter nameurl/name valuejdbc:mysql://localhost:3306/prototypedb?autoReconnect=true/value /parameter !-- Class name for mm.mysql JDBC driver -- parameter namedriverClassName/name valueorg.gjt.mm.mysql.Driver/value /parameter org.apache.commons.dbcp.SQLNestedException: Cannot create PoolableConnectionFactory, cause: java.sql.SQLException: Server connection failure during transaction. Due to underlying exception: 'java.net.ConnectException: Connection refused'. ** BEGIN NESTED EXCEPTION ** java.net.ConnectException MESSAGE: Connection refused STACKTRACE: java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158) at java.net.Socket.connect(Socket.java:452) at java.net.Socket.connect(Socket.java:402) at java.net.Socket.init(Socket.java:309) at java.net.Socket.init(Socket.java:124) at com.mysql.jdbc.StandardSocketFactory.connect(StandardSocketFactory.java:121) at com.mysql.jdbc.MysqlIO.init(MysqlIO.java:220) at com.mysql.jdbc.Connection.createNewIO(Connection.java:1884) at com.mysql.jdbc.Connection.init(Connection.java:440) at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:400) at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConne ctionFactory.java:82) at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnect ionFactory.java:300) at org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicDataS ource.java:838) at org.apache.commons.dbcp.BasicDataSource.createDataSource(BasicDataSource.jav a:821) at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:5 18) at com.ecommerce.DAO.DAOFactory.getConnection(Unknown Source) at com.ecommerce.DAO.UserDAO.init(Unknown Source) at com.ecommerce.action.PlaceOrderAction.execute(Unknown Source) at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProces sor.java:484) at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:274) at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1482) at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:525) at javax.servlet.http.HttpServlet.service(HttpServlet.java:760) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Application FilterChain.java:247) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterCh ain.java:193) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.ja va:243) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.ja va:190) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 66) at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:2 46) at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:5 64) at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472) at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943) at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347) Attempted reconnect 3 times. Giving up. at com.mysql.jdbc.Connection.createNewIO(Connection.java:1952) at com.mysql.jdbc.Connection.init(Connection.java:440) at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:400) at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConne ctionFactory.java:82) at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnect ionFactory.java:300) at org.apache.commons.dbcp.BasicDataSource.validateConnectionFactory(BasicDataS ource.java:838
Re: java.net.ConnectException: Connection refused
Shilpa Nalgonda wrote: I am using Tomcat4.0, mysql 4.0.18 , on Linux environment. And i am unable to connect to mysql db. underlying exception: 'java.net.ConnectException: Connection refused'. Can you connect manually (try telnet) to localhost port 3306? I'd bet not, in which case you'll need to add a rule to your iptables configuration... Of course, that's also assuming that mysqld is actually running :-) HTH! -- Hassan Schroeder - [EMAIL PROTECTED] Webtuitive Design === (+1) 408-938-0567 === http://webtuitive.com dream. code. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Catalina.stop: java.net.ConnectException: Connection refused
Anyone? It's quite urgent and I'm stuck now... On Sun, 21 Sep 2003 21:53:30 +0200, Ilja [EMAIL PROTECTED] said: Tomcat suddenly stopped working without any obvious reason... Config: Tomcat 5.09 Mac OSX 10.2.6 error: Catalina.stop: java.net.ConnectException: Connection refused java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158) at java.net.Socket.connect(Socket.java:426) at java.net.Socket.connect(Socket.java:376) at java.net.Socket.init(Socket.java:291) at java.net.Socket.init(Socket.java:119) at org.apache.catalina.startup.Catalina.stop(Catalina.java:581) at org.apache.catalina.startup.Catalina.execute(Catalina.java:402) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) Anyone? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Catalina.stop: java.net.ConnectException: Connection refused
Possibly Tomcat or something else is already running on your TC port, therefore TC cannot start. Run a simple ps -ef | grep java and kill all TC processes, restart TC. -Original Message- From: Ilja Hehenkamp [mailto:[EMAIL PROTECTED] Sent: 22 September 2003 10:43 To: [EMAIL PROTECTED] Subject: Re: Catalina.stop: java.net.ConnectException: Connection refused Anyone? It's quite urgent and I'm stuck now... On Sun, 21 Sep 2003 21:53:30 +0200, Ilja [EMAIL PROTECTED] said: Tomcat suddenly stopped working without any obvious reason... Config: Tomcat 5.09 Mac OSX 10.2.6 error: Catalina.stop: java.net.ConnectException: Connection refused java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158) at java.net.Socket.connect(Socket.java:426) at java.net.Socket.connect(Socket.java:376) at java.net.Socket.init(Socket.java:291) at java.net.Socket.init(Socket.java:119) at org.apache.catalina.startup.Catalina.stop(Catalina.java:581) at org.apache.catalina.startup.Catalina.execute(Catalina.java:402) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39 ) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) Anyone? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Catalina.stop: java.net.ConnectException: Connection refused
Tomcat suddenly stopped working without any obvious reason... Config: Tomcat 5.09 Mac OSX 10.2.6 error: Catalina.stop: java.net.ConnectException: Connection refused java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158) at java.net.Socket.connect(Socket.java:426) at java.net.Socket.connect(Socket.java:376) at java.net.Socket.init(Socket.java:291) at java.net.Socket.init(Socket.java:119) at org.apache.catalina.startup.Catalina.stop(Catalina.java:581) at org.apache.catalina.startup.Catalina.execute(Catalina.java:402) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) Anyone? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Fwd: Delivery problems: Catalina.stop: java.net.ConnectException: Connection refused
Why do I always get this message when I send an email to this list? 1) I subscribed to the list and confirmed it as well, even got a confirmation from the mailinglist deamon 2) the messages still do seem to arrive 3) I've send an email to the emailadres in this email, but nothing has changed yet... On 21 Sep 2003 15:53:57 -0400, MAILER-DAEMON [EMAIL PROTECTED] said: This is an unknown user on this system. Please check the address. If you think there is a problem on our end, please send a message to [EMAIL PROTECTED] Please include the email address. Thank You. Warning, delivery failure! This is a status message indicating that a message could not be delivered to 1 or more recipients. Original message subject: Catalina.stop: java.net.ConnectException: Connection refused Date received: 21-Sep-2003 15:53:50 -0400 Recipients and delivery history [EMAIL PROTECTED] Transcript of session follows --- 21-Sep-2003 15:53:49 -0400 Received via SMTP from ASG.CHIINC.COM 21-Sep-2003 15:53:57 -0400 [EMAIL PROTECTED] is unknown Attachment2 Description: application/unknown ---BeginMessage--- Tomcat suddenly stopped working without any obvious reason... Config: Tomcat 5.09 Mac OSX 10.2.6 error: Catalina.stop: java.net.ConnectException: Connection refused java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158) at java.net.Socket.connect(Socket.java:426) at java.net.Socket.connect(Socket.java:376) at java.net.Socket.init(Socket.java:291) at java.net.Socket.init(Socket.java:119) at org.apache.catalina.startup.Catalina.stop(Catalina.java:581) at org.apache.catalina.startup.Catalina.execute(Catalina.java:402) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) Anyone? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ---End Message--- - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Catalina.stop: java.net.ConnectException: Connection refused
Tomcat suddenly stopped working without any obvious reason... Config: Tomcat 5.09 Mac OSX 10.2.6 error: Catalina.stop: java.net.ConnectException: Connection refused java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158) at java.net.Socket.connect(Socket.java:426) at java.net.Socket.connect(Socket.java:376) at java.net.Socket.init(Socket.java:291) at java.net.Socket.init(Socket.java:119) at org.apache.catalina.startup.Catalina.stop(Catalina.java:581) at org.apache.catalina.startup.Catalina.execute(Catalina.java:402) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) Anyone? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Fwd: Delivery problems: Catalina.stop: java.net.ConnectException: Connection refused
It's not complaining about you, just about some address registered on the list. It looks like the tomcat list tried to forward a email to a user at chiinc.com but was unable to do so for the reason listed below. I get that from time to time as well. Ilja wrote: Why do I always get this message when I send an email to this list? 1) I subscribed to the list and confirmed it as well, even got a confirmation from the mailinglist deamon 2) the messages still do seem to arrive 3) I've send an email to the emailadres in this email, but nothing has changed yet... On 21 Sep 2003 15:53:57 -0400, MAILER-DAEMON [EMAIL PROTECTED] said: This is an unknown user on this system. Please check the address. If you think there is a problem on our end, please send a message to [EMAIL PROTECTED] Please include the email address. Thank You. Warning, delivery failure! This is a status message indicating that a message could not be delivered to 1 or more recipients. Original message subject: Catalina.stop: java.net.ConnectException: Connection refused Date received: 21-Sep-2003 15:53:50 -0400 Recipients and delivery history [EMAIL PROTECTED] Transcript of session follows --- 21-Sep-2003 15:53:49 -0400 Received via SMTP from ASG.CHIINC.COM 21-Sep-2003 15:53:57 -0400 [EMAIL PROTECTED] is unknown Subject: Catalina.stop: java.net.ConnectException: Connection refused From: Ilja [EMAIL PROTECTED] Date: Sun, 21 Sep 2003 21:53:30 +0200 To: [EMAIL PROTECTED] Tomcat suddenly stopped working without any obvious reason... Config: Tomcat 5.09 Mac OSX 10.2.6 error: Catalina.stop: java.net.ConnectException: Connection refused java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158) at java.net.Socket.connect(Socket.java:426) at java.net.Socket.connect(Socket.java:376) at java.net.Socket.init(Socket.java:291) at java.net.Socket.init(Socket.java:119) at org.apache.catalina.startup.Catalina.stop(Catalina.java:581) at org.apache.catalina.startup.Catalina.execute(Catalina.java:402) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) Anyone? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
java.net.ConnectException: Connection refused:
Hi, If this isn't the correct group, apologies. I am relatively new to Tomcat, but am interested in using it with the Java Web Service Dev Kit ( Catalina ). I have a couple of introductory questions. 1. I seem to remember in Tomcat 3.x / 4.x a directory structure with it. In the JWSDK there is only a bin directory. Why is this? 2. I think I was able to start Tomcat, but when I run an Ant build file I get BUILD FAILED file:D:/JavaWebServices/jwsdp-1.1/docs/tutorial/examples/gs/build.xml:83: java.net.ConnectException: Connection refused: connect I had read that this was because Tomcat had not started, but I could look at the Tomcat Admin page through my web browser. I thought this was evidence that it had started correctly. However I came across a post asking to try catalina start when I did this I get Error: org/apache/commons/launcher/LaunchFilte Is this the reason I get the conection refused? If so how do I fix it. Any help greatly appreciated.
RE: Tomcat doesn't shutdown: java.net.ConnectException: Connection refused
Howdy, Annoying problem, good solution, good post. Thanks! Yoav Shapira Millennium ChemInformatics -Original Message- From: Daniel Farinha [mailto:[EMAIL PROTECTED] Sent: Friday, July 18, 2003 11:50 PM To: [EMAIL PROTECTED] Subject: Tomcat doesn't shutdown: java.net.ConnectException: Connection refused It took way too long to find a solution. Others in this list have described this problem, so hopefully this might solve it for them too. The problem: Tomcat starts and runs fine. It listens on 8080 as usual, and does its stuff. But when you try shutting down, you get the following error: Catalina.stop: java.net.ConnectException: Connection refused java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158) at java.net.Socket.connect(Socket.java:434) at java.net.Socket.connect(Socket.java:384) at java.net.Socket.init(Socket.java:291) at java.net.Socket.init(Socket.java:119) at org.apache.catalina.startup.Catalina.stop(Catalina.java:581) at org.apache.catalina.startup.Catalina.execute(Catalina.java:402) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja va:3 9) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso rImp l.jav a:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) It's identical to the error you get when you try shutting down when it's not running. But in my case (and some others in this list) it _was_ running. Well, in my case the problem was iptables. My firewall settings were very restrictive, and port 8005 was being blocked, which tomcat uses for shutdown. I opened port 8005 on the firewall and all worked fine. Hope this saves someone from all the trouble that I went through... It took me hours, several jdk and tomcat re-installations and a visit to IRC #tomcat to find that one out. Regards Daniel Farinha - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat doesn't shutdown: java.net.ConnectException: Connection refused
It took way too long to find a solution. Others in this list have described this problem, so hopefully this might solve it for them too. The problem: Tomcat starts and runs fine. It listens on 8080 as usual, and does its stuff. But when you try shutting down, you get the following error: Catalina.stop: java.net.ConnectException: Connection refused java.net.ConnectException: Connection refused at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158) at java.net.Socket.connect(Socket.java:434) at java.net.Socket.connect(Socket.java:384) at java.net.Socket.init(Socket.java:291) at java.net.Socket.init(Socket.java:119) at org.apache.catalina.startup.Catalina.stop(Catalina.java:581) at org.apache.catalina.startup.Catalina.execute(Catalina.java:402) at org.apache.catalina.startup.Catalina.process(Catalina.java:180) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.jav a:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:203) It's identical to the error you get when you try shutting down when it's not running. But in my case (and some others in this list) it _was_ running. Well, in my case the problem was iptables. My firewall settings were very restrictive, and port 8005 was being blocked, which tomcat uses for shutdown. I opened port 8005 on the firewall and all worked fine. Hope this saves someone from all the trouble that I went through... It took me hours, several jdk and tomcat re-installations and a visit to IRC #tomcat to find that one out. Regards Daniel Farinha - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
java.net.ConnectException: Connection refused: connect - opening file
Hi I'm using tomcat 3.3 m3 on Windows 2000, Xerces-J 1.4.0. I've got a simple jsp which uses the servlet ServletContext to get the URL of an xml file contained in a subdirectory of the web application. The URL is correctly resolved, but it still fails when it tries to open a socket to read the file. The exception it gets is java.net.ConnectException: Connection refused: connect. Tony java.net.ConnectException: Connection refused: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:320) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:133) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:120) at java.net.Socket.init(Socket.java:273) at java.net.Socket.init(Socket.java:100) at sun.net.NetworkClient.doConnect(NetworkClient.java:50) at sun.net.www.http.HttpClient.openServer(HttpClient.java:331) at sun.net.www.http.HttpClient.openServer(HttpClient.java:517) at sun.net.www.http.HttpClient.init(HttpClient.java:267) at sun.net.www.http.HttpClient.init(HttpClient.java:277) at sun.net.www.http.HttpClient.New(HttpClient.java:289) at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:4 08) at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection .java:501) at java.net.URL.openStream(URL.java:798) at org.apache.xerces.readers.DefaultReaderFactory.createReader(DefaultReaderFac tory.java:149) at org.apache.xerces.readers.DefaultEntityHandler.startReadingFromExternalEntit y(DefaultEntityHandler.java:767) at org.apache.xerces.readers.DefaultEntityHandler.startReadingFromExternalSubse t(DefaultEntityHandler.java:566) at org.apache.xerces.framework.XMLDTDScanner.scanDoctypeDecl(XMLDTDScanner.java :1139) at org.apache.xerces.framework.XMLDocumentScanner.scanDoctypeDecl(XMLDocumentSc anner.java:2201) at org.apache.xerces.framework.XMLDocumentScanner.access$0(XMLDocumentScanner.j ava:2156) at org.apache.xerces.framework.XMLDocumentScanner$PrologDispatcher.dispatch(XML DocumentScanner.java:887) at org.apache.xerces.framework.XMLDocumentScanner.parseSome(XMLDocumentScanner. java:381) at org.apache.xerces.framework.XMLParser.parse(XMLParser.java:1035) at com.synergy.xml.wrappers.NonValidatingDOMParser.parse(NonValidatingDOMParser .java:135) at com.synergy.xml.DocumentImpl.load(DocumentImpl.java:359) at com.synergy.service.PersistantDocumentService.load(PersistantDocumentService .java:509) at jsp.mmsystemrouting_2._jspService(mmsystemrouting_2.java:726) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:119) at javax.servlet.http.HttpServlet.service(HttpServlet.java)