尝试将 .wlapp 文件部署到 Tomcat 时,MobileFirst 7.0 Server 卡住了 "Deploying"

MobileFirst 7.0 Server stuck "Deploying" when trying to deploy a .wlapp file to Tomcat

在成功完成 MobileFirst 7.0 服务器的安装和配置后,当我尝试 Deploy Application => [时,我遇到了 MF 服务器卡在 "Deploying" 的问题=15=].

下面是来自 Tomcat 个日志文件的一些日志消息:

10614  WorklightManagementPU-mysql  INFO   [pool-2-thread-1] openjpa.Runtime - Though you are using optimistic transactions, OpenJPA is now beginning a datastore transaction because you have requested a lock on some data.
10646  WorklightManagementPU-mysql  INFO   [pool-2-thread-1] openjpa.Runtime - Though you are using optimistic transactions, OpenJPA is now beginning a datastore transaction because you have requested a lock on some data.
10682  WorklightManagementPU-mysql  INFO   [pool-2-thread-1] openjpa.Runtime - Though you are using optimistic transactions, OpenJPA is now beginning a datastore transaction because you have requested a lock on some data.

Jun 03, 2015 2:03:32 PM com.ibm.worklight.admin.actions.ApplicationDeploymentTransaction beforeAll
SEVERE: Failed to generate download links to transfer data during the deployment of applications. See the next exception in the log. Switch to direct data transfer via JMX. This is not fatal but it requires larger memory than the data transfer with download links.
Jun 03, 2015 2:03:32 PM com.ibm.worklight.admin.actions.BaseTransaction internalRun
SEVERE: BaseTransaction.internalRun() Exception
<openjpa-1.2.2-r422266:898935 nonfatal user error> org.apache.openjpa.persistence.ArgumentException: Object "com.ibm.worklight.dataaccess.jpa.entity.ProjectEntity-com.ibm.worklight.dataaccess.jpa.entity.ProjectEntity-1" is not managed by this context.
FailedObject: com.ibm.worklight.dataaccess.jpa.entity.ProjectEntity-com.ibm.worklight.dataaccess.jpa.entity.ProjectEntity-1
    at org.apache.openjpa.persistence.EntityManagerImpl.processArgument(EntityManagerImpl.java:1216)
    at org.apache.openjpa.kernel.BrokerImpl.processArgument(BrokerImpl.java:2149)
    at org.apache.openjpa.kernel.BrokerImpl.gatherCascadeRefresh(BrokerImpl.java:2816)
    at org.apache.openjpa.kernel.BrokerImpl.refresh(BrokerImpl.java:2793)
    at org.apache.openjpa.kernel.DelegatingBroker.refresh(DelegatingBroker.java:1078)
    at org.apache.openjpa.persistence.EntityManagerImpl.refresh(EntityManagerImpl.java:688)
    at com.ibm.worklight.admin.actions.BaseTransaction.setNewProjectTransactionID(BaseTransaction.java:643)
    at com.ibm.worklight.admin.actions.BaseTransaction.internalRun(BaseTransaction.java:336)
    at com.ibm.worklight.admin.actions.BaseTransaction.run(BaseTransaction.java:235)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:745)

Jun 03, 2015 2:03:32 PM com.ibm.worklight.admin.actions.BaseTransaction run
SEVERE: internalRun() Exception
<openjpa-1.2.2-r422266:898935 nonfatal user error> org.apache.openjpa.persistence.ArgumentException: Object "com.ibm.worklight.dataaccess.jpa.entity.ProjectEntity-com.ibm.worklight.dataaccess.jpa.entity.ProjectEntity-1" is not managed by this context.
FailedObject: com.ibm.worklight.dataaccess.jpa.entity.ProjectEntity-com.ibm.worklight.dataaccess.jpa.entity.ProjectEntity-1
    at org.apache.openjpa.persistence.EntityManagerImpl.processArgument(EntityManagerImpl.java:1216)
    at org.apache.openjpa.kernel.BrokerImpl.processArgument(BrokerImpl.java:2149)
    at org.apache.openjpa.kernel.BrokerImpl.gatherCascadeRefresh(BrokerImpl.java:2816)
    at org.apache.openjpa.kernel.BrokerImpl.refresh(BrokerImpl.java:2793)
    at org.apache.openjpa.kernel.DelegatingBroker.refresh(DelegatingBroker.java:1078)
    at org.apache.openjpa.persistence.EntityManagerImpl.refresh(EntityManagerImpl.java:688)
    at com.ibm.worklight.admin.actions.BaseTransaction.setNewProjectTransactionID(BaseTransaction.java:643)
    at com.ibm.worklight.admin.actions.BaseTransaction.internalRun(BaseTransaction.java:336)
    at com.ibm.worklight.admin.actions.BaseTransaction.run(BaseTransaction.java:235)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
    at java.lang.Thread.run(Thread.java:745)

Jun 03, 2015 2:04:10 PM com.worklight.core.ilmt.WorklightILMTLogger dumpLicense
INFO: FWLSE0277I: Creating an ILMT record in the file '/var/ibm/common/slm/e1178f0cf1cfd7b4017f37827cae010b.slmtag'.

最后通过设置

解决了这个问题
max_allowed_packet = 30M 

binlog_format = mixed

在 mysql 的 my.cnf 文件中。