我将Appfuse与struts2一起使用并尝试在Jboss EAP 6.1中部署。我尝试过: 在WEB-INF /中添加:jboss-deployment-structure.xml:
<jboss-deployment-structure>
<deployment>
<exclusions>
<module name="org.hibernate" />
</exclusions>
</deployment>
在Persistant.xml中添加属性:
<properties>
<property name="hibernate.show_sql" value="false" />
<property name="jboss.as.jpa.providerModule" value="application" />
</properties>
之后,我收到有关ClassCastException的错误:
05:13:07,640 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 48) MSC000001: Failed to start service jboss.persistenceunit."claim.war#ApplicationEntityManager": org.jboss.msc.service.StartException in service jboss.persistenceunit."claim.war#ApplicationEntityManager": java.util.ServiceConfigurationError: org.hibernate.integrator.spi.Integrator: Provider org.hibernate.search.hcore.impl.HibernateSearchIntegrator could not be instantiated: java.lang.ClassCastException
答案 0 :(得分:0)
我会看看JBoss Developer QuickStart示例项目。例如:
https://github.com/jboss-developer/jboss-eap-quickstarts/tree/master/hibernate3