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

Can't get database connection

 
Erik Itland
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi

I've now used almost all methods I knew to get tomcat back running from eclipse. ("Project->Clean...", Right-clicking on the server in the "Servers" view, choosing "Clean...", and "Clean Tomcat Work Directory...", checked that the drivers file exist in the Tomcat installation, searched the internet for similar problems, made a new workspace, rebooted the computer, asked a coworker etc..)

Basically I see a warning in the eclipse console, saying

WARNING: [SetPropertiesRule]{Server/Service/Engine/Host/Context} Setting property 'source' to 'org.eclipse.jst.j2ee.server:<someApp>' did not find a matching property.

and then, a few lines later:

INFO: Initializing Spring root WebApplicationContext
2008-11-12 13:17:23,214 | WARN | main | <SomeCompany> | SettingsFactory.java | buildSettings() | 117 | Could not obtain connection metadata
org.apache.tomcat.dbcp.dbcp.SQLNestedException: Cannot create JDBC driver of class '' for connect URL 'null'

Does anybody have an idea?

(BTW: Everything seemed to work fine yesterday night. )
 
Erik Itland
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Checked unversioned files and found an extra context.xml. Removed it, and it suddenly worked. Another trick for the eclipse/tomcat troubleshooting book
 
Amit Ghorpade
Bartender
Posts: 2854
10
Fedora Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Erik Itland:
Checked unversioned files and found an extra context.xml. Removed it, and it suddenly worked. Another trick for the eclipse/tomcat troubleshooting book


Maybe yes. But it will suit more to Eclipse than Tomcat and so is this post,I guess .

Thanks for sharing the trick and welcome to Javaranch Erik Itland
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic