当前位置: 技术问答>java相关
分特分特!!!!为什么现在的connection refused!!!大虾救命阿;((
来源: 互联网 发布时间:2015-01-15
本文导语: 我用jb5+内嵌的Tomcat3.2编的几个servlet基本类似,都用的是javax.servlet.HttpServlet类的doGet方法,昨天加入了一个新的servlet之后再运行一次不知为什么就报错了: 编译通过,第一个servlet:SatatusWdp初始化的时候就出现了如...
我用jb5+内嵌的Tomcat3.2编的几个servlet基本类似,都用的是javax.servlet.HttpServlet类的doGet方法,昨天加入了一个新的servlet之后再运行一次不知为什么就报错了:
编译通过,第一个servlet:SatatusWdp初始化的时候就出现了如下io错误:
2001-07-12 08:43:34 - path="/WAP" :wap.StatusWdp: init
2001-07-12 08:43:35 - Ctx( /WAP ): IOException in: R( /WAP + /servlet/wap.StatusWdp + null) Connection refused: connect
浏览器更详细的信息是:
Error: 500
Location: /WAP/servlet/wap.StatusWdp
Internal Servlet Error:
java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:323)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:136)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:123)
at java.net.Socket.(Socket.java:273)
at java.net.Socket.(Socket.java:100)
at wap.StatusWdp.doGet(StatusWdp.java:23)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:401)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:484)
为什么阿,好分特阿,有没有大虾可以指点一下阿!!!!◎//bow and bow
编译通过,第一个servlet:SatatusWdp初始化的时候就出现了如下io错误:
2001-07-12 08:43:34 - path="/WAP" :wap.StatusWdp: init
2001-07-12 08:43:35 - Ctx( /WAP ): IOException in: R( /WAP + /servlet/wap.StatusWdp + null) Connection refused: connect
浏览器更详细的信息是:
Error: 500
Location: /WAP/servlet/wap.StatusWdp
Internal Servlet Error:
java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:323)
at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:136)
at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:123)
at java.net.Socket.(Socket.java:273)
at java.net.Socket.(Socket.java:100)
at wap.StatusWdp.doGet(StatusWdp.java:23)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.doService(ServletWrapper.java:401)
at org.apache.tomcat.core.Handler.service(Handler.java:286)
at org.apache.tomcat.core.ServletWrapper.service(ServletWrapper.java:372)
at org.apache.tomcat.core.ContextManager.internalService(ContextManager.java:797)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:743)
at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:210)
at org.apache.tomcat.service.TcpWorkerThread.runIt(PoolTcpEndpoint.java:416)
at org.apache.tomcat.util.ThreadPool$ControlRunnable.run(ThreadPool.java:498)
at java.lang.Thread.run(Thread.java:484)
为什么阿,好分特阿,有没有大虾可以指点一下阿!!!!◎//bow and bow
|
解决了,使我自己最后加进去的servlet把网关kill掉了,然后再连他就没响应了,socket当然报错,不过这些error信息也太复杂了些,偶看不懂什么401,372,416,498的阿;((