As for every "3rd-party" library in flavor of a JAR file which is to be used by the webapp, just copy/drop it in webapp's WEB-INF/lib It will then be available in webapp's default classpath. Also, Eclipse is smart enough to notice that. No need to hassle with buildpath.
However, make sure to remove all unnecessary references you added before, else it might collide.
As for every "3rd-party" library in flavor of a JAR file which is to be used by the webapp, just copy/drop it in webapp's /WEB-INF/lib. It will then be available in webapp's default classpath. Also, Eclipse is smart enough to notice that.No need to hassle with buildpath.
However, make sure to remove all unnecessary references you added before, else it might collide.
Since you are running it in servlet, you need to have the jar accessible by the servlet container. You either include the connector as part of your application war or put it as part of the servlet container's extended library and datasource management stuff, if it has one. The second part is totally depend on the container that you have.
– Lirik Feb 28 '10 at 23:46 Place mysql-connector-java-5.1.6-bin. Jar to the \Apache Tomcat 6.0.18\lib folder – satya Dec 29 '10 at 12:20.
The others are right about making the driver JAR available to your servlet container. My comment was meant to suggest that you verify from the command line whether the driver itself is intact. Rather than an empty main(), try something like this, adapted from the included documentation: public class LoadDriver { public static void main(String args) throws Exception { Class.
ForName("com.mysql.jdbc. Driver"); } } On my platform, I'd do this: $ ls mysql-connector-java-5.1.12-bin. Jar mysql-connector-java-5.1.12-bin.
Jar $ javac LoadDriver. Java $ java -cp mysql-connector-java-5.1.12-bin. Jar:.
LoadDriver On your platform, you need to use ; as the path separator, as discussed here and here.
Place mysql-connector-java-5.1.6-bin. Jar to the \Apache Tomcat 6.0.18\lib folder. Your problem will be solved.
Only when the OP is using a container-managed DataSource, not when the OP is fiddling with DriverManager manually. For that placing JAR in webapp's /WEB-INF/lib as in my answer is more than sufficient. – BalusC Dec 29 '10 at 14:05.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.