在Jboss EAP 6.1中部署Appfuse



我将Appfuse与struts2一起使用,并尝试在Jboss EAP 6.1中进行部署。我尝试过的事情:在WEB-INF/:中添加:jboss-deployment-structure.xml

<jboss-deployment-structure>
<deployment>
    <exclusions>
        <module name="org.hibernate" />
    </exclusions>
</deployment>

并在Persistent.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

我会看看JBoss Developer QuickStart示例项目。例如:

https://github.com/jboss-developer/jboss-eap-quickstarts/tree/master/hibernate3

相关内容

  • 没有找到相关文章

最新更新