JDBC驱动程序不适用于GWT? [英] JDBC Driver does not work with GWT?

查看:130
本文介绍了JDBC驱动程序不适用于GWT?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想使用GWT从我的服务器访问外部MySQL服务器,我将mysql连接器jar添加到构建路径并在war / WEB-INF / lib中添加

尽管我得到这个异常:


java.lang.NoClassDefFoundError:
com.mysql.jdbc.Driver是一个限制
类。请参阅Google App
引擎开发人员指南了解更多
的详细信息。


有什么想法?请问jdbc驱动程序是否在黑名单中?

解决方案

App Engine不支持JDBC。也许您的项目设置为针对App Engine。如果您使用Eclipse,请右键单击该项目,选择属性,然后在Google> App Engine下取消选择使用Google App Engine。


I want to access to an external MySQL server from my server using GWT, I added the mysql-connector jar to the build path and in war/WEB-INF/lib

Although I get this exception:

java.lang.NoClassDefFoundError: com.mysql.jdbc.Driver is a restricted class. Please see the Google App Engine developer's guide for more details.

Any ideas? Would jdbc driver be on a black-list?

解决方案

App Engine doesn't support JDBC. Maybe your project is set to target App Engine. If you're using Eclipse, right click the project, choose properties, and under "Google>App Engine" deselect "Use Google App Engine".

这篇关于JDBC驱动程序不适用于GWT?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆