2014-03-29 70 views
0

我一直在努力工作燈爲過去的幾天裏,現在我試圖讓我的應用程序,它連接到數據庫。下面是的屏幕截圖:mySQLAdapter部署失敗與錯誤最終「失敗適配器部署:適配器‘mySQLadapter’包含錯誤」

1)工作燈\服務器\ CONF \ worklight.properties

enter image description here

2)mySQLAdapter-impl.js

enter image description here

3)mySQLAdapter .XML!

enter image description here

每當我嘗試部署它說mySQLAdpater文件「適配器部署失敗:適配器‘mySQLadapter’包含錯誤」。我對此沒有任何想法。

+0

添加完整的錯誤信息(屏幕截圖)。你是否在服務器的\ lib文件夾中包含了一個db2驅動程序? –

回答

0

沒有嘗試過我自己還,但在worklight.properties也許你應該改變以下,使他們匹配?

- training-jndi-name=${custom-db.1.jndi-name} 
- custom-db.1.relative-jndi-name=jdbc/worklight-training 

+ training-jndi-name=${custom-db.1.relative-jndi-name} 
+ custom-db.1.relative-jndi-name=jdbc/worklight-training