0

build all and deploy 5.0.6 中的错误——

创建一个空的worklight项目,构建所有并depoy......然后控制台中的错误作为打击......

提前致谢...

[2013-03-21 21:54:00]             Worklight Server started successfully on localhost:8080
[2013-03-21 21:54:00]             Activating Worklight project: SDMobileBank...
[2013-03-21 21:54:06]             Activation failed. Bundle didn't start:D:\Worklight_workspace\SDMobileBank\bin\SDMobileBank-customization.jar
[2013-03-21 21:54:32]             Activating Worklight project: SDMobileBank...
[2013-03-21 21:54:32]             Worklight Server stopped successfully on localhost:8080
[2013-03-21 21:54:34]             Worklight Server started successfully on localhost:8080
[2013-03-21 21:54:41] FWLSE2001I: Detected more than one IP address. Using 192.168.25.45 as the public IP address of the Worklight Server. You can set a different IP address in worklight.properties.
[2013-03-21 21:54:44] FWLSE3005I: Application raw reports are disabled.
[2013-03-21 21:54:44] FWLST0010I: ====== Started server for project SDMobileBank-project-customization; Worklight version=5.0.6.20130307-1147
[2013-03-21 21:54:44]             Activation done.
[2013-03-21 21:54:48]             Persistency data access problem
                                  com.worklight.core.exceptions.DefaultExceptionHandler.handleException(DefaultExceptionHandler.java:50)
                                  com.worklight.core.tasks.TaskThread.run(TaskThread.java:100)
[2013-03-21 21:54:51]             Starting build process: application 'SDMobileBank', all environments
[2013-03-21 21:54:51] FWLSE2001I: Detected more than one IP address. Using 192.168.25.45 as the public IP address of the Worklight Server. You can set a different IP address in the application descriptor files of your applications.
[2013-03-21 21:54:53]             Application 'SDMobileBank' with all environments build finished.
[2013-03-21 21:54:53]             Deploying application 'SDMobileBank' with all environments to Worklight Server...
[2013-03-21 21:54:53]             Persistency data access problem
                                  com.worklight.core.exceptions.DefaultExceptionHandler.handleException(DefaultExceptionHandler.java:50)
                                  com.worklight.core.tasks.TaskThread.run(TaskThread.java:100)
[2013-03-21 21:54:56]             Application 'SDMobileBank' deployed successfully with all environments
[2013-03-21 21:54:59]             Persistency data access problem
                                  com.worklight.core.exceptions.DefaultExceptionHandler.handleException(DefaultExceptionHandler.java:50)
                                  com.worklight.core.tasks.TaskThread.run(TaskThread.java:100)
[2013-03-21 21:55:04]             Persistency data access problem
                                  com.worklight.core.exceptions.DefaultExceptionHandler.handleException(DefaultExceptionHandler.java:50)
                                  com.worklight.core.tasks.TaskThread.run(TaskThread.java:100)
[2013-03-21 21:55:09]             Persistency data access problem
                                  com.worklight.core.exceptions.DefaultExceptionHandler.handleException(DefaultExceptionHandler.java:50)
                                  com.worklight.core.tasks.TaskThread.run(TaskThread.java:100)
[2013-03-21 21:55:14]             Persistency data access problem
                                  com.worklight.core.exceptions.DefaultExceptionHandler.handleException(DefaultExceptionHandler.java:50)
                                  com.worklight.core.tasks.TaskThread.run(TaskThread.java:100)

有时,错误..

[2013-03-21 21:43:12]             user lacks privilege or object not found: 
T0.MULTILANGUAGE_MESSAGES {SELECT t0.ID, t0.ACTION, t0.CREATED_TIME, t0.DOWNLOAD_LINK, t0.ENV, t0.GADGET_NAME, t0.MESSAGE, t0.MULTILANGUAGE_MESSAGES, t0.VERSION FROM APP_VERSION_ACCESS_DATA t0 
WHERE (t0.GADGET_NAME = ? AND t0.ENV = ? AND t0.VERSION = ?)} 
[code=-5501, state=42501]; nested exception is 
<openjpa-1.2.2-r422266:898935 nonfatal general error> 
org.apache.openjpa.persistence.PersistenceException: 
user lacks privilege or object not found: T0.MULTILANGUAGE_MESSAGES {
SELECT t0.ID, t0.ACTION, t0.CREATED_TIME, t0.DOWNLOAD_LINK, t0.ENV, t0.GADGET_NAME, t0.MESSAGE, 
t0.MULTILANGUAGE_MESSAGES, t0.VERSION FROM APP_VERSION_ACCESS_DATA t0 WHERE (t0.GADGET_NAME = ? AND t0.ENV = ? AND t0.VERSION = ?)} [code=-5501, state=42501]
4

1 回答 1

4

数据库架构在 v5.0.6 中已更改。这应该更清楚,并将得到解决。Developer Edition 不支持数据库升级。

要解决此问题:

  1. 关闭日食
  2. 删除位于 Eclipse 工作区文件夹中的 WorklightServerHome 文件夹。
  3. 重启 Eclipse
  4. 构建您的应用程序。

该操作现在应该没有错误地通过。

于 2013-03-21T15:26:55.493 回答