aloknet21
asked on
MS SQL Connection Error while running war file from Jetty Server
Hi,
While i am running a war file from Jetty Server, below error i am facing. please suggest.
I am using MS-SQL 2005 Server for database.
INFO [populateTaskDashIssuesGri d has started] (JournalIssueAction.java:3 637) - populateTaskDashIssuesGrid
INFO [populateTaskDashIssuesGri d has started] (JournalIssueAction.java:3 642) - user id for tasks : 4499
INFO [populateTaskDashIssuesGri d has started] (JournalIssueAction.java:3 654) - find : Find
INFO [populateTaskDashIssuesGri d has started] (JournalIssueAction.java:3 660) - retun size : 16
INFO [returnIssueTaskHistoryAct ion has started] (JournalIssueAction.java:3 124) - returnIssueTaskHistoryActi on
INFO [returnIssueTaskHistoryAct ion has started] (JournalIssueAction.java:3 126) - history for issueId : 2101
com.microsoft.sqlserver.jd bc.SQLServ erExceptio n: The TCP/IP connection to the host has failed. java.net.ConnectException: Connection timed out
at com.microsoft.sqlserver.jd bc.SQLServ erExceptio n.makeFrom DriverErro r(Unknown Source)
at com.microsoft.sqlserver.jd bc.SQLServ erConnecti on.connect Helper(Unk nown Source)
at com.microsoft.sqlserver.jd bc.SQLServ erConnecti on.loginWi thoutFailo ver(Unknow n Source)
at com.microsoft.sqlserver.jd bc.SQLServ erConnecti on.connect (Unknown Source)
at com.microsoft.sqlserver.jd bc.SQLServ erDataSour ce.getConn ectionInte rnal(Unkno wn Source)
at com.microsoft.sqlserver.jd bc.SQLServ erDataSour ce.getConn ection(Unk nown Source)
at main.java.com.pts.options. journal.da os.Journal IssueDaoIm pl.fetchTa sksHistory (JournalIs sueDaoImpl .java:2433 )
at main.java.com.pts.options. journal.de legate.Jou rnalIssueS erviceImpl .fetchTask sHistory(J ournalIssu eServiceIm pl.java:54 4)
at main.java.com.pts.options. journals.s truts2.act ions.Journ alIssueAct ion.return IssueTaskH istoryActi on(Journal IssueActio n.java:312 8)
at sun.reflect.NativeMethodAc cessorImpl .invoke0(N ative Method)
at sun.reflect.NativeMethodAc cessorImpl .invoke(Na tiveMethod AccessorIm pl.java:57 )
at sun.reflect.DelegatingMeth odAccessor Impl.invok e(Delegati ngMethodAc cessorImpl .java:43)
Appreciate any help to resolve this issue.
While i am running a war file from Jetty Server, below error i am facing. please suggest.
I am using MS-SQL 2005 Server for database.
INFO [populateTaskDashIssuesGri
INFO [populateTaskDashIssuesGri
INFO [populateTaskDashIssuesGri
INFO [populateTaskDashIssuesGri
INFO [returnIssueTaskHistoryAct
INFO [returnIssueTaskHistoryAct
com.microsoft.sqlserver.jd
at com.microsoft.sqlserver.jd
at com.microsoft.sqlserver.jd
at com.microsoft.sqlserver.jd
at com.microsoft.sqlserver.jd
at com.microsoft.sqlserver.jd
at com.microsoft.sqlserver.jd
at main.java.com.pts.options.
at main.java.com.pts.options.
at main.java.com.pts.options.
at sun.reflect.NativeMethodAc
at sun.reflect.NativeMethodAc
at sun.reflect.DelegatingMeth
Appreciate any help to resolve this issue.
ASKER
Please guide me the steps to check the connection from jetty server to database. also the steps to verify connection settings in the data source for the application.
thank you very much for your reply.
thank you very much for your reply.
ASKER
I have checked the connection settings from application now. it is as per below:
db.url=jdbc:sqlserver://10 .31.1.33;D atabaseNam e=orktnu
db.user=mytest
db.password=qwer56t!
db.driver=com.microsoft.sq lserver.jd bc.SQLServ erDriver
Do i need to define Port 1433 here. please suggest.
Thanks!
db.url=jdbc:sqlserver://10
db.user=mytest
db.password=qwer56t!
db.driver=com.microsoft.sq
Do i need to define Port 1433 here. please suggest.
Thanks!
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Please verify your connection settings in the datasource for the application and check whether you can connect from your Jetty server to the database.