我有一個堆棧跟蹤對我沒有任何意義。我認爲它的本質是「未找到數據源名稱並且沒有指定默認驅動程序」部分,但我註冊了一個驅動程序,而且我沒有使用數據源。如果有幫助,我正在使用SQL Anywhere 10驅動程序(ianywhere)。有沒有人有任何想法?任何人都可以破譯這個SQL堆棧跟蹤?
2013-02-15 13:16:58,076 [http-apr-80-exec-1] ERROR errors.GrailsExceptionResolver - SQLException occurred when processing request: [GET] /Booklist/booklist/show
[Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified. Stacktrace follows:
java.sql.SQLException: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified
at ianywhere.ml.jdbcodbc.jdbc3.IDriver.connect(IDriver.java:490)
at java.sql.DriverManager.getConnection(DriverManager.java:579)
at java.sql.DriverManager.getConnection(DriverManager.java:243)
at booklist.Book.getClassesWithBooks(Book.groovy:22)
at booklist.BooklistController.show(BooklistController.groovy:11)
at grails.plugin.cache.web.filter.PageFragmentCachingFilter.doFilter(PageFragmentCachingFilter.java:195)
at grails.plugin.cache.web.filter.AbstractFilter.doFilter(AbstractFilter.java:63)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
at java.lang.Thread.run(Thread.java:722)
編輯:問題是,這個作品在我的本地開發機器上就好了,但只要我們建立一個戰爭並把它放到Tomcat服務器上,這個可愛的錯誤彈出
什麼是您的JDBC URL? – 2013-02-15 20:22:08
你好。感謝您的迴應。 URL是如下: 'DriverManager.registerDriver(。(驅動程序)的Class.forName( 「ianywhere.ml.jdbcodbc.jdbc3.IDriver兩個」)的newInstance());' '高清的sql = Sql.newInstance (「jdbc:ianywhere:Driver = SQL Anywhere 10; LINKS = TCPIP(IP = [IP-address]; PORT = [PORT]); ServerName = [server-name]; databaseName = [db-name]; uid = dba ; pwd = [我的密碼]「)' – grantmcconnaughey 2013-02-15 20:43:12