• 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

Can't get database connection

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 2856
10
Firefox Browser Fedora Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic