2014-03-29 68 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