开发者

java.sql.SQLException: URL is not in the correct format

开发者_JS百科I am using tomcat, Java with GWT. When try to connect to db my applcation spews the following error. the same driver information is perfectly running on stand alone application.

java.sql.SQLException: URL is not in the correct format: jdbc:timesten:client:dsn=XXXX_cachedb_devc;uid=XXXX;pwd=XXXXX at com.google.cloud.sql.jdbc.internal.Exceptions.driverUrlNotInCorrectFormat(Exceptions.java:103) at com.google.cloud.sql.jdbc.Driver.connect(Driver.java:47) at com.google.cloud.sql.jdbc.Driver.connect(Driver.java:24) at java.sql.DriverManager.getConnection(DriverManager.java:582) at java.sql.DriverManager.getConnection(DriverManager.java:207)

May i know how can i over come this problem.


Looks like either you are trying to deploy to App Engine or somehow how appengine jars are in your runtime classpath. If you are not planning to deploy your application at Google App Engine, simply remove the app engine SDK jars from your project.

On the other hand, if you want to deploy to app engine, do know that GAE does not yet support connecting to external databases. All you can do is to use in-memory SQL databases like hsqldb. Your connection url then needs to conform to the hsqldb connection url pattern for in-memory databases.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜