带 eclipselink 的指南针
我正在尝试使用 eclipselink 设置指南针。它引发了我以下异常
异常 [EclipseLink-28014](Eclipse 持久性服务 - 2.0.1.v20100213-r6600):org.eclipse.persistence.exceptions.EntityManagerSetupException 异常描述:处理值为 [org.compass.gps.device.jpa.embedded.eclipselink.CompassSessionCustomizer] 的属性 [eclipselink.session.customizer] 时引发异常。 内部异常:org.compass.core.CompassException:无法找到持久性单元信息 在org.eclipse.persistence.exceptions.EntityManagerSetupException.failedWhileProcessingProperty(EntityManagerSetupException.java:178)
我的 persistence.xml 如下:
<property name="eclipselink.session.customizer" value="org.compass.gps.device.jpa.embedded.eclipselink.CompassSessionCustomizer"/>
<property name="compass.engine.connection" value="target/test-index"/>
<property name="compass.debug" value="true" />
我已将以下 jar 复制到我的 WEB-INF/lib
- compass-2.2.0
- lucene-core
- lucene-分析器
- lucene-拼写检查器
- lucene-snowball
- lucene-查询
- lucene-highlighter
我错过了什么吗?
谢谢。
I am trying to setup compass with eclipselink. It throws me the following exception
Exception [EclipseLink-28014] (Eclipse Persistence Services - 2.0.1.v20100213-r6600): org.eclipse.persistence.exceptions.EntityManagerSetupException
Exception Description: Exception was thrown while processing property [eclipselink.session.customizer] with value [org.compass.gps.device.jpa.embedded.eclipselink.CompassSessionCustomizer].
Internal Exception: org.compass.core.CompassException: Failed to find Persistence Unit Info
at org.eclipse.persistence.exceptions.EntityManagerSetupException.failedWhileProcessingProperty(EntityManagerSetupException.java:178)
My persistence.xml is as follows:
<property name="eclipselink.session.customizer" value="org.compass.gps.device.jpa.embedded.eclipselink.CompassSessionCustomizer"/>
<property name="compass.engine.connection" value="target/test-index"/>
<property name="compass.debug" value="true" />
I have copied the following jar to my WEB-INF/lib
- compass-2.2.0
- lucene-core
- lucene-analyzers
- lucene-spellchecker
- lucene-snowball
- lucene-queries
- lucene-highlighter
Am i missing anything ?
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论