Friday, September 3, 2010

No Suitable Driver Found - Oracle

Hi,

I am using the Eclipse GWT plugin to write my first GWT application.
I have an RPC service in which the server class is attempting to
connect to an Oracle database. I the Oracle ojdbc14.jar file in my
WEB-INF/lib directory (and also in my Eclipse classpath). However,
when I run the application and attempt to connect to the db I get:

Starting Jetty on port 8888
[WARN] Exception while dispatching incoming RPC call
com.google.gwt.user.server.rpc.UnexpectedException: Service method
'public abstract java.lang.String[]
my.package.client.DataService.getList()' threw an unexpected
exception: java.lang.RuntimeException: java.sql.SQLException: No
suitable driver found for jdbc:oracle:thin@[ipAddress]:[port]:[sid].

I've also tried adding rt.jar to my lib but no luck. Is there some
other config step that I'm missing?

Thanks!

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment