Wednesday, June 30, 2010

JDBC : Classnotfound

Dear All,

this is my first post in this group, hopefully i'm not doing anything
wrong. I've searched for this topic but didn't found any solution.

I'm quity new to GWT and are currently writing my first Client/Server
example. Actually i want to read some Data from a database but i
didn't get the connection to work.

At the source
"Class.forName("").newInstance();" a
ClassNotFoundException is thrown.

I'm using Eclipse and have tried the following:
Project Properties -> Java Build Path -> Libraries -> Add External Jar

Result: still ClassNotFoundException

Manually Copied the file into the WEB-INF\lib directory.

ExceptionInInitializerError at the line: this.conn =
DriverManager.getConnection("<my connection string>"):

Caused by: java.lang.ExceptionInInitializerError
at java.sql.DriverManager.getConnection(Unknown Source)
at java.sql.DriverManager.getConnection(Unknown Source)

Hopefully someone can help me with this

You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to
To unsubscribe from this group, send email to
For more options, visit this group at

No comments:

Post a Comment