aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes Can't get database connection Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Soft Skills this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "Can Watch "Can New topic
Author

Can't get database connection

Erik Itland
Greenhorn

Joined: Nov 12, 2008
Posts: 2
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

Joined: Nov 12, 2008
Posts: 2
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

Joined: Jun 06, 2007
Posts: 2718
    
    6

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


SCJP, SCWCD.
|Asking Good Questions|
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Can't get database connection