简体   繁体   English

如何在Tomcat上部署休眠应用程序?

[英]How to deploy a hibernate application on Tomcat?

I have a GWT-Hibernate-JPA Application that runs fine from within Eclipse Jetty included in GWT. 我有一个GWT-Hibernate-JPA应用程序,可以从GWT中包含的Eclipse Jetty中正常运行。 I now tried to deploy my war to a local tomcat installation. 我现在尝试将war部署到本地tomcat安装。 Manger console is running, but my app is not deployed with following error: Manger控制台正在运行,但未部署我的应用程序,并出现以下错误:

SEVERE: Unable to deploy collapsed ear in war StandardEngine[Catalina].StandardHost[localhost].StandardContext[/myapp]
org.apache.openejb.OpenEJBException: Creating application failed: C:\apache-tomee-plus-1.5.2\webapps\myapp: javax/persistence/Converter

What might I be missing here? 我在这里可能会缺少什么?

It turned out that it is necessary to copy the hibernate-jpa ( hibernate-jpa-2.1-api-1.0.0.Draft-16.jar ) library to CATALINE_HOME\\lib . 原来,有必要将hibernate-jpa( hibernate-jpa-2.1-api-1.0.0.Draft-16.jar )库CATALINE_HOME\\libCATALINE_HOME\\lib It is not sufficient to have it in the war\\WEB-INF\\lib as one would expect. 像人们期望的那样,将它放在war\\WEB-INF\\lib是不够的。

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

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