No maker conecta no banco, mas no webrun não.



  • [b]Exceção Gerada:[/b]
    java.sql.SQLException: Network error IOException: Connection refused: connect at net.sourceforge.jtds.jdbc.ConnectionJDBC2.(ConnectionJDBC2.java:410) at net.sourceforge.jtds.jdbc.ConnectionJDBC3.(ConnectionJDBC3.java:50) at net.sourceforge.jtds.jdbc.Driver.connect(Driver.java:184) at java.sql.DriverManager.getConnection(DriverManager.java:525) at java.sql.DriverManager.getConnection(DriverManager.java:171) at wfr.database.DBConnection.create(DBConnection.java:169) at wfr.database.DBConnection.(DBConnection.java:114) at wfr.database.DBConnection.createConnection(DBConnection.java:518) at wfr.database.DBConnection.createConnection(DBConnection.java:361) at wfr.com.WFRSystem.createConnection(WFRSystem.java:1094) at wfr.com.WFRSystem.create(WFRSystem.java:740) at wfr.com.WFRSystem.create(WFRSystem.java:700) at wfr.com.WFRDBSystem.(WFRDBSystem.java:41) at wfr.com.WFRSystem.getInstance(WFRSystem.java:307) at wfr.com.WFRSystem.getInstance(WFRSystem.java:272) at wfr.sys.WFR.(WFR.java:23) at wfr.sys.WFRLoader.createSystem(WFRLoader.java:150) at wfr.sys.WFRLoader.getWFR(WFRLoader.java:139) at wfr.sys.HTMLInterface.HTMLInterface.getInstance(HTMLInterface.java:143) at wfr.sys.HTMLInterface.HTMLInterface.getInstance(HTMLInterface.java:129) at wfr.sys.HTMLInterface.HTMLInterface.getInstance(HTMLInterface.java:125) at wfr.web.Action.(Action.java:88) at wfr.web.Action.(Action.java:68) at wfr.web.actions.OpenAction.(OpenAction.java:30) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:494) at wfr.web.ActionFactory.getAction(ActionFactory.java:72) at wfr.web.Controller.process(Controller.java:128) at wfr.web.Controller.doGet(Controller.java:59) at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at wfr.web.ContextFilter.doFilter(ContextFilter.java:87) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Thread.java:595) Caused by: java.net.ConnectException: Connection refused: connect 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 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:585) at net.sourceforge.jtds.jdbc.SharedSocket.createSocketForJDBC3(SharedSocket.java:307) at net.sourceforge.jtds.jdbc.SharedSocket.(SharedSocket.java:257) at net.sourceforge.jtds.jdbc.ConnectionJDBC2.(ConnectionJDBC2.java:311) ... 48 more

    [b]Causa:[/b]
    java.net.ConnectException: Connection refused: connect 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 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:585) at net.sourceforge.jtds.jdbc.SharedSocket.createSocketForJDBC3(SharedSocket.java:307) at net.sourceforge.jtds.jdbc.SharedSocket.(SharedSocket.java:257) at net.sourceforge.jtds.jdbc.ConnectionJDBC2.(ConnectionJDBC2.java:311) at net.sourceforge.jtds.jdbc.ConnectionJDBC3.(ConnectionJDBC3.java:50) at net.sourceforge.jtds.jdbc.Driver.connect(Driver.java:184) at java.sql.DriverManager.getConnection(DriverManager.java:525) at java.sql.DriverManager.getConnection(DriverManager.java:171) at wfr.database.DBConnection.create(DBConnection.java:169) at wfr.database.DBConnection.(DBConnection.java:114) at wfr.database.DBConnection.createConnection(DBConnection.java:518) at wfr.database.DBConnection.createConnection(DBConnection.java:361) at wfr.com.WFRSystem.createConnection(WFRSystem.java:1094) at wfr.com.WFRSystem.create(WFRSystem.java:740) at wfr.com.WFRSystem.create(WFRSystem.java:700) at wfr.com.WFRDBSystem.(WFRDBSystem.java:41) at wfr.com.WFRSystem.getInstance(WFRSystem.java:307) at wfr.com.WFRSystem.getInstance(WFRSystem.java:272) at wfr.sys.WFR.(WFR.java:23) at wfr.sys.WFRLoader.createSystem(WFRLoader.java:150) at wfr.sys.WFRLoader.getWFR(WFRLoader.java:139) at wfr.sys.HTMLInterface.HTMLInterface.getInstance(HTMLInterface.java:143) at wfr.sys.HTMLInterface.HTMLInterface.getInstance(HTMLInterface.java:129) at wfr.sys.HTMLInterface.HTMLInterface.getInstance(HTMLInterface.java:125) at wfr.web.Action.(Action.java:88) at wfr.web.Action.(Action.java:68) at wfr.web.actions.OpenAction.(OpenAction.java:30) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:494) at wfr.web.ActionFactory.getAction(ActionFactory.java:72) at wfr.web.Controller.process(Controller.java:128) at wfr.web.Controller.doGet(Controller.java:59) at javax.servlet.http.HttpServlet.service(HttpServlet.java:617) at javax.servlet.http.HttpServlet.service(HttpServlet.java:717) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at wfr.web.ContextFilter.doFilter(ContextFilter.java:87) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Thread.java:595)


  • Connection refused

    SQL Server? Já leu documentações do Manual?
    É só questão de configuração do apontador e do sql server...
    Se tiver instância deve ser informado, etc...
    Verifique as portas também...
    T+


  • [b]Ja foi resolvido[/b] .


  • Coloca ai a solução guilherme.


  • Eu desinstalei o sql server.

    Instalei novamente.

    Não sei porque com o usuário "[b]SA[/b]", no [b]webrun[/b] estava dando erro de "[b]time[/b]"

    Criei um outro usuário administrador e logou.

Log in to reply