• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Eclipse remembers old name of database

 
Ranch Hand
Posts: 421
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello:

I am really needing to figure out why Eclipse won't forget the name of a database.


Apr 22, 2014 4:14:36 PM org.apache.tomcat.jdbc.pool.ConnectionPool init
SEVERE: Unable to create initial connections of pool.
com.microsoft.sqlserver.jdbc.SQLServerException: Cannot open database "ZXY" requested by the login. The login failed. ClientConnectionId:f28e4859-f0a3-4ab3-bb8b-da0aa49dc739

My database is named something like ZYX123 but it used to be named something like ZYX. It is like Eclipse remembers the old name even though I have searched both through the windows IDE and the Eclipse IDE for that string name and appended it to be ZYX123. The log keeps churning out this error even though I have double-and triple-checked my workspaces to make sure that they are named in all java class files ZYX123 and not ZYX.

I cannot for the life of me figure out why the old DB name keeps popping up on the Tomcat console. Also, because that database won't connect, I have troubles on one of my drop downs, it won't populate.

Any thoughts about straightening up the Eclipse Juno IDE appreciated.

Thanks,
Michele

 
author
Posts: 5856
7
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This isn't a matter of Eclipse remembering a database, but rather of Tomcat remembering a database that Eclipse configured at some earlier time. I suspect that the only way to get Tomcat to forget about the database is edit the Tomcat configuration to remove the reference to the database.

This is yet another instance where Eclipse's attempts to be helpful cause problems. It's why I never deploy anything from Eclipse, preferring to do it by hand or via scripts of one kind or another.
 
Michele Smith
Ranch Hand
Posts: 421
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for the words of wisdom. It turns out that i had to remove the project(s) from the tomcat server, clean, and then go to Add/Remove on Tomcat Server in Eclipse and then add back in again and it worked.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic