Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Dtabase Connection lost after Updating Application.

 
Shibani Joseph
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello EveryOne,
I am new to CodeRanch.
I am using Spring framework for Java .
I had a question!!!
I recently updated my application using Eclipse IDE and provided CONFIG path for properties in my Application-Context .
The application works fine except I have no database connection, How can I restore it.




Hope I will get a solution for this.
Thanks.
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15359
39
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Welcome to the Ranch.

Is the error message longer than that? Because it looks like you cut it off, and the interesting part ("nested exception") that might give a hint about wat the problem is, is not included in the part of the error message that you posted.
 
Shibani Joseph
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hii Jasper, Thanks for an early reply...

I refreshed it ,the log is;

let me know if its not complete.
However I can see the query in the Log.
I am quite new to this stuff and its confusing.
 
Campbell Ritchie
Sheriff
Pie
Posts: 49396
62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Too difficult for “beginning Java”;moving to our Spring forum.
 
Jesper de Jong
Java Cowboy
Saloon Keeper
Posts: 15359
39
Android IntelliJ IDE Java Scala Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok, in the list of error messages we see: Communications link failure - This indicates that there is a network connection problem.

And then: Caused by: java.net.UnknownHostException: base11.sofmen.in - This means that the server with the name base11.sofmen.in cannot be reached.

Are you sure the database server is up and properly connected to the network, and that you can access it via the network from your computer (if there is a firewall or proxy server, the settings for those are correct etc.)?
 
Shibani Joseph
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hii Jasper,

I am quite sure the database server is not up , as the MySQL query ,I fired has no effect,however I am able to see the quey in the Log.
The page does not get populated accordingly.

Can you please give me a hint with how do I check that,where in application context , shall I make changes so that it get started.

Thanks for you patience.
 
Shibani Joseph
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hii All,

I could'nt post it earliar.

I checked my bd properties and it worked.

thanks.
 
Shibani Joseph
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
DB properties.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic