简体   繁体   English

在部署时抛出奇怪的持久性异常

[英]Weird Persistence Exception thrown at deployment time

I have a gradle Material GWT Project setup. 我有一个gradle Material GWT项目设置。 The projects builds just fine, and for some time now everything has been peachy. 项目建设得很好,一段时间以来,一切都很好。 Not until I changed the dependencies for Material GWT from 1.6.0 to 2.0-rc3, and GWT itself from 2.7.0 to 2.8.0. 直到我将Material GWT的依赖关系从1.6.0更改为2.0-rc3,GWT本身从2.7.0更改为2.8.0。 I needed these because of the new widgets on Material GWT 2.0 and above. 我需要这些因为Material GWT 2.0及更高版本的新小部件。 Upon deployment to Payara (glassfish 4) I get this exception, and deployment fails. 在部署到Payara(glassfish 4)后,我得到了这个例外,部署失败了。

Severe:   Exception while deploying the app [myFunApp] : 
Exception [EclipseLink-23004] (Eclipse Persistence Services - 2.6.4.v20160829-44060b6): org.eclipse.persistence.exceptions.TransactionException
Exception Description: Error obtaining the Transaction Manager
Internal Exception: Exception [EclipseLink-23001] (Eclipse Persistence Services - 2.6.4.v20160829-44060b6): org.eclipse.persistence.exceptions.TransactionException
Exception Description: Error looking up external Transaction resource under JNDI name [java:appserver/TransactionManager]
Internal Exception: javax.naming.NameNotFoundException; remaining name 'appserver/TransactionManager'

I have seen Glassfish v4 Transaction Manager not found link where @Arun Gupta answers a similar question, but it makes no sense to me at all. 我见过Glassfish v4事务管理器没有找到 @Arun Gupta回答类似问题的链接,但对我来说根本没有意义。 Any ideas would really be helpful. 任何想法都会有所帮助。 I should point out that changing the dependencies work just fine. 我应该指出,更改依赖项工作得很好。

I never resolved this issue. 我从未解决过这个问题。 But I have a nice workaround. 但我有一个很好的解决方法。 The said project (Gradle, with Material GWT) was actually a single project. 上述项目(Gradle,物料GWT)实际上是一个单一的项目。 Separating the project into three projects, namely Client, API, and Commons projects, I was able to deploy the API separately to the same Glassfish Server as the Client. 将项目分成三个项目,即Client,API和Commons项目,我能够将API分别部署到与客户端相同的Glassfish服务器上。 This separation somehow helped. 这种分离有点帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM