在WebSphere上部署Worklight

时间:2013-10-03 21:34:25

标签: websphere ibm-mobilefirst

我已经在WebSphere 8.5.5上部署了Worklight 6,尝试使用derby数据库遵循这些说明(http://pic.dhe.ibm.com/infocenter/wrklight/v6r0m0/index.jsp),并且在尝试点击我的Worklight实例时遇到以下错误:

Error 500: javax.servlet.ServletException: Worklight Project not initialized

当我检查日志时,我可以看到由于此异常而未启动worklight服务器:

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'brokerSessionFactory' defined in URL [jar:file:/C:/IBM/WebSphere/AppServer/lib/worklight-jee-library-6.0.0.jar!/conf/spring-server-core.xml]: Invocation of init method failed; nested exception is java.lang.AbstractMethodError: javax/persistence/spi/PersistenceUnitInfo.getValidationMode()Ljavax/persistence/ValidationMode;
...
Caused by: java.lang.AbstractMethodError: javax/persistence/spi/PersistenceUnitInfo.getValidationMode()Ljavax/persistence/ValidationMode
at org.apache.openjpa.persistence.PersistenceUnitInfoImpl.toOpenJPAProperties(PersistenceUnitInfoImpl.java:499)
at org.apache.openjpa.persistence.PersistenceProductDerivation.load(PersistenceProductDerivation.java:317)
at org.apache.openjpa.persistence.PersistenceProviderImpl.createContainerEntityManagerFactory(PersistenceProviderImpl.java:160)
at org.apache.openjpa.persistence.PersistenceProviderImpl.createContainerEntityManagerFactory(PersistenceProviderImpl.java:62)

我将worklight jar直接放在WebSphere lib中,以解决另一个与我未正确回忆的Authentication类相关的问题...也许我需要更多的jar,或者我是否错误地解决了我以前的问题?我也将javax.peristence.jar放在websphere中,但这没有帮助。

1 个答案:

答案 0 :(得分:0)

您是否使用Ant脚本进行部署?如果您在执行手动应用程序部署时错过了一些步骤,则会发生这