Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Java in General
Search Coderanch
Advance search
Google search
Register / Login
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
Forum:
Java in General
setDataSource error
Angus Ferguson
Ranch Hand
Posts: 1402
3
I like...
posted 8 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi,
Im trying to add code to create a data source to my DB like this:
<sql:setDataSource var="myDS" driver="com.mysql.jdbc.Driver" url="jdbc:mysql://localhost:3306/mydb" user="root" password="secret" />
I get the next error:
setDataSource cannot be resolved to a variable
Any idea?
Regards,
Isaac
Jesper de Jong
Java Cowboy
Posts: 16084
88
I like...
posted 8 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Can you give a bit more context; what is that piece of XML, and how are you using it? Are you using a framework or library for which this XML is (part of) a configuration file?
Jesper's Blog
-
Pluralsight Author Page
Die Fledermaus does not fear such a tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
JSTL not loading
[solved] JSTL SQL column access w/o iterating?
How to Resolve Java / MySql error: Driver loaded, but cannot connect to db: jdbc:mysql://ecterra
JDBC Connect - Table/View 'CATEGORY' does not exist
No Suitable Driver Found
More...