i have some very strange problems with the connectivity to my msql-server.
I have already installed the mysq-driver and eclipse shows me the correct Data-Source-Explorer as well.
But when I try to get a connection to the mysql-server via Java-Servlet, then I get the following error-message:
But when I try to get a connection with an averange java-class, which is in the "src"-folder, then it works.
The Eclipse Data Source Explorer is an Eclipse plugin. And, as Dave said, it has nothing to do with actually running the webapp. It's strictly a developer's tool.
Database Connection Pools (DataSources) are part of the J2EE spec and are the recommended way to obtain Connections for webapps to do database work. They allow efficient recycling of services in a multi-user environment.
Typically there's a control panel webapp for the webapp server that allows you to configure DataSources, and often it has the ability to import and install a driver JAR. Additionally, you can usually "brute-force" install a driver JAR into the webapp server. Which is how I usually do it in Tomcat. The exact location where the driver JAR must go depends on the webapp server, but can be found by reading the vendor's documentation. It's usually well-defined since datasources are a critical and popular service.
"privilege" comes from the Latin words for "private" and "law" (legal) and dates to feudal times. To "claim privilege" meant that you were above the laws that applied to the common people.