我正在尝试将 MySQL 与 Grails 一起使用。根据 grails 上的文档,我已经下载了 MySQL 连接器并将 jar 文件放在路径 grails-app/lib 中。
但是在运行应用程序时,我遇到了很多错误。其中一些如下,我认为如果解决可以解决其余的问题。
| Loading Grails 2.0.3
| Configuring classpath.
| Environment set to development.....
| Packaging Grails application.....
| Compiling 236 source files.
| Error Compilation error: startup failed:
Compile error during compilation with javac.
C:\xp\sst workspace\racetrack\grails-app\lib\src\com\mysql\jdbc\integration\c3p0\MysqlConnectionTester.java:31: error: package com.mchange.v2.c3p0 does not exist
import com.mchange.v2.c3p0.C3P0ProxyConnection;
^
C:\xp\sst workspace\racetrack\grails-app\lib\src\com\mysql\jdbc\integration\c3p0\MysqlConnectionTester.java:32: error: package com.mchange.v2.c3p0 does not exist
import com.mchange.v2.c3p0.QueryConnectionTester;
^
C:\xp\sst workspace\racetrack\grails-app\lib\src\com\mysql\jdbc\integration\c3p0\MysqlConnectionTester.java:44: error: cannot find symbol
public final class MysqlConnectionTester implements QueryConnectionTester {
^
symbol: class QueryConnectionTester
C:\xp\sst workspace\racetrack\grails-app\lib\src\com\mysql\jdbc\integration\jboss\ExtendedMysqlExceptionSorter.java:28: error: package org.jboss.resource.adapter.jdbc.vendor does not exist
import org.jboss.resource.adapter.jdbc.vendor.MySQLExceptionSorter;
^
.......... etc
44 errors
2 warnings
1 error
请帮我解决这个问题...